I have the following script for backing up my myth recordings, videos,
etc. At one point it was working correctly, but now it recopies
everything every time it runs.
I used to have a -a switch, but then I would get chown errors.
I tried -c for checksum, but that was taking forever, maybe I should use
it and be patient?
I know I'm using the dangerous --delete, but I want it working that way.
I've looked through all the rsync options, but I can't figure out which
switches I should use. I obviously don't want it copying 200+ gig every
night, just new changes.
Here's the script:
if mount 192.168.1.22:/storage /mnt/storage
then
rsync -rv0 --progress --delete --exclude=nice_names
/mythtv/recordings /mnt/storage/mythtv
rsync -rv0 --progress /mythtv/backup /mnt/storage/mythtv
rsync -rv0 --progress --delete /mythtv/music /mnt/storage/mythtv
rsync -rv0 --progress --delete /mythvideos /mnt/storage/mythtv
umount /mnt/storage
else
echo "Alert -- Mounting of NFS-server failed !"
fi
Any quick suggestions?
Thanks,
James
_______________________________________________
mythtv-users mailing list
[email protected]
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users