Cron job to automate backup???? - Printable Version +- Linux Lite Forums (https://www.freecinema2022.gq/forums) +-- Forum: Development (https://www.freecinema2022.gq/forums/forumdisplay.php?fid=7) +--- Forum: Scripting and Bash (https://www.freecinema2022.gq/forums/forumdisplay.php?fid=32) +--- Thread: Cron job to automate backup???? (/showthread.php?tid=2484) Pages:
1
2
|
Re: Cron job to automate backup???? - kjacobs - 12-15-2015 Well fellas.....I tried a few more options from the links you provided, but still had no luck running grsync. It appears the GUI for rsync is fussy about starting from cron or scheduler. So, I decided to grab the rsync command that grsync was sending and dropped that direct into scheduler......that seemed to work fine. Then I copied that command into my backup.sh script and ran the shell script from scheduler.....that worked fine too. I even setup rsync to send a log file of the backup, so I can see that everything went fine. Thanks for the help...... Re: Cron job to automate backup???? - Wirezfree - 12-15-2015 glad you sorted it... GL Re: Cron job to automate backup???? - firenice03 - 12-15-2015 (12-15-2015, 05:24 PM)Wirezfree link Wrote: glad you sorted it... GL Ditto ;D 8) Re: Cron job to automate backup???? - kpanic - 06-12-2018 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 |