How to make a scheduled backup using cron file?
Im using Fedora Core 4 and Im wondering if anyone know how to make a scheduled backup using cron file?
Please inform me as soon as possible.
Thanks in advance.
Make a script to perform the backup and then call it from your crontab.
Here is an example from my system. I dump the filesystem(s) I want across the network to a fileserver. I use ssh to do this. This example probably will not work for you... it is an example. Either modify it for your site or create a whole new model on for your own needs.
Backup script: dump.sched
Edit: Wow, it's been a long time since I looked at that script. It could probably be done in a much better manner now. I didn't write it to be the best example of a script -- I just needed something to work.
Im sorry for asking this. But im a newbie you see, so if you dont mind me asking, where exactly do i have to type
One more thing, which part of the script exactly that do i have to change?
Sorry if my question seems a lil bit silly to you...
You type the contents of the code-box for dump.sched into a file and save it as dump.sched.
You use "crontab -e" to add the other line to your crontab.
What you need to change depends on how you are doing to perform your backups, to what media, what partitions and filesystems, and according to what schedule.
The above script dumps one freebsd partition across a network onto a fileserver. It does a complete backup once a month. A weekly backup each Friday (everything which changed during the week). And a nightly backup every day (but Friday and the 1st of the month) which backs up everything which changed in the last 24 hours.
This is probably a more complex backup schedule than you need and would want to deal with in a restore situation. It is impossible for me to guess what your backup needs are.
What do you need to backup?
What method do you prefer to backup everything?
How often do you want to back things up?
Where are you backing things up to?
|All times are GMT -5. The time now is 02:58 PM.|