Rafael Calleja commited on
Commit
81da393
·
1 Parent(s): 13972e5
Files changed (2) hide show
  1. .cron +1 -0
  2. Makefile +3 -0
.cron ADDED
@@ -0,0 +1 @@
 
 
1
+ 0 0 * * * bash -c 'cd CURRENT_DIR; make backup 2>&1 | while IFS= read -r line; do echo "$(date +\%Y-\%m-\%d\ \%H:\%M:\%S) $line"; done >> CURRENT_DIR/backup.log'
Makefile CHANGED
@@ -24,3 +24,6 @@ save:
24
 
25
  load:
26
  gopass show $(GOPASS_KEY) >$(GOPASS_FILE)
 
 
 
 
24
 
25
  load:
26
  gopass show $(GOPASS_KEY) >$(GOPASS_FILE)
27
+
28
+ show-cron:
29
+ cat $(CURRENT_DIR)/.cron | sed "s|CURRENT_DIR|$(CURRENT_DIR)|g"