Commit d561cb52 authored by Jocelyn Delalande's avatar Jocelyn Delalande

borg-ynh-backup: Make backup time configurable

parent d2b0435e
......@@ -24,6 +24,11 @@ You can optionaly mention extra dirs to backup:
borg_ynh_backup_extra_dirs:
- "/var/foo"
- "/home/jack"
You may want to backup at another time than the default (4h44). Eg to run it at launch time.
borg_ynh_backup_cron_time_hours: 12
borg_ynh_backup_cron_time_minutes: 30
### Passphrase
......
......@@ -14,3 +14,5 @@ borg_ynh_backup_sudoed_cleanup: "{{ borg_ynh_backup_bin_path }}/ynh-backup-clean
borg_ynh_backup_backup_script: "{{ borg_ynh_backup_bin_path }}/borg-ynh-backup"
borg_ynh_backup_compression: no
borg_ynh_backup_ssh_options: ''
borg_ynh_backup_cron_time_hours: 4
borg_ynh_backup_cron_time_minutes: 44
......@@ -47,6 +47,6 @@
cron:
name: "borg-ynh-backup"
job: "{{ borg_ynh_backup_backup_script }}"
hour: 4
minute: 44
hour: "{{ borg_ynh_backup_cron_time_hours }}"
minute: "{{ borg_ynh_backup_cron_time_minutes }}"
user: "{{ borg_ynh_backup_user }}"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment