###### Unlock the restic database in case it's locked $RESTIC --password-file=$PWD_FILE unlock ###### Send backups date echo "Sending the backup to the destination..." eval "$DIRS_TO_BACKUP_STR" # turn the string into an array $RESTIC --password-file=$PWD_FILE backup "${DIRS_TO_BACKUP[@]}" date echo "Pruning the backup on the destination..." $RESTIC --password-file=$PWD_FILE forget --prune --keep-daily 3 --keep-weekly 2 --keep-monthly 1 --keep-yearly 1