Closed Thread
Results 1 to 4 of 4

Thread: Backups and PHP version

  1. #1
    risc2008 is offline x10Hosting Member risc2008 is an unknown quantity at this point
    Join Date
    Oct 2008
    Posts
    5

    Backups and PHP version

    I've got two related questions that I haven't been able to get good answers to by searching through the forums and KB.

    First, how do request an upgrade of my PHP version? I'm currently on version 1 according to my account panel, but when I go to "upgrade PHP version" I just get an error message saying that the feature hasn't been activated on my account. I'd like an upgrade to a version that supports the command system() or exec(), because I've been trying to run a PHP script that makes backups, archives them (using tar), and sends them to a remote server.

    Second, is that a good way to make backups, and can anyone suggest a better one? I understand that the CPanel backup feature has been disabled, and that I can't access the backups kept by x10hosting. However, I don't want to go around every day exporting SQL databases and my public_html folder, so I'm thinking some kind of cron job would be best. That leads me back to the first question on system() support in PHP, which I don't have currently. Besides, can anyone recommend a script that can make backups of both public_html and my SQL database, and then upload them to an FTP server?

    Any help would be much appreciated. Thanks!

  2. #2
    misson is offline x10 Spammer misson is a jewel in the rough
    Join Date
    Mar 2008
    Location
    Libertatia
    Posts
    2,504

    Re: Backups and PHP version

    1. Sometimes you need to use Google rather than the forum search. Ignore the account panel; the basic version of PHP isn't used right now, and almost no-one will be approved for a version with system() or exec() enabled.
    2. To backup files, you don't need to run anything on the X10 server, you can just have a script on your backup server pull the files using FTP (if only we could use rsync). However, the files on the X10 server shouldn't be the master copy; you should have the master copy on your own computer and make backups from that. As for MySQL, a cron job to back up doesn't need system to get data from MySQL or to write it to a file. You might even be able to call mysqldump as a cron job, though you'd need to store database user credentials in your crontab. A 'backup' user that has SELECT (and maybe FILE) privileges and nothing else could mitigate the damage of security breaches. Read "Cron daily backup script" for some recommendations for 3rd party backup apps; I feel like there's at least one other good thread on the matter, but can't find it. Once the script dumps the database, it could push it to a server of your own, or your computer could pull (and delete) the dump over FTP.
    Last edited by misson; 12-30-2009 at 06:29 AM.
    Be sure to read all pages linked in this post; they have further information that should prove useful. When asking for help, make sure you follow Eric Raymond's and Jon Skeet's guidelines for prompt, accurate responses. Please answer any questions I ask; they're not rhetorical (probably). Any posted code is intended as illustrative example, rather than a solution to your problem to be copied without alteration. Study it to learn how to write your own solution.
    Misson, not Mission.

  3. #3
    Gouri's Avatar
    Gouri is offline Community Paragon Gouri has a brilliant futureGouri has a brilliant futureGouri has a brilliant future
    Join Date
    Oct 2007
    Location
    India
    Posts
    4,502

    Re: Backups and PHP version

    Quote Originally Posted by risc2008 View Post
    First, how do request an upgrade of my PHP version? I'm currently on version 1 according to my account panel, but when I go to "upgrade PHP version" I just get an error message saying that the feature hasn't been activated on my account. I'd like an upgrade to a version that supports the command system() or exec(), because I've been trying to run a PHP script that makes backups, archives them (using tar), and sends them to a remote server.
    Righ now everybody on x10 has php level 2,

    The levels are restrictions made by x10.

    Quote Originally Posted by risc2008 View Post
    Second, is that a good way to make backups, and can anyone suggest a better one? I understand that the CPanel backup feature has been disabled, and that I can't access the backups kept by x10hosting. However, I don't want to go around every day exporting SQL databases and my public_html folder, so I'm thinking some kind of cron job would be best. That leads me back to the first question on system() support in PHP, which I don't have currently. Besides, can anyone recommend a script that can make backups of both public_html and my SQL database, and then upload them to an FTP server?
    for the back up you can check this --> http://www.tufat.com/s_mybackup_web_...e_exporter.htm
    If you feel my post is useful then click to give Reputation (bottom left corner of this post)

    X10 Hosting | News and Announcements | Premium Hosting | VPS Hosting | Prime Membership

    Tech Community | Gouri

  4. #4
    risc2008 is offline x10Hosting Member risc2008 is an unknown quantity at this point
    Join Date
    Oct 2008
    Posts
    5

    Re: Backups and PHP version

    Mission and gsonline, thanks for the replies; it clears quite a few things up!

Closed Thread

Similar Threads

  1. PHP down on Cossacks?
    By scottnj in forum Free Hosting
    Replies: 3
    Last Post: 08-31-2008, 10:13 PM
  2. php cookies disabled from server move?
    By wtractor in forum Free Hosting
    Replies: 2
    Last Post: 01-23-2008, 01:02 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers