runninghorse Posted July 2, 2004 Share Posted July 2, 2004 I have some flatfile databases in my cgi-bin and would like to setup a cron job to run nightly to back them up. What would be the best way to do this, and could someone explain it in newbie terms? I looked at a few articles but they were mostly for experienced unix people (not I said the Pig) and the one I did find that might have helped me seemed like it would only work for a MySql database. and mine is flat file. Thanks! Quote Link to comment Share on other sites More sharing options...
runninghorse Posted January 29, 2005 Author Share Posted January 29, 2005 I'm impatient so I violated the Forum Guidelines: Family Members may not bump threads.. Sorry, didn't mean to "bring this thread to the top" but I was just wondering if anybody could help since there were no answers to this in several months. I wasn't really being impatient, honest! Quote Link to comment Share on other sites More sharing options...
TCH-Bruce Posted January 29, 2005 Share Posted January 29, 2005 Where do you want these backed up to? Another folder within your domain? A cron job is simply a way of automating a task. You would need to develop a script in Perl, PHP or any other scripting language supported on the server (Perl and PHP are). Put the script on the server and set up the cron job to run it. Quote Link to comment Share on other sites More sharing options...
TCH-RobertM Posted January 29, 2005 Share Posted January 29, 2005 Hi runninghorse Also take a look at this page it might help you with your setup. If you need some help with the backup script just let us know Cron job help Cpanel Also I did a quick search and found this link with a backup script written in php You might be able to use this Backup script help Quote Link to comment Share on other sites More sharing options...
Deverill Posted January 29, 2005 Share Posted January 29, 2005 Yet another option is to schedule a job on your home PC to FTP the file to your hard drive. There are a billion ways to back things up. Quote Link to comment Share on other sites More sharing options...
runninghorse Posted January 29, 2005 Author Share Posted January 29, 2005 LOL Wow! I didn't know there were so many options! Basically, I just need some folders in my cgi-bin backed up. So incase I have a crash or something else, I can reupload the most recent version. So, have them put in another folder I guess. Ok, boy, let me think about this and do some more research. Thanks! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.