From eab80545385e42cff1503cb7d39ae381989e1bdb Mon Sep 17 00:00:00 2001 From: GRMrGecko Date: Thu, 29 Dec 2022 12:56:30 -0600 Subject: [PATCH] Add borg answers for automation --- kvm-backup-images.sh | 5 +++++ kvm-backup-rbd.sh | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/kvm-backup-images.sh b/kvm-backup-images.sh index 919f8e1..140e694 100644 --- a/kvm-backup-images.sh +++ b/kvm-backup-images.sh @@ -11,6 +11,11 @@ export BORG_REPO='/media/Storage/Backup/kvm' # If you have a passphrase for your repository, # set it here or you can use bash to retrieve it. # export BORG_PASSPHRASE='' +# Set answers for automation. +export BORG_UNKNOWN_UNENCRYPTED_REPO_ACCESS_IS_OK=yes +export BORG_RELOCATED_REPO_ACCESS_IS_OK=yes +export BORG_CHECK_I_KNOW_WHAT_I_AM_DOING=NO +export BORG_DELETE_I_KNOW_WHAT_I_AM_DOING=NO # Set to empty string to disable pruning. PRUNE_OPTIONS="--keep-daily 7 --keep-weekly 4 --keep-monthly 6" diff --git a/kvm-backup-rbd.sh b/kvm-backup-rbd.sh index a0c70c9..2304713 100644 --- a/kvm-backup-rbd.sh +++ b/kvm-backup-rbd.sh @@ -12,6 +12,11 @@ export BORG_REPO='/media/Storage/Backup/kvm' # If you have a passphrase for your repository, # set it here or you can use bash to retrieve it. # export BORG_PASSPHRASE='' +# Set answers for automation. +export BORG_UNKNOWN_UNENCRYPTED_REPO_ACCESS_IS_OK=yes +export BORG_RELOCATED_REPO_ACCESS_IS_OK=yes +export BORG_CHECK_I_KNOW_WHAT_I_AM_DOING=NO +export BORG_DELETE_I_KNOW_WHAT_I_AM_DOING=NO for IMAGE in $IMAGES; do # Export volume to borg backup.