This commit is contained in:
parent
d534655fa6
commit
ed3aa290e9
@ -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
|
||||||
|
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user