Talk:Rsync

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:

rsnap.sh
#!/bin/bash
DATESTAMP=$(date +%Y-%m-%d)
rsync -rltgo --chmod=a-w --link-dest=$SNAPS/latest $HOME $SNAPS/$DATESTAMP
rm latest
ln -s $SNAPS/$DATESTAMP $SNAPS/latest

There is a much better discussion here: http://www.mikerubel.org/computers/rsync_snapshots/