LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   rsync incremental backup (https://www.linuxquestions.org/questions/linux-software-2/rsync-incremental-backup-338266/)

sachin_keluskar 06-29-2005 01:55 AM

rsync incremental backup
 
hi,
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

Matir 06-29-2005 02:09 AM

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.


All times are GMT -5. The time now is 08:37 PM.