Files
backup-scripts/storage/run-restic-storage-backups-to-hosthatch.sh

9 lines
242 B
Bash
Executable File

#!/bin/bash
export RESTIC_REPOSITORY="sftp:root@hosthatch-backup:/backups/storage-backups"
export RESTIC_PASSWORD_FILE=/root/scripts/backups/restic-password
restic unlock
restic backup /mnt/data/storage --no-cache -v
restic cache --cleanup