updated borg state
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Paul 2023-11-24 19:33:02 +01:00
parent d534655fa6
commit ed3aa290e9
2 changed files with 6 additions and 1 deletions

View File

@ -5,7 +5,6 @@ borg:
working_dir: /opt/borg working_dir: /opt/borg
log_dir: /var/log/borg log_dir: /var/log/borg
default_dirs: default_dirs:
- logs
- scripts - scripts
pip_pkgs: pip_pkgs:
- borgbackup - borgbackup

View File

@ -22,6 +22,12 @@ repo_path={{ job.sshrepo|default('localhost::tmp') }}
export BORG_REPO=$repo_path/${backup_name} export BORG_REPO=$repo_path/${backup_name}
export BORG_PASSPHRASE='{{ job.password }}' export BORG_PASSPHRASE='{{ job.password }}'
if [[ $1 == "list" ]]
then
borg list
exit
fi
info "Starting backup" info "Starting backup"
info "Init repository backup" info "Init repository backup"