This commit is contained in:
parent
d534655fa6
commit
ed3aa290e9
@ -5,7 +5,6 @@ borg:
|
||||
working_dir: /opt/borg
|
||||
log_dir: /var/log/borg
|
||||
default_dirs:
|
||||
- logs
|
||||
- scripts
|
||||
pip_pkgs:
|
||||
- borgbackup
|
||||
|
@ -22,6 +22,12 @@ repo_path={{ job.sshrepo|default('localhost::tmp') }}
|
||||
export BORG_REPO=$repo_path/${backup_name}
|
||||
export BORG_PASSPHRASE='{{ job.password }}'
|
||||
|
||||
if [[ $1 == "list" ]]
|
||||
then
|
||||
borg list
|
||||
exit
|
||||
fi
|
||||
|
||||
info "Starting backup"
|
||||
|
||||
info "Init repository backup"
|
||||
|
Loading…
Reference in New Issue
Block a user