You are not logged in.
Pages: 1
I am going to try out rsync to make backups
trying out
rsync -rtlv /etc/ /backup/which works ok .. so now I want to backup to external drive [just change path!]
not looked but can I rsync a directory list ie /etc/ /var/ /home/user/ etc.?
Have read you have to use trailing '/' on directory names but no idea why?
must remember to backup media too ;-)
Mr Green
Offline
I recommend rsnapshot script for local backup to another disk.
Offline
emmm interesting thanks ....
Mr Green
Offline
I do it this way:
RSYNCOPTS="--archive --delete --links --progress --stats --verbose"
rsync ${RSYNCOPTS} --exclude /dev --exclude /mnt --exclude /proc --exclude /sys --exclude /tmp --exclude /var/tmp --exclude *lost+found / /mnt/backup/system/marbles/But I'm one of those crazy people that backup too much ![]()
Desktop: AMD Athlon64 3800+ Venice Core, 2GB PC3200, 2x160GB Maxtor DiamondMax 10, 2x320GB WD Caviar RE, Nvidia 6600GT 256MB
Laptop: Intel Pentium M, 512MB PC2700, 60GB IBM TravelStar, Nvidia 5200Go 64MB
Offline
I've recently got all that working but I now have a problem where I have a 60gb music collection on both my external drive and on my harddrive but because of the way I got the files onto both disks the timestamps are not going to be the same between both disks.
When I try a normal rsync, using options similar to the ones chrismortimore just gave, because the timestamps are out it wants to sync most of the files. I know that the files are identical so I don't want this to happen. I could tell it to ignore timestamps but I think that leaves me with using checksum to work out the difference which takes AGES on 60gb. Is there an easy way to get the timestamps into sync so that from that point on I can just run a normal rsync and only have changes backed up?
I was thinking of running a find and touch on all fines but was seeing as we have an rsync expert on hand wondered if there was a better way to do this with rsync.
Offline
I do it this way:
RSYNCOPTS="--archive --delete --links --progress --stats --verbose" rsync ${RSYNCOPTS} --exclude /dev --exclude /mnt --exclude /proc --exclude /sys --exclude /tmp --exclude /var/tmp --exclude *lost+found / /mnt/backup/system/marbles/But I'm one of those crazy people that backup too much
was thinking of reinstalling Arch in new year ... maybe a full backup is in order
got 1016 packages ouch!
woah!
Mr Green
Offline
I really recommend the rsync man page - it is very well written and very thorough with excellent examples. It's my second favorite man page next to mplayer's man page (is it weird to have favorite man pages?).
Bottom line, anything you need to know is in there, and is easy to find.
Unthinking respect for authority is the greatest enemy of truth.
-Albert Einstein
Offline
thanks for that .... I just need to wrap it in a script ![]()
Mr Green
Offline
Pages: 1