mirror of
https://github.com/cimryan/teslausb.git
synced 2026-03-01 04:30:33 +00:00
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:
12
windows_archive/archive-rsync
Normal file
12
windows_archive/archive-rsync
Normal 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!"
|
||||
Reference in New Issue
Block a user