Fixed restic initialization upon installation

main
Anthony 2025-06-03 01:54:07 +08:00
parent da6f8574ed
commit dfb4bf0349
1 changed files with 3 additions and 0 deletions

View File

@ -324,6 +324,9 @@ actions:
- mkdir -p /home/jelastic/mb-backups/logs
- chmod -R 755 /home/jelastic/mb-backups/logs
- chmod 755 /mnt/backups
# Initialize the Restic repository
- export RESTIC_PASSWORD=$(cat /etc/restic-password) && export RESTIC_REPOSITORY=/mnt/backups && restic init
importScripts:
- cmd[cp]: