mirror of
https://github.com/cimryan/teslausb.git
synced 2026-03-01 12:40:33 +00:00
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?)
12 lines
224 B
Bash
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!" |