update
continuous-integration/drone/push Build is passing Details

main
ronnic 2 years ago
parent 87aa0260a8
commit 8e70b51ae1

@ -2,9 +2,9 @@ kind: pipeline
type: docker
name: backup-multiple-configs
# trigger:
# schedule:
# - cron: '0 2 * * 0' # This schedules the job to run at 2 AM every Sunday
trigger:
schedule:
- cron: '0 2 * * 0' # This schedules the job to run at 2 AM every Sunday
steps:
- name: backup-and-encrypt
@ -14,7 +14,7 @@ steps:
- |
for dir in vaultwarden homebox koillection Homepage mealie; do
echo "Processing $dir"
# Ensure the output filename includes the directory name to create a unique file for each iteration
# This line should create a unique backup file for each directory
tar cvf - "/backup/$dir" | openssl enc -aes-256-cbc -salt -out "/backup/${dir}_backup.tar.enc" -k "$ENCRYPTION_KEY" -md sha256
echo "${dir}_backup.tar.enc created."
done

Loading…
Cancel
Save