[mythtv-users] Record, flag commercials, then move to NAS
R. G. Newbury
newbury at mandamus.org
Sun Feb 12 14:52:56 UTC 2012
On 02/10/2012 10:14 PM, Marco Quezada wrote:
> Thanks, I will look into the rsync command. I would like to mention that in
> the script I posted above that the mount point for the destination is at
> /data so that as mentioned earlier the move will fail if the directory is
> not mounted. Also, the script adds the slashes to the path in case they
> were not specified when the script was called. I will also look into the
> ionice and size allocation.
>
> -Marco
Rsync is definitely what you want to use. It has a number of switches to
check for existing files, over-write/ignore, delete when moved, even
delete dest before move (for overwriting a new file with the same name:
good for daily recordings) etc.
And add a 'mount' command to ensure that the remote host is available.
Then grep the output for a failure report and exit the script if found.
Geoff
--
More information about the mythtv-users
mailing list