Closed marcone closed 4 years ago
(I only tested the cifs backup script)
I pulled this down and also tested cifs. Looks good to me. Model 3 on 2019.5.15.
It seems like the mv
command fails to move the remaining items in the folder if the transfer is interrupted. This is in the case of SavedClips
folder existing.
There's some suggestions here on how to resolve: https://unix.stackexchange.com/questions/9899/how-to-overwrite-target-files-with-mv
not really sure which is the best method
I reworked the CIFS archive-clips script so it moves the files one at a time, which allows interrupting and resuming the backup.
Rsync also fails if you don't have both paths present, works fine if you create the dummy directory or remove the path you don't have from the rsync command.
Firmware 2019.5.x changed the naming pattern of the recording files, as well as their location. Archive both old and new files.