LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 02-20-2010, 05:17 PM   #1
tankman1989
LQ Newbie
 
Registered: Oct 2009
Posts: 1

Rep: Reputation: 0
What parameter do I add to RSYNC to update modified or new files to the destination?


Greetings,

I have been trying to figure out how to run RSYNC so that it will update the files on the destination/backup drive. I do not want to copy all 400GB, which has already been backed up, but only the 1-2GB that has changed since the last backup.
This is the code I have been using and it seems to copy over everything.

Code:
$ rsync -arvz --human-readable --progress --stats ./* user@linuxbox:/mnt/backup/
Also, if you know how to run this through SSH, That would be excellent to know as well!
Thanks for any help you can provide!
 
Old 02-20-2010, 05:45 PM   #2
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
Moved: This thread is more suitable in Linux Software and has been moved accordingly to help your question get the exposure it deserves.
 
Old 02-20-2010, 06:20 PM   #3
bryanl
Member
 
Registered: Dec 2003
Posts: 86

Rep: Reputation: 34
You might want to see if the "--modify-window=NUM" option will help. That will reduce the accuracy of the modified times comparison. I needed this at times when copying to Samba shares.

Also, I suggest you run rsync as root to help keep permissions straight. This can be a problem sometimes if the user and group numbers on different machines aren't syncronized.
 
  


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
[SOLVED] Files seem to take up more space in destination after rsync copy Karderio Linux - Newbie 5 02-24-2012 08:30 PM
rsync: only backup recently modified files hamish Linux - Software 3 09-20-2011 09:55 AM
Rsync set permissions destination Abstractt Linux - General 3 09-30-2010 02:05 AM
rsync - sync files modified within the last 60 days boomklever Linux - Networking 3 06-03-2009 09:41 AM
Changing permissions of destination directory after rsync cliff123 Linux - General 1 12-26-2007 03:09 AM


All times are GMT -5. The time now is 11:19 PM.

Main Menu
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