From ArchWiki
Jump to: navigation, search

I think its a good idea to mention dirvish here. --Moere 03:34, 1 March 2010 (EST)

rsyncd.conf for ssh transfers.

It should be mentioned on this page that in order to use modules, one has to put an rsyncd.conf file in the home directory of the user who is ssh'ing in. This is not very obvious.

rsync for snapshot backups

After a bit of reading, i found out that plain rsync is pretty much capable of snapshot backups, like time-machine inspired stuff. Not sure if this is the appropriate place. It would be something like this:
DATESTAMP=$(date +%Y-%m-%d)
rsync -rltgo --chmod=a-w --link-dest=$SNAPS/latest $HOME $SNAPS/$DATESTAMP
rm latest

There is a much better discussion here:

"full" system backups

   # rsync -aAXv --exclude={"/dev/*","/proc/*","/sys/*","/tmp/*","/run/*","/mnt/*","/media/*","/lost+found"} / /path/to/backup/folder

What's the point of using such a long command instead of `rsync -x`? All you're excluding there are… mount points. The section even says it's good to move an existing installation to another disk. `rsync -x` is perfect to move the root partition to another device.

—This unsigned comment is by Artefact2 (talk) 16:20, 5 September 2017‎. Please sign your posts with ~~~~!

The root partition does not have to be the whole system, at least /boot and /home are commonly placed on their own partitions (see Partitioning#Example layouts) and other things such as /usr, /var, /data or anything else can be mount points too. -- Lahwaacz (talk) 17:26, 5 September 2017 (UTC)