2
0
Fork 0

sh.zio.backup: add fixed time to backups

main
Ducky 2023-08-21 17:26:35 +01:00
parent 77ceaacd30
commit 4707b00867
1 changed files with 3 additions and 0 deletions

View File

@ -11,6 +11,7 @@ backup_scripts_dir="$(get_config_dir "sh.zio.backup")/scripts"
cache_dir="/var/cache/sh.zio.backup/restic"
secrets_dir="$(get_config_dir "sh.zio.backup")/secrets"
host="$(hostname -s)"
now="$(date +"%Y-%m-%d %H:%M:%S")"
restic_path=""
restic_repo_file="$secrets_dir/restic-repo"
restic_repo_passwd_file="$secrets_dir/restic-repo-passwd"
@ -88,6 +89,7 @@ function invoke_script() {
export -f get_config_dir
export -f get_real_path
export -f invoke_restic
export -f now
export -f podman_exec
export -f prune_backup
export -f say
@ -138,6 +140,7 @@ function backup_dir() {
--host "$host" \
--tag "$me_filename" \
--tag "$(basename "$0")" \
--time "$now" \
$args "$path"
fi
}