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:
@@ -81,11 +81,22 @@ function move_clips_to_archive () {
|
||||
|
||||
done
|
||||
log "Moved $move_count file(s)."
|
||||
if [ -r "/root/.teslaCamPushoverCredentials" ] && [ $move_count > 0 ]
|
||||
|
||||
if [ $move_count > 0]
|
||||
then
|
||||
log "Sending Pushover message for copied files."
|
||||
/root/bin/send-pushover $move_count
|
||||
if [ -r "/root/.teslaCamRsyncConfig" ]
|
||||
then
|
||||
log "Archiving through rsync..."
|
||||
/root/bin/archive-rsync
|
||||
fi
|
||||
|
||||
if [ -r "/root/.teslaCamPushoverCredentials" ]
|
||||
then
|
||||
log "Sending Pushover message for copied files."
|
||||
/root/bin/send-pushover $move_count
|
||||
fi
|
||||
fi
|
||||
|
||||
log "Finished moving clips to archive."
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user