freevp Posted September 21, 2017 Posted September 21, 2017 How do i automatically backup to DropBox (Or any other system) daily? Is this possible? For I can not get on daily to back it up, and I do not want to lose any information. Thanks Quote
wolstech Posted September 21, 2017 Posted September 21, 2017 You'd need to write a script to back up and download the contents of your account daily to accomplish that. Krydos wrote one and posted it on here at one point, but I can't seem to find it at the moment. Perhaps he can link it if he sees this post. Quote
Krydos Posted September 22, 2017 Posted September 22, 2017 Luckily Rutaj6 was so kind to compile my forum post into a wiki page http://wiki.helionet.org/Running_Auto_Backups Let us know if you need any special customizations for your specific needs. Quote
freevp Posted September 22, 2017 Author Posted September 22, 2017 (edited) Luckily Rutaj6 was so kind to compile my forum post into a wiki page http://wiki.helionet.org/Running_Auto_Backups Let us know if you need any special customizations for your specific needs.Do I need Linux for this? I usually use PHP so this is new to me Edited September 22, 2017 by freevp Quote
Krydos Posted September 23, 2017 Posted September 23, 2017 Our servers run linux. The backup script runs on the server. I suppose you could write a backup script with php, but it would really complicate things and you'd need to use a cron job of some sort to trigger it anyways. Quote
Byron Posted September 23, 2017 Posted September 23, 2017 (edited) Here's an old php script I used to backup my account once a month. You can adjust the date. The reason I had the date for once a month is because my cron would run every day catching many scripts.I haven't used it in a couple of years. Don't know what needs to be changed to work on Tommy now. https://bybyron.net/files/auto_cpanel_backup.txt Edited September 23, 2017 by Byron Quote
freevp Posted September 23, 2017 Author Posted September 23, 2017 Here's an old php script I used to backup my account once a month. You can adjust the date. The reason I had the date for once a month is because my cron would run every day catching many scripts.I haven't used it in a couple of years. Don't know what needs to be changed to work on Tommy now. https://bybyron.net/files/auto_cpanel_backup.txtThanks, do I have to run that from the Johnny server or from anywhere? Also how would I set up the cron job to ran that thanks Quote
Byron Posted September 23, 2017 Posted September 23, 2017 It needs to run from the server your on, so if your on Johnny, run it from there. Here's the way I set up cron to run a php script: php -q /home/user_name/public_html/your_script.php Quote
freevp Posted September 23, 2017 Author Posted September 23, 2017 (edited) It needs to run from the server your on, so if your on Johnny, run it from there. Here's the way I set up cron to run a php script:php -q /home/user_name/public_html/your_script.phpOK Thanks. Also for changing the once a month to once a day i would just do this:$date = date("j");if ( $date > 0 ){Thanks EDIT:Also does this backup MySQL? Edited September 23, 2017 by freevp Quote
Byron Posted September 23, 2017 Posted September 23, 2017 Yes that should work and no this doesn't backup MySQL Quote
Byron Posted September 23, 2017 Posted September 23, 2017 I just tested that script on my Johnny account and was able to ftp the backup to my Tommy account. You need to set the skin to paper_lantern on this line: # Set to cPanel skin you use $skin = "paper_lantern"; Quote
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.