Created
May 21, 2025 13:37
-
-
Save Yannick7777/60c5263d821ce4406d990b44a0920024 to your computer and use it in GitHub Desktop.
Backup Script config file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment