[mythtv-users] Using the mythconverg_backup.pl script (slightly OT)
Harry Devine
lifter89 at comcast.net
Sat Dec 5 20:21:36 UTC 2009
Nick Rout wrote:
> On Sun, Dec 6, 2009 at 7:00 AM, Harry Devine <lifter89 at comcast.net> wrote:
>
>> Nick Rout wrote:
>>
>> I now have my myth box running the cron job successfully, but the rsync
>> doesn't seem to be working right. Its copying the new files to my other
>> machine, but its not deleting the old ones. So, on my myth box, I have the
>> last 7 days, but my other machine currently has the last 11. Here's what my
>> backup script in /etc/cron.daily looks like:
>>
>> #!/bin/sh
>>
>> su - hdevine -c "/usr/bin/mythconverg_backup.pl --rotate 7"
>> su - hdevine -c "rsync --delete -az /home/hdevine/db_backups/*
>> 192.168.1.103:/archive/mythdb_backups/"
>>
>> Does anyone have any idea why the rsync wouldn't delete the old files? What
>> I'd like to have is the same 7 files that are backed up on my Myth box exist
>> on my desktop.
>>
>
> not sure. try rsync with -v (verbose) fromcommand line and see what it says
>
>
>> Thanks,
>> Harry
>>
>> _______________________________________________
>> mythtv-users mailing list
>> mythtv-users at mythtv.org
>> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>>
>>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>
>
OK, I think I figured it out. I had a * in the file list (rsync
--delete -az /home/hdevine/db_backups/* ......) so that was copying all
of the files and not deleting them. When I take that out, it properly
determines what files need to be removed.
Thanks for the help.
Harry
More information about the mythtv-users
mailing list