Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cron

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I want to backup my linux box everynight at 9:00 O'clock pm. I want to know the command line to set it up. Any suggestion.
 
'cron' jobs are set up under the user name that is currently logged in. If you wish to backup *ALL* files, you must log in as root, set the 'EDITOR' environmental to your favorite test editor(ie: EDITOR=vi) and then run 'crontab -e'. Navigate to the bottom of the listings and insert a line similar to the following:

0 21 * * * /etc/mybackup.job 2>/etc/log/mybackup.log

Now save the editing using the editor's normal exit/save function. The script '/etc/mybackup.job' will be run at 9PM each day. Be sure that script has read/execute permissions. Also be sure that your script checks for the presence or absence of media if needed.

gafling


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top