Upgraded from reseller to VPS and my backup script stopped working
Using the same hosting company, I upgraded from a reseller plan (no WHM root access) to a VPS plan (with WHM root access.) I had been using two scripts running from cron to perform nightly backups from each of my accounts. The first script I copied very heavily from
Here is the second cron command and script that does work.
Here is the second cron command and script that does work.
0 2 1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31 * * php /home/aimsport/ftpbackup.php
(Set to run at 2am every odd numbered day)
ftpbackup.php
-
Ok, it's amazing how writing something out and going back over it in printed form will make something jump out at you. After writing this all up and posting it, I went back through the scripts as they were posted. It then hit me that on my new VPS server, there is a setting that forces me to use a SSL connection for WHM, CPanel, and Webmail. (Chrome has been fussing at me because I'm using a self-signed certificate on the server.) I went into the first script and uncommented some lines I had earlier commented (5 lines starting with "// if ($secure) {" and ending with "// }") and added a line to set $secure = 1;. This made it work. The difference was the requirement to use SSL for Cpanel access on my new server that was not a requirement on my old server. 0 -
Hello :) I'm happy to see you were able to resolve the issue. Thank you for updating us with the outcome. 0
Please sign in to leave a comment.
Comments
2 comments