Jump to content

Recommended Posts

Posted

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 :)

Posted

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.

Posted

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.

Posted (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 by Byron
Posted

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

Thanks, 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 :)

Posted

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
Posted (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.php
OK 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 by freevp
Posted

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...