LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Rsync backups - how not to backup TV recordings (https://www.linuxquestions.org/questions/linux-software-2/rsync-backups-how-not-to-backup-tv-recordings-257273/)

jamespetts 11-20-2004 12:15 PM

Rsync backups - how not to backup TV recordings
 
On my home network, consisting of three Win2k/XP machines, and one Mandrake 10.0 machine, I use the Linux machine mainly for backup, and it has a 40Gb hard drive dedicated to backing up.

I use rsync to backup the important files, and use cron to run a script that I wrote, which specifies which directories to backup, and writes a log file.

I have a problem, however: two of the Windows XP computers have television cards, and both are often used to record television programmes onto their hard drives (80Gb and 160Gb respectively). When these recordings are backed up (they are about 2.5Gb per hour...), they fill up my backup hard drive.

They are set to record, logically enough, in ...\My Documents\My Videos. What I want to be able to do is tell rsync either to skip the \My Videos subfolder of \My Documents all together (whilst backing up everything else in \My Docuements, even if subdirectories are added after I write the configuration file), or not backup any file ending in .mpg that is more than 1Gb in size, or, even better, tell it not to back up any file ending in .mpg that is more than 1Gb in size in the \My Videos subfolder that has been modified more than 36 hours ago, and to delete any backup of any such file that was backed up 24 hours ago or more.

Does anybody have any ideas how I might acheive that?


All times are GMT -5. The time now is 03:40 AM.