View the Most Wanted LQ Wiki articles.
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 06-29-2005, 01:55 AM   #1
LQ Newbie
Registered: Apr 2004
Posts: 20

Rep: Reputation: 0
rsync incremental backup

I want to write a script which does rsyc backups with a 7 day rotating incremental backup. The incrementals will go into subdirectories named after the day of the week, and the current full backup goes into a directory called "current". Anyone is having idea about rsync script.
Thanx & Regards
Old 06-29-2005, 02:09 AM   #2
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 122Reputation: 122
Use cp -alp for the 7 day incrementals. 'date +%a' should give you the current day of the week.

Most likely, you'll want two scripts: one to perform rotation on the backup system, and one (a one-liner really) to perform your RSYNC backup.

I do something similar, though not precisely the same, on my systems.


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
incremental backup using tar eaglegst Linux - Software 9 02-01-2009 05:00 PM
How to take incremental Backup in postgres minil Linux - Software 1 05-11-2005 04:47 AM
Incremental Backup Utilities Matir Linux - Software 2 03-16-2005 09:34 PM
incremental backup reaky Linux - Software 3 03-10-2004 03:02 PM
Rsync for incremental backups? Phaethar Linux - Software 3 12-04-2003 01:27 PM

All times are GMT -5. The time now is 02:25 AM.

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