From 886e2469c374b29b6e8340709f97de9fcc8637fe Mon Sep 17 00:00:00 2001 From: Marco Kundt Date: Mon, 12 Apr 2021 20:42:20 +0200 Subject: [PATCH] circumvent PATH --- restic/.bin/restic-backup | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/restic/.bin/restic-backup b/restic/.bin/restic-backup index e7449ee..61696d4 100755 --- a/restic/.bin/restic-backup +++ b/restic/.bin/restic-backup @@ -36,27 +36,26 @@ fi info "Done" info "Updating restic..." -restic self-update +$HOME/.local/bin/restic self-update info "Done" read_config -#restic -r ${RESTIC_REPOSITORY} unlock +restic -r ${RESTIC_REPOSITORY} unlock if [[ $1 == 'prune' ]]; then info "Pruning snapshots..." - restic --cache-dir ${CACHE_DIR} -r ${RESTIC_REPOSITORY} prune --max-unused 0 + $HOME/.local/bin/restic --cache-dir ${CACHE_DIR} -r ${RESTIC_REPOSITORY} prune --max-unused 0 info "Done" else info "Starting backup..." - restic --cache-dir ${CACHE_DIR} -r ${RESTIC_REPOSITORY} backup ${BACKUP_PATHS} \ + $HOME/.local/bin/restic --cache-dir ${CACHE_DIR} -r ${RESTIC_REPOSITORY} backup ${BACKUP_PATHS} \ --exclude-file ${EXCLUDES_FILE} info "Done" info "Forgetting snapshots..." - restic --cache-dir ${CACHE_DIR} -r ${RESTIC_REPOSITORY} forget \ + $HOME/.local/bin/restic --cache-dir ${CACHE_DIR} -r ${RESTIC_REPOSITORY} forget \ --keep-hourly ${KEEP_HOURS} --keep-daily ${KEEP_DAYS} \ --keep-weekly ${KEEP_WEEKS} --keep-monthly ${KEEP_WEEKS} \ - --keep-yearly ${KEEP_YEARS} \ - --prune + --keep-yearly ${KEEP_YEARS} #--prune info "Done" fi