Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Sep 2002
    Posts
    462
    Thanks
    0
    Thanked 20 Times in 20 Posts

    website backup problems

    I'm still a noob to php and mysql but I managed to find a app that allows us to backup/restore all of our databases at once. MySQLDumper. All databases are backed up to a single directory, but now I need to backup the entire website. I tried a few cheap script tutorials but they only caused errors and I don't have time to build or learn the coding for an entire backup system with all the bells and whistles.

    So what's the difference between gzip and zip and where can I find an easy solution to zipping up our entire website for a backup/restore or tranfer?
    NO Limits!! DHCreationStation.com
    ------------------------------------------------------------
    For projects using MediaTypes (MIMETypes) visit E-BAM.net -(updated weekly)

    Broken items wanted for tinkerin'! PostItNow@BrokenEquipment.com
    Global Complaint Dept.

  • #2
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,994
    Thanks
    4
    Thanked 2,662 Times in 2,631 Posts
    I'm not sure I follow you here.
    Why are you backing up using PHP? You shouldn't need to backup the site files at all anyways since they are actually static. All you need is the dbms to be backed up (or the files if your persistent storage is filesystem), but in either case you should *not* use PHP for this task. PHP is far far too slow to perform this type of maintenance; use the dbms' native filesystem dump tools. Dump it to filesystem and let your standard filesystem backup process sweep it up with the site files. Done and done.
    Although if you have agents capable of supporting the dbms, that would be better to use to avoid any type of heavy locking. That assumes you do have a backup solution currently in use.
    As for archiving, use gzip if you have it. It is a compression only type, so you'll need to tarball it first (giving you a .tar.gz), but it is superior to the zip. That assumes you're on a linux machine of course, otherwise use zip.
    PHP Code:
    header('HTTP/1.1 420 Enhance Your Calm'); 
    Been gone for a few months, and haven't programmed in that long of a time. Meh, I'll wing it ;)

  • #3
    Regular Coder
    Join Date
    Sep 2002
    Posts
    462
    Thanks
    0
    Thanked 20 Times in 20 Posts
    We're on a linux system, but currently have no 'file system' backup in use only a database backup sytem.
    NO Limits!! DHCreationStation.com
    ------------------------------------------------------------
    For projects using MediaTypes (MIMETypes) visit E-BAM.net -(updated weekly)

    Broken items wanted for tinkerin'! PostItNow@BrokenEquipment.com
    Global Complaint Dept.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •