Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #261516

Re: I uninstalled OpenMediaVault (because totally overkill for me) and replaced it with borgbackup and rsyncq

From David Christensen <dpchrist@holgerdanske.com>
Newsgroups linux.debian.user
Subject Re: I uninstalled OpenMediaVault (because totally overkill for me) and replaced it with borgbackup and rsyncq
Date 2023-09-06 07:40 +0200
Message-ID <HaTqF-72cU-1@gated-at.bofh.it> (permalink)
References (1 earlier) <H9brH-5Wh3-1@gated-at.bofh.it> <H9i09-60oA-3@gated-at.bofh.it> <H9jfz-6190-7@gated-at.bofh.it> <HaOhj-6Z8p-5@gated-at.bofh.it> <HaOKl-6Zia-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 9/5/23 17:39, Default User wrote:
> On Tue, 2023-09-05 at 20:01 -0400, Default User wrote:

>> Now sudo du -sh / says that / seems to be using about 30 Gb. But sudo
>> du -sh /media/user/rsnapshot_backups_of_host, says that the backup
>> directory, /media/user/rsnapshot_backups_of_host on backup drive A,
>> is
>> using a whopping 88 Gb for 24 hourly, 7 daily, and 3 weekly!


That is better than (24+7+3) * 30 Gb = 1020 GB.


88 GB - 30 GB = 58 GB of churn over 24 hours, 7 days, and/or 3 weeks may 
be reasonable for your workload.  Are you doing multimedia content 
creation?  Databases?  Disk imaging?  Anything else big?


>> I am thinking, that CAN'T be right.
>> Maybe each hard link is being counted as a full, actual file, when
>> adding up the space allegedly used.
>>
>> So, how can I determine how much space is really being used for the
>> backups?


AIUI 'rsync --link-dest' hard links files on the destination only when 
both the file data and the file metadata are identical.  If either 
changes, 'rsync --link-dest' considers the files to be different and 
does a transfer/ copy.


/var/log/* is a canonical degenerate example file-level deduplication. 
My Debian daily driver /var/log is 83 MB.  34 copies of that is 1.8 GB.


The challenge is finding big files with slightly different content, big 
files with identical content but different metadata, and/or large 
numbers of files with either or both differences.


I would start by using jdupes(1) to find identical backup files on the 
backup drive.  Then use stat(1) or ls(1) on each group of files to find 
different metadata.  You may want to put the commands into scripts as 
you figure them out.


To find files with mismatched content, I would use jdupes(1) with the 
--partial-only option, then jdupes(1), stat(1), and/or ls(1) to check 
data and metadata as above.


>> [BTW, the rsnapshot backups don't seem to take too much time, but
>> doing
>> rsync of external usb backup drive A to external usb backup drive B
>> does take over 90 minutes each time. And that's once a day, every
>> day!
>> Most of that time is apparently not for data transfer, but for rsync
>> building the indexes it needs each time.]


COW file systems such as ZFS provide a time vs. space caching trade-off.


>> Here is the command I use to rsync backup drive A
>> (/media/default/MSD00001) to backup drive B
>> (/media/default/MSD00002):
>>
>> time sudo rsync -aAXHxvv --delete-after --numeric-ids --
>> info=progress2,stats2,name2 --
>> exclude={"/dev/*","/proc/*","/sys/*","/tmp/*","/run/*","/mnt/*","/med
>> ia
>> /*","/lost+found"} /media/default/MSD00001/ /media/default/MSD00002/


I do not use the --numeric-ids option.  I use matching username/UID and 
groupname/GID on all of my Debian and FreeBSD hosts.  I want user/group 
name translation on my Windows/Cygwin and macOS hosts.


Your -v, -v, and --info options are going to generate a lot of output. 
I typically use the --progress and --stats options, and request more 
only when trouble-shooting.


I do not use the --exclude option.  If and when a system crashes, I want 
everything; including files that an intruder may have placed in 
locations that are commonly not backed up.  This means that when using 
the -x option, I must make sure to backup all file systems.


> I just wanted to clarify:
> 
> Each time backup drive A is rsync'd to backup drive B, much more than
> /media/user/MSD00001/rsnapshot_backups_of_host is being rsync'd.  All
> of /media/user/MSD00001 is being rsync'd, which is somewhere around
> 900Gb. Maybe that is why each rsync takes over 90 minutes!


Please run the above rsync(1) command, without -v -v --info, and with 
--stats.  Post your console session.


Use nmon(1) to watch the backup drives when doing the transfer.  Tell us 
what you see.


David

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

I uninstalled OpenMediaVault (because totally overkill for me) and  replaced it with borgbackup and rsync Jason <jason@7748229.xyz> - 2023-09-01 06:50 +0200
  Re: I uninstalled OpenMediaVault (because totally overkill for me)  and replaced it with borgbackup and rsync mlnl <mlnl@mailbox.org> - 2023-09-01 08:20 +0200
  Re: I uninstalled OpenMediaVault (because totally overkill for me)  and replaced it with borgbackup and rsync jeremy ardley <jeremy.ardley@gmail.com> - 2023-09-01 08:40 +0200
  Re: I uninstalled OpenMediaVault (because totally overkill for me)  and replaced it with borgbackup and rsync Manphiz <manphiz@gmail.com> - 2023-09-01 12:40 +0200
  Re: I uninstalled OpenMediaVault (because totally overkill for me)  and replaced it with borgbackup and rsyncq John Hasler <john@sugarbit.com> - 2023-09-01 14:30 +0200
    Re: I uninstalled OpenMediaVault (because totally overkill for me)  and replaced it with borgbackup and rsyncq Default User <hunguponcontent@gmail.com> - 2023-09-01 21:30 +0200
      Re: I uninstalled OpenMediaVault (because totally overkill for me)  and replaced it with borgbackup and rsyncq Michel Verdier <mv524@free.fr> - 2023-09-01 22:50 +0200
        Re: I uninstalled OpenMediaVault (because totally overkill for me)          and replaced it with borgbackup and rsyncq Linux-Fan <Ma_Sys.ma@web.de> - 2023-09-01 23:30 +0200
          Re: I uninstalled OpenMediaVault (because totally overkill for me)  and replaced it with borgbackup and rsyncq Michel Verdier <mv524@free.fr> - 2023-09-02 00:10 +0200
            Re: I uninstalled OpenMediaVault (because totally overkill for me)  and replaced it with borgbackup and rsyncq Michael Kjörling <2695bd53d63c@ewoof.net> - 2023-09-02 11:20 +0200
              Backup systems (was: I uninstalled OpenMediaVault (because totally overkill for me) and replaced it with borgbackup and rsyncq) Stefan Monnier <monnier@iro.umontreal.ca> - 2023-09-02 19:30 +0200
                Re: Backup systems Michel Verdier <mv524@free.fr> - 2023-09-02 21:20 +0200
                Re: Backup systems David Christensen <dpchrist@holgerdanske.com> - 2023-09-02 23:50 +0200
                Re: Backup systems Michel Verdier <mv524@free.fr> - 2023-09-03 00:30 +0200
                Re: Backup systems David Christensen <dpchrist@holgerdanske.com> - 2023-09-03 02:00 +0200
                Re: Backup systems Michel Verdier <mv524@free.fr> - 2023-09-03 11:00 +0200
                Re: Backup systems Michael Kjörling <2695bd53d63c@ewoof.net> - 2023-09-03 12:10 +0200
                Re: Backup systems David Christensen <dpchrist@holgerdanske.com> - 2023-09-03 23:30 +0200
                Re: Backup systems Michael Kjörling <2695bd53d63c@ewoof.net> - 2023-09-04 10:00 +0200
                Re: Backup systems David Christensen <dpchrist@holgerdanske.com> - 2023-09-04 23:00 +0200
                Re: Backup systems Michael Kjörling <2695bd53d63c@ewoof.net> - 2023-09-05 16:40 +0200
                Re: Backup systems David Christensen <dpchrist@holgerdanske.com> - 2023-09-06 02:20 +0200
              Re: I uninstalled OpenMediaVault (because totally overkill for me)          and replaced it with borgbackup and rsyncq Linux-Fan <Ma_Sys.ma@web.de> - 2023-09-03 00:10 +0200
                Re: I uninstalled OpenMediaVault (because totally overkill for me)  and replaced it with borgbackup and rsyncq David <david.g_jones@ntlworld.com> - 2023-09-03 20:20 +0200
                Re: I uninstalled OpenMediaVault (because totally overkill for me) and replaced it with borgbackup and rsyncq Gareth Evans <donotspam@fastmail.fm> - 2023-09-03 21:40 +0200
        Re: I uninstalled OpenMediaVault (because totally overkill for me)  and replaced it with borgbackup and rsyncq Default User <hunguponcontent@gmail.com> - 2023-09-06 02:10 +0200
          Re: I uninstalled OpenMediaVault (because totally overkill for me)  and replaced it with borgbackup and rsyncq Default User <hunguponcontent@gmail.com> - 2023-09-06 02:40 +0200
            Re: I uninstalled OpenMediaVault (because totally overkill for me)  and replaced it with borgbackup and rsyncq David Christensen <dpchrist@holgerdanske.com> - 2023-09-06 07:40 +0200
      Re: I uninstalled OpenMediaVault (because totally overkill for me)          and replaced it with borgbackup and rsyncq Linux-Fan <Ma_Sys.ma@web.de> - 2023-09-01 23:20 +0200
        Re: I uninstalled OpenMediaVault (because totally overkill for me)  and replaced it with borgbackup and rsyncq Default User <hunguponcontent@gmail.com> - 2023-09-06 03:40 +0200
          Re: I uninstalled OpenMediaVault (because totally overkill for me)          and replaced it with borgbackup and rsyncq Linux-Fan <Ma_Sys.ma@web.de> - 2023-09-09 19:00 +0200

csiph-web