mirror of
https://github.com/cimryan/teslausb.git
synced 2026-03-01 04:30:33 +00:00
Merge branch 'master' into u/rtgoodwin/headless-patch
This commit is contained in:
@@ -61,9 +61,9 @@ Follow the instructions corresponding to the OS you used to flash the OS onto th
|
||||
Whichever instructions you followed above will leave you in a command shell on the Pi. Use this shell for the rest of the steps in these instructions.
|
||||
|
||||
### Set up the archive for dashcam clips
|
||||
Follow the instructions corresponding to the technology you'd like to use to host the archive for your dashcam clips. You must choose just one of these technoloies; don't follow more than one of these sets of instructions:
|
||||
Follow the instructions corresponding to the technology you'd like to use to host the archive for your dashcam clips. You must choose just one of these technologies; don't follow more than one of these sets of instructions:
|
||||
* Windows file share, MacOS Sharing, or Samba on Linux: [Instructions](doc/SetupShare.md).
|
||||
* SFTP/rsync: [Instructions](doc/SetupRsync.md)
|
||||
* SFTP/rsync: [Instructions](doc/SetupRSync.md)
|
||||
* **Experimental:** Google Drive, Amazon S3, DropBox, Microsoft OneDrive: [Instructions](doc/SetupRClone.md)
|
||||
|
||||
### Set up the USB storage functionality
|
||||
|
||||
@@ -159,7 +159,7 @@ function wait_for_archive_to_be_unreachable () {
|
||||
log "Waiting for archive to be unreachable..."
|
||||
while [ true ]
|
||||
do
|
||||
if ! archive_is_reachable
|
||||
if ! retry archive_is_reachable
|
||||
then
|
||||
log "Archive is unreachable."
|
||||
break
|
||||
|
||||
@@ -4,7 +4,7 @@ log "Archiving through rsync..."
|
||||
|
||||
source /root/.teslaCamRsyncConfig
|
||||
|
||||
num_files_moved=$(rsync -auvh --stats --log-file=/tmp/archive-rsync-cmd.log /mnt/cam/TeslaCam/saved* $user@$server:$path | awk '/files transferred/{print $NF}')
|
||||
num_files_moved=$(rsync -auzvh --no-perms --stats --log-file=/tmp/archive-rsync-cmd.log /mnt/cam/TeslaCam/saved* $user@$server:$path | awk '/files transferred/{print $NF}')
|
||||
|
||||
/root/bin/send-pushover "$num_files_moved"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user