mirror of
https://github.com/cimryan/teslausb.git
synced 2026-03-01 04:30:33 +00:00
Move rsync files to rsync_archive
This commit is contained in:
@@ -1,16 +0,0 @@
|
||||
#!/bin/bash -eu
|
||||
|
||||
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}')
|
||||
|
||||
/root/bin/send-pushover "$num_files_moved"
|
||||
|
||||
if [ $num_files_moved > 0 ]
|
||||
then
|
||||
log "Successfully synced files through rsync."
|
||||
else
|
||||
log "No files to archive through rsync."
|
||||
fi
|
||||
@@ -1,2 +0,0 @@
|
||||
#!/bin/bash -eu
|
||||
# Nothing to do.
|
||||
@@ -1,2 +0,0 @@
|
||||
#!/bin/bash -eu
|
||||
# Nothing to do.
|
||||
@@ -185,13 +185,13 @@ function configure_archive_scripts () {
|
||||
|
||||
if [ $RSYNC_ENABLE = true ]
|
||||
then
|
||||
wget https://raw.githubusercontent.com/"$REPO"/teslausb/"$BRANCH"/windows_archive/archive-rsync.sh
|
||||
wget https://raw.githubusercontent.com/"$REPO"/teslausb/"$BRANCH"/rsync_archive/archive-rsync.sh
|
||||
chmod +x archive-rsync.sh
|
||||
|
||||
wget https://raw.githubusercontent.com/"$REPO"/teslausb/"$BRANCH"/windows_archive/connect-archive-rsync.sh
|
||||
wget https://raw.githubusercontent.com/"$REPO"/teslausb/"$BRANCH"/rsync_archive/connect-archive-rsync.sh
|
||||
chmod +x connect-archive-rsync.sh
|
||||
|
||||
wget https://raw.githubusercontent.com/"$REPO"/teslausb/"$BRANCH"/windows_archive/disconnect-archive-rsync.sh
|
||||
wget https://raw.githubusercontent.com/"$REPO"/teslausb/"$BRANCH"/rsync_archive/disconnect-archive-rsync.sh
|
||||
chmod +x disconnect-archive-rsync.sh
|
||||
else
|
||||
wget https://raw.githubusercontent.com/"$REPO"/teslausb/"$BRANCH"/windows_archive/archive-cifs.sh
|
||||
|
||||
Reference in New Issue
Block a user