Skip to content

Commit 219b3ff

Browse files
committed
* /git is better to be backuped by archive role
1 parent d080dbd commit 219b3ff

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

ansible/playbook_main.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,12 @@
8181
- role: archive
8282
vars:
8383
archive_jobs:
84+
- name: "backup-git-{{ hostname_main }}"
85+
user: "root"
86+
dest: "/share/backups/{{ hostname_main }}/git/"
87+
timer_OnCalendar: "*-*-* 04:20:00"
88+
steps:
89+
- { name: "git", src: "/git", }
8490
- name: "backup-config-{{ hostname_main }}"
8591
user: "root"
8692
dest: "/share/backups/{{ hostname_main }}/config/"
@@ -104,7 +110,6 @@
104110
user: "root"
105111
timer_OnCalendar: "*-*-* *:20:00"
106112
steps:
107-
- { src: "/git", dest: "/share/backups/{{ hostname_main }}/git" }
108113
- { src: "/share-common", dest: "/share/backups/{{ hostname_main }}/share-common", opts: '--exclude="downloads"' }
109114

110115
- role: rsync-daemon

0 commit comments

Comments
 (0)