Is there backup/restore php script for files and database ?

Discussion in 'PHP' started by duperhost, Nov 21, 2010.

  1. #1
    Is there backup/restore php script for files and database ?
     
    duperhost, Nov 21, 2010 IP
  2. deepakg

    deepakg Peon

    Messages:
    48
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    deepakg, Nov 22, 2010 IP
  3. duperhost

    duperhost Well-Known Member

    Messages:
    817
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    130
    #3
    Thank you, its a good but, No option to restore from backup, like all scripts I've found, Is there scripts that can restore from backup for people that dose not have WHM and restore options ?
     
    duperhost, Nov 22, 2010 IP
  4. smg

    smg Well-Known Member

    Messages:
    599
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    130
    #4
    smg, Nov 22, 2010 IP
  5. chennaibeatz

    chennaibeatz Well-Known Member

    Messages:
    621
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    103
    #5
    chennaibeatz, Nov 22, 2010 IP
  6. duperhost

    duperhost Well-Known Member

    Messages:
    817
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    130
    #6
    Yes, I found this one before but only backup and restore the database, no files will be restored or backup

    Yes, also a codecanyon Its dose not have restore option, it have option to backup files and databases but there are no restore option.
     
    duperhost, Nov 23, 2010 IP
  7. mfscripts

    mfscripts Banned

    Messages:
    319
    Likes Received:
    4
    Best Answers:
    8
    Trophy Points:
    90
    Digital Goods:
    3
    #7
    Somthing like this will do it: (php script in root)

    // create mysql backup
    $databaseFile = 'db_backup.sql';
    exec('mysqldump ' . MYSQL_DB_NAME .
            ' -u' . MYSQL_USER . ' -p' . MYSQL_PASS . ' > ' . $databaseFile);
    
    // create backup
    $archiveFile = 'codebaseIncDb.tar.gz';
    exec('tar -pczf ' . $archiveFile . ' * 2>&1');
    PHP:
    Write the reverse in php to create a restore script. The database dump file is in sql so it can be run directly against the db.
     
    mfscripts, Nov 23, 2010 IP
  8. mbreezy

    mbreezy Active Member

    Messages:
    135
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    55
    #8
    Is there a backup script that backs up all files, subfolders and their contents and the mysql database, then zips it up and sends it to an email address? I'm sure the file would be huge and I'm not sure what parameters my server would allow but I'll delve into that if I found a script to do such a thing. Oh, and free is definitely a requirement. ;)
     
    mbreezy, Feb 14, 2011 IP
  9. Vishu Kalwani

    Vishu Kalwani Peon

    Messages:
    9
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9

    hey thanks it helps me alot
     
    Vishu Kalwani, Feb 14, 2011 IP