Explorar el Código

provide absolute path to tarsnap binary in cron job

Alex Payne hace 11 años
padre
commit
26233ecb6c
Se han modificado 2 ficheros con 1 adiciones y 3 borrados
  1. 1
    1
      roles/tarsnap/tasks/tarsnap.yml
  2. 0
    2
      site.yml

+ 1
- 1
roles/tarsnap/tasks/tarsnap.yml Ver fichero

@@ -25,4 +25,4 @@
25 25
   file: state=directory path=/usr/tarsnap-cache
26 26
 
27 27
 - name: Install nightly Tarsnap cronjob
28
-  cron: name="Tarsnap backup" hour="3" minute="0" job="tarsnap --cachedir /usr/tarsnap-cache --keyfile /root/tarsnap.key -c -f backup-`date +\%Y\%m\%d` /home /root /decrypted /var/www /var/log /var/lib/mysql > /dev/null"
28
+  cron: name="Tarsnap backup" hour="3" minute="0" job="/usr/local/bin/tarsnap --cachedir /usr/tarsnap-cache --keyfile /root/tarsnap.key -c -f backup-`date +\%Y\%m\%d` /home /root /decrypted /var/www /var/log /var/lib/mysql > /dev/null"

+ 0
- 2
site.yml Ver fichero

@@ -16,5 +16,3 @@
16 16
     - vpn
17 17
     - tarsnap
18 18
 
19
-
20
-

Loading…
Cancelar
Guardar