2
0
Fork 0

zio-backup: move env folder to correct location

main
Ducky 2022-02-23 05:47:40 +00:00
parent 0b6fc9f2d6
commit 5918c5884c
2 changed files with 11 additions and 7 deletions

16
.gitignore vendored
View File

@ -33,9 +33,13 @@
!/var/ !/var/
/var/* /var/*
# /var/zio-backup/ # /var/lib/
!/var/zio-backup/ !/var/lib/
/var/zio-backup/* /var/lib/*
!/var/zio-backup/*.*
!/var/zio-backup/passwd # /var/lib/zio-backup/
/var/zio-backup/*.*~ !/var/lib/zio-backup/
/var/lib/zio-backup/*
!/var/lib/zio-backup/*.*
!/var/lib/zio-backup/passwd
/var/lib/zio-backup/*.*~

View File

@ -4,7 +4,7 @@ env_dir=$1
base_dir="$(dirname "$(realpath -s "$0")")" base_dir="$(dirname "$(realpath -s "$0")")"
root_dir="$base_dir/../../.." root_dir="$base_dir/../../.."
[[ -z $env_dir ]] && env_dir="/var/zio-backup" [[ -z $env_dir ]] && env_dir="/var/lib/zio-backup"
function restic_exec() { function restic_exec() {
command="$1" command="$1"