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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

scheduling backup on cron

Status
Not open for further replies.

adeday

IS-IT--Management
Feb 14, 2002
3
US
I am new to Linux...I got a question on backup

I just insalled a tape drive on a lInux box and the O/S saw it fine when it booted.

How do I schedule backup on cron on red hat Linux...like backing up the whole /export/home every night.

Thanks in advance

Thanks
 
I'm not sure the backup command to run on linux,
but here is the crontab format.
I would also make sure you put the absolute path
to the command line, and test the backup command
from the command line prior to using it in crontab.

minute hour monthday month weekday command
# this would run an ls command every day at 8:00 am
# and capture the standard out and error in a file
0 8 * * * /ur/bin/ls >> /tmp/ls.out 2>&1

to edit your crontab...
crontab -e
to show your current crontab...
crontab -l
Robert G. Jordan
Unix Sys Admin
Sleepy Hollow, Illinois U.S.A.
sh.gif


FREE Unix Scripts
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top