You are not logged in.

#1 2006-12-21 08:05:55

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,929
Website

rsync...ing feeling

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

#2 2006-12-21 08:18:07

Purch
Member
From: Finland
Registered: 2006-02-23
Posts: 229

Re: rsync...ing feeling

I recommend rsnapshot script for local backup to another disk.

Offline

#3 2006-12-21 11:36:47

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,929
Website

Re: rsync...ing feeling

emmm interesting thanks ....


Mr Green

Offline

#4 2006-12-21 11:42:01

chrismortimore
Member
From: Edinburgh, UK
Registered: 2006-07-15
Posts: 655

Re: rsync...ing feeling

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 wink


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

#5 2006-12-21 11:59:37

dninja
Member
From: Sheffield, UK
Registered: 2006-04-29
Posts: 374
Website

Re: rsync...ing feeling

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

#6 2006-12-21 12:20:38

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,929
Website

Re: rsync...ing feeling

chrismortimore wrote:

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 wink

was thinking of reinstalling Arch in new year ... maybe a full backup is in order

got 1016 packages ouch!

woah!


Mr Green

Offline

#7 2006-12-24 18:08:27

Snarkout
Member
Registered: 2005-11-13
Posts: 542

Re: rsync...ing feeling

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

#8 2006-12-24 18:20:17

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,929
Website

Re: rsync...ing feeling

thanks for that .... I just need to wrap it in a script  wink


Mr Green

Offline

Board footer

Powered by FluxBB