LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 09-04-2005, 06:31 AM   #1
hamish
Member
 
Registered: Aug 2003
Location: Edinburgh
Distribution: Server: Gentoo2004; Desktop: Ubuntu
Posts: 720

Rep: Reputation: 30
rsync: only backup recently modified files


hello

I run rsync on Windows machines in order to back them up to backup servers.

My questions is:

is there a way that I can tell rsync only to backup files which have been modified on the Windows machine within, say, the last month?

For that matter, how could I do this in if I were rsync-ing from Linux?

Thanks
Hamish
 
Old 09-04-2005, 11:08 PM   #2
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 56
Find allows you to do things based on age. For example:
#Delete files that haven't been modified for 90 days with the following command
find /mnt/backup -type f \( -name '*.gz' -o -name '*.log' \) \
-mtime +90 -exec rm {} \;

rsync already does move changed files, that saves it from having to do every file.

More options with man find
 
Old 09-05-2005, 02:51 PM   #3
hamish
Member
 
Registered: Aug 2003
Location: Edinburgh
Distribution: Server: Gentoo2004; Desktop: Ubuntu
Posts: 720

Original Poster
Rep: Reputation: 30
hey

yeah I have now got it working with a find > list_of_files and then using list_of_files as the include list for rsync

Cheers
Hamish
 
Old 09-20-2011, 09:55 AM   #4
silveraxela
LQ Newbie
 
Registered: Sep 2011
Posts: 1

Rep: Reputation: Disabled
Quote:
Originally Posted by hamish View Post
hey

yeah I have now got it working with a find > list_of_files and then using list_of_files as the include list for rsync

Cheers
Hamish
I'm looking to do the exact same thing. Can you provide me with the syntax you used to achieve this?
 
  


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
RAID 1 or RSYNC BACKUP otagojo Linux - General 7 08-01-2005 12:34 AM
rsync incremental backup sachin_keluskar Linux - Software 1 06-29-2005 02:09 AM
rsync as backup? ziggie216 Linux - Software 3 03-13-2005 02:22 PM
backup program for backing up only modified files | 'snapshot' ibm5_25 Linux - Software 2 01-10-2004 12:28 AM
rsync backup... tarballed Linux - Networking 10 06-27-2003 10:43 AM


All times are GMT -5. The time now is 11:16 AM.

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