32 lines
1 KiB
Bash
Executable file
32 lines
1 KiB
Bash
Executable file
#!/bin/bash
|
|
|
|
## COPY THIS FILE TO ~/docker/.backup_conf/conf !!
|
|
|
|
compose_stack_location="" # Full Path
|
|
cd $compose_stack_location
|
|
|
|
tar_backups_to_keep=10
|
|
local_backup_tar_save_dir=("")
|
|
tar_arguments="--exclude='dir' --exclude=''"
|
|
|
|
backup_tar_tmp_dir="/var/tmp/backup_script"
|
|
compression_options="zstd -8 -T6"
|
|
gpg_encryption_password="$(cat .backup_conf/creds/gpg_pw)"
|
|
|
|
restic_repository_strings=("" "" "")
|
|
restic_repository_encryption_passwords=("" "" "")
|
|
restic_arguments=("--no-scan -o rest.connections=3 --exclude dir --exclude --retry-lock 10m" "--no-scan --retry-lock 10m --exclude dir" "--no-scan -o rest.connections=3 --exclude dir --retry-lock 10m" "--no-scan --retry-lock 10m --exclude dir")
|
|
restic_snapshots_to_keep=("--keep-last 30" "--keep-last 100" "--keep-last 30")
|
|
restic_compose_stacks_to_skip=("no_backup")
|
|
|
|
export GOMAXPROCS=6
|
|
|
|
local_backup_ssh_user=""
|
|
ssh_backup_ip=("10.99.0.1" "domain.com")
|
|
ssh_backup_port=(22 2222)
|
|
ssh_backup_user=("" "")
|
|
ssh_backup_path=("" "")
|
|
ssh_backup_concurrency=25
|
|
|
|
|
|
date=$(date +%F-%H-%M-%S)
|