Define cron jobs in Ubuntu

Taking care of your Linux box.

Define cron jobs in Ubuntu

Postby mejam » Thu Feb 05, 2009 8:15 pm

Dear all, I have to take backup of my databases...i want to set a cron job for it...cron job will take backup daily and put it in root's home directory..another cron job will run 30mins after this backup job and take the backups from root's home directory and will put it to my backup server using scp command...i have-key based authentication among my servers.....Waiting for help.....
Regards
Abdulrehman
mejam
Havaldaar
 
Posts: 127
Joined: Sat Oct 18, 2008 12:30 pm
WLM: bmw1000cc@hotmail.com
Yahoo Messenger: vagabond_aw@yahoo.com
Location: Lahore

Postby lambda » Thu Feb 05, 2009 10:41 pm

1. write a script to do the backup
2. write a script to do the scp (you can combine this with the first script)
3. man 5 crontab
4. crontab -e
5. there is no step 5.
Watch out for the Manners Taliban!
Isn't it amazing how so many people can type "linuxpakistan.net" into their browsers but not "google.com"?
lambda
Major General
 
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Website: http://www.hungry.com/~fn/
Location: Lahore

Re:

Postby LinuxFreaK » Fri Feb 06, 2009 12:10 pm

Dear mejam,
Salam,

FYI, http://www.unixgeeks.org/security/newbi ... ron-1.html

Best Regards.
Farrukh Ahmed
LinuxFreaK
Site Admin
 
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
ICQ: 82075802
Website: http://www.linuxpakistan.net/wiki/index.php?pagename=LinuxFreak
WLM: f4fahmed@hotmail.com
Yahoo Messenger: f4fahmed@yahoo.com
AOL: linuxpakistan@aol.com
Location: Karachi

Postby mejam » Fri Feb 06, 2009 3:10 pm

Thanks for help farrukh bhai....The link you posted helped alot
Regards

Abdulrehman
mejam
Havaldaar
 
Posts: 127
Joined: Sat Oct 18, 2008 12:30 pm
WLM: bmw1000cc@hotmail.com
Yahoo Messenger: vagabond_aw@yahoo.com
Location: Lahore


Return to “%s” Administration

Who is online

Users browsing this forum: No registered users and 1 guest

cron