Merge pull request #76 from Gocnak/rsync

Rsync Tested and Working
This commit is contained in:
cimryan
2018-10-28 22:47:16 -07:00
committed by GitHub
3 changed files with 3 additions and 3 deletions

View File

@@ -63,7 +63,7 @@ Whichever instructions you followed above will leave you in a command shell on t
### Set up the archive for dashcam clips ### 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 technoloies; don't follow more than one of these sets of instructions:
* Windows file share, MacOS Sharing, or Samba on Linux: [Instructions](doc/SetupShare.md). * 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) * **Experimental:** Google Drive, Amazon S3, DropBox, Microsoft OneDrive: [Instructions](doc/SetupRClone.md)
### Set up the USB storage functionality ### Set up the USB storage functionality

View File

@@ -159,7 +159,7 @@ function wait_for_archive_to_be_unreachable () {
log "Waiting for archive to be unreachable..." log "Waiting for archive to be unreachable..."
while [ true ] while [ true ]
do do
if ! archive_is_reachable if ! retry archive_is_reachable
then then
log "Archive is unreachable." log "Archive is unreachable."
break break

View File

@@ -4,7 +4,7 @@ log "Archiving through rsync..."
source /root/.teslaCamRsyncConfig 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" /root/bin/send-pushover "$num_files_moved"