Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 02-20-2010, 05:17 PM   #1
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?


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.

$ 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
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 678Reputation: 678Reputation: 678Reputation: 678Reputation: 678Reputation: 678
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
Registered: Dec 2003
Posts: 97

Rep: Reputation: 35
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.


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 6 09-22-2014 07:41 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 > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:38 PM.

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