LINUX LITE 7.2 FINAL RELEASED - SEE RELEASE ANNOUNCEMENTS SECTION FOR DETAILS


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Cron job to automate backup????
#14
Hi,

You need to set EDITOR environment variable to some text editor.
I use nano here, you may use emacs, vi or anything really
For example:

shell >  export EDITOR=nano
shell >  crontab -e

## Insert or append a line like:
# min hour day_of_the_month  month  day_of_the_week  command
# So 5 past midnight of every Tuesday do...

5 0 * * 2  tar -cf  ~/back.tar  ~/Documents && mv ~/back.tar  /where-ever  2>&1 > /dev/null

# Save settings = CTRL+O
# exit = CTRL+X

Reply


Messages In This Thread
Cron job to automate backup???? - by kjacobs - 12-14-2015, 06:09 AM
Re: Cron job to automate backup???? - by kjacobs - 12-14-2015, 04:34 PM
Re: Cron job to automate backup???? - by kjacobs - 12-14-2015, 04:55 PM
Re: Cron job to automate backup???? - by kjacobs - 12-15-2015, 04:51 PM
Re: Cron job to automate backup???? - by kpanic - 06-12-2018, 01:11 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)