[mythtv-users] Record, flag commercials, then move to NAS
Michael T. Dean
mtdean at thirdcontact.com
Sat Feb 11 02:20:09 UTC 2012
On 02/10/2012 08:32 PM, Michael Watson wrote:
> On 11/02/2012 9:13 AM, Michael T. Dean wrote:
>> True, but as a point of note, I would /always/ recommend a trailing
>> slash on that new location.
>> If, instead, you use the command:
>> mv %DIR%/%FILE% /mount/point/subdirectory/
>> (with trailing slash) and the file system failed to mount at
>> /mount/point, then we've specified that we're attempting to move a file
>> to an existing directory and the mv command will error:
>> mv: cannot move `/path/to/recording/file.mpg' to
>> `/mount/point/subdirectory/': No such file or directory
>> and prevent me from losing a bunch of recordings.
> Point taken. Whilst we are being picky, it would be a good idea to
> check if the file is going to actually fit on the destination device
> before attempting to move it, and add an ionice to the mv command, so as
> to not max out the io bandwidth for myth recording operations..
Definitely good suggestions.
More information about the mythtv-users