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

9 lines
240 B
Bash
Executable File

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