cimryan / teslausb

Steps and scripts for turning a Raspberry Pi into a useful USB drive for a Tesla
MIT License
580 stars 492 forks source link

Support firmware 2019.5.x path names #126

Closed marcone closed 4 years ago

marcone commented 5 years ago

Firmware 2019.5.x changed the naming pattern of the recording files, as well as their location. Archive both old and new files.

marcone commented 5 years ago

(I only tested the cifs backup script)

ghost commented 5 years ago

I pulled this down and also tested cifs. Looks good to me. Model 3 on 2019.5.15.

LBegnaud commented 5 years ago

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

marcone commented 5 years ago

I reworked the CIFS archive-clips script so it moves the files one at a time, which allows interrupting and resuming the backup.

AngusThermo-Pyle commented 5 years ago

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.