Define cron jobs in Ubuntu

Taking care of your Linux box.
mejam
Havaldaar
Posts: 127
Joined: Sat Oct 18, 2008 12:30 pm
Location: Lahore
Contact:

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

lambda
Major General
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Location: Lahore
Contact:

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"?

LinuxFreaK
Site Admin
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
Location: Karachi
Contact:

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

mejam
Havaldaar
Posts: 127
Joined: Sat Oct 18, 2008 12:30 pm
Location: Lahore
Contact:

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

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

Abdulrehman


Return to “Administration”

Who is online

Users browsing this forum: No registered users and 1 guest