Look into cron. Add a line like the following to /etc/crontab:

00 2 * * 6 root /path/to/my/script.sh

You will need to write a script that executes the backup operation. As soon as you modify the file, the setting changes are noticed by crond. Make sure your script is executable (chmod 755 script.sh) and note that and output to STDOUT from the script will end up as a mail message sent to root.

--Randy



On Tuesday, December 10, 2002, at 09:11 PM, Jianping Zhu wrote:

I have redhat 7.1 server.
Because i have several dictories need to be backup, I want to write a
script do it automatically say every Satuerday a 2:00am. is there a way
to do that?



--
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

--
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to