Files
teslausb/windows_archive/archive-rsync
Gocnak 002d1e6f6c 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?)
2018-10-20 03:26:08 -04:00

12 lines
224 B
Bash

#!/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!"