Define cron jobs in Ubuntu

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

Define cron jobs in Ubuntu

Post by mejam »

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:

Post by lambda »

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:

Post by LinuxFreaK »

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:

Post by mejam »

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