Initial rsync support (untested)

Currently untested, but the main idea is there
Currently it's either the normal archive server or rsync; not both, which is something to consider when adding things like gdrive and s3 (make it more modular?)
This commit is contained in:
Gocnak
2018-10-20 03:26:08 -04:00
parent 29a79bf45e
commit 002d1e6f6c
5 changed files with 103 additions and 13 deletions

View File

@@ -0,0 +1,12 @@
#!/bin/bash -eu
function log () {
echo "$( date )" >> "$LOG_FILE"
echo "$1" >> "$LOG_FILE"
}
source /root/.teslaCamRsyncConfig
rsync -au /mnt/archive $user@$server:$path
log "Successfully synced files through rsync!"