User Tools

Site Tools


wiki:run_borgbackup_each_day

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
wiki:run_borgbackup_each_day [2023/04/11 18:14] – [Run anacron in user mode] add test antisawiki:run_borgbackup_each_day [2023/04/12 12:17] (current) – uncomment PATH antisa
Line 18: Line 18:
  
 SHELL=/bin/bash SHELL=/bin/bash
-# this will override the PATH variable set from shell (i.e. bashrc etc.) +PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
-# you might not want this, so its commented out +
-PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin+
  
 # this will run test.sh script once each day # this will run test.sh script once each day
 # period  delay  job-identifier  command # period  delay  job-identifier  command
-1         10     testjob         test.sh+1         10     testjob         test.sh > /tmp/test.log 2>&1
 </code> </code>
 3. Add the following line to your crontab using ''crontab -e'': 3. Add the following line to your crontab using ''crontab -e'':
wiki/run_borgbackup_each_day.1681229678.txt.gz · Last modified: 2023/04/11 18:14 by antisa

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki