LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 05-01-2007, 05:15 AM   #1
nass
Member
 
Registered: Apr 2006
Location: Athens, Greece
Distribution: slack(64|32)_v(13.37|14.0), debian6, ubuntu
Posts: 632

Rep: Reputation: 36
is this normal rsync behaviour?


hello everyone,
i am trying to backup some data to another dir with rsync

the command i use is:

rsync -grP --delete /mnt/hd/current /mnt/hd/backups

'current' is a huge folder (140GB). to be backing it up everynight...
however i read in the rsync manual that only the differences are being copied.
however it still seems to be taking ages to complete the rsync - just like the 1st time even though i haven't altered the contents of the dir at all in the mean time...

also the progress does show that things are being copied around
Quote:
videos/music videos/plaid_eyen.mov
9174207 100% 7.80MB/s 0:00:01 (xfer#27999, to-check=0/32361)

sent 128688050892 bytes received 642170 bytes 23957682.78 bytes/sec
total size is 128670181617 speedup is 1.00
am i missing something?
nass
 
Old 05-01-2007, 11:38 AM   #2
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,490

Rep: Reputation: Disabled
try using the -a option instead of -g. What I use is -avz.

You do realize it is not a very safe strategy to have source and backup on the same drive. If the drive fails, no backup!

Brian
 
Old 05-01-2007, 07:30 PM   #3
nass
Member
 
Registered: Apr 2006
Location: Athens, Greece
Distribution: slack(64|32)_v(13.37|14.0), debian6, ubuntu
Posts: 632

Original Poster
Rep: Reputation: 36
the hd is a raid5
i think i got that part of possible failure somewhat covered
-a eh?
should i delete the backups? that exist at the moment?
or just change to -a and let rsync do the rest?

cause -a is making an archive right?
 
Old 05-02-2007, 10:57 AM   #4
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,490

Rep: Reputation: Disabled
It's not making an archive in the sense of tar, but it preserves all file information such as ownership and timestamps. I think this is why rsync processes all the files when you just use the -g option, because it does not recognize the files as being the same. -a is equivalent to -rlptgoD. I don't think you need to delete your old files.

Rsync is really useful for mirroring, but it's not a real back-up solution because, eg. if you have a corrupted file yesterday and you rsync last night, you now have a corrupted "backup".

Brian
 
Old 05-02-2007, 08:00 PM   #5
nass
Member
 
Registered: Apr 2006
Location: Athens, Greece
Distribution: slack(64|32)_v(13.37|14.0), debian6, ubuntu
Posts: 632

Original Poster
Rep: Reputation: 36
hmmm yes... you would be refering to svn perhaps?
 
Old 05-03-2007, 02:40 PM   #6
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,490

Rep: Reputation: Disabled
Sure, you could use svn. You could also just tar your files. You can do incremental backups with tar (google for some useful scripts) so you aren't doing the whole 140G every night. If I understand RAID5, I would copy the tar archive off to cd/dvd every once in a while. If 1 drive fails your okay but vulnerable because if the second fails you're toast, so if your server is running and you're on vacation, for example...

Brian
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Rsync server vs rsync over ssh humbletech99 Linux - Networking 1 10-18-2006 01:10 PM
vi Behaviour! dlublink Suse/Novell 5 09-20-2006 10:14 AM
mouse behaviour tsitras Debian 6 01-02-2006 07:56 AM
Is this behaviour normal? Manuel-H Linux - General 2 01-20-2005 10:20 AM
Windows Rsync Upload to Linux Rsync - permissions inspleak Linux - Software 0 10-12-2004 03:49 PM


All times are GMT -5. The time now is 01:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration