updated borg state
This commit is contained in:
parent
2d5ad8d45c
commit
a707d697a4
@ -33,16 +33,16 @@ info "Starting before tasks"
|
||||
{%- endfor %}
|
||||
|
||||
info "Creating new archive"
|
||||
borg create \
|
||||
--verbose \
|
||||
--filter AME \
|
||||
--list \
|
||||
--stats \
|
||||
--show-rc \
|
||||
borg create \
|
||||
--verbose \
|
||||
--filter AME \
|
||||
--list \
|
||||
--stats \
|
||||
--show-rc \
|
||||
--compression {{ job.compression|default('lz4') }} \
|
||||
{%- if job.excluded_dirs is defined -%}
|
||||
{%- for exclude in job.excluded_dirs %}
|
||||
--exclude '{{ exclude }}' \
|
||||
--exclude '{{ exclude }}' \
|
||||
{%- endfor %}
|
||||
{%- endif %}
|
||||
--exclude-caches \
|
||||
@ -55,13 +55,13 @@ borg create \
|
||||
backup_exit=$?
|
||||
|
||||
info "Pruning repository"
|
||||
borg prune \
|
||||
--list \
|
||||
--prefix $backup_name'-' \
|
||||
--show-rc \
|
||||
--keep-daily {{ job.keep_daily|default(7) }} \
|
||||
--keep-weekly {{ job.keep_weekly|default(4) }} \
|
||||
--keep-monthly {{ job.keep_monthly|default(6) }} \
|
||||
borg prune \
|
||||
--list \
|
||||
-a $backup_name'-' \
|
||||
--show-rc \
|
||||
--keep-daily {{ job.keep_daily|default(7) }} \
|
||||
--keep-weekly {{ job.keep_weekly|default(4) }} \
|
||||
--keep-monthly {{ job.keep_monthly|default(6) }} \
|
||||
|
||||
info "Cleaning up logs"
|
||||
find {{ log_dir }}/${backup_name}-*.log -mtime +{{ job.keep_logs_days|default(7) }} -delete
|
||||
|
Loading…
Reference in New Issue
Block a user