Compare commits

2 Commits

Author SHA1 Message Date
Jonathan Branan
a29347686e a
All checks were successful
continuous-integration/drone/push Build is passing
2026-01-28 20:00:24 -06:00
Jonathan Branan
52d217ca1d changed log location to var log 2026-01-28 19:32:53 -06:00

View File

@@ -3,10 +3,9 @@
: "${AWS_ACCESS_KEY_ID:?Need the access key id}" : "${AWS_ACCESS_KEY_ID:?Need the access key id}"
: "${AWS_SECRET_ACCESS_KEY:?Need the secret access key}" : "${AWS_SECRET_ACCESS_KEY:?Need the secret access key}"
: "${RESTIC_PASSWORD:?Need the restic password}" : "${RESTIC_PASSWORD:?Need the restic password}"
: "${LOG_PATH:-./restic-backup.log}" : "${LOG_PATH:-/var/log/restic-backup.log}"
: "${seafile_data_local:-/seafile}" : "${seafile_data_local:-/seafile}"
# need to securely provide password: https://restic.readthedocs.io/en/latest/faq.html#how-can-i-specify-encryption-passwords-automatically
restic snapshots > /dev/null || restic init restic snapshots > /dev/null || restic init
#Define a timestamp function #Define a timestamp function