How do I clone my own website and database

Discussion in 'Databases' started by malone19, Oct 13, 2008.

  1. #1
    Hi,

    How would I go about cloning my existing website little-persia.com, so I can use it to make another similar websites but for a different type of product.

    Basically I'd like to have two websites that are the same then I can wipe the database and edit the content of the new one to use for cheap machine made rugs and keep the existing site for Persian rugs.

    I've not got any real experience with PHP etc. but normally pick things up pretty fast. I manage the website through dreamweaver but haven't had anything to do with the database side of it.

    Still, not sure if I should pay someone to do it or is it something I should be able to do myself?
     
    malone19, Oct 13, 2008 IP
  2. assam_siddibapa

    assam_siddibapa Banned

    Messages:
    108
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    no need to pay some one


    just copy ur db and ur files using ftp
    and paste it in the new place ....


    after that edit the content as u wish

    well if u want me to do ... i can help u
     
    assam_siddibapa, Oct 13, 2008 IP
  3. xxXXMULLIGANXXxx

    xxXXMULLIGANXXxx Guest

    Messages:
    187
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    just take al the files from your old site and put it on your new one then take the database and back it up with phpmyadmin then create a new database on your new site and restore it on the new site with phpmyadmin and there should be a config.php file on the script your using somewhere, edit that file and make it go to your new database its hard to explain but after the first time its easy to do
     
    xxXXMULLIGANXXxx, Oct 13, 2008 IP
  4. captaincore

    captaincore Peon

    Messages:
    98
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    for your db you can just do backup and restore or you can convert all your tables to CSV file and import them to the new db. there are other ETL tools that can do this (informatica, etc.) but they are expensive.
     
    captaincore, Oct 13, 2008 IP
  5. Radz

    Radz Notable Member

    Messages:
    1,497
    Likes Received:
    304
    Best Answers:
    0
    Trophy Points:
    280
    #5
    I think there is option of Site Backup not sure where it is in cPanel... but i do backups under plesk control panel.
     
    Radz, Oct 13, 2008 IP
  6. effektz

    effektz Active Member

    Messages:
    474
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    60
    #6
    Use PHPMyAdmin, select your current database and Export it. Then create a new database and import it and you'll have a database clone. As for the website, just copy all the files from one directory to another and then your site will be cloned
     
    effektz, Oct 13, 2008 IP
  7. malone19

    malone19 Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Should say that we use 1and1 to host the site (and database) so would it just be a case of extracting the csv from there, logging on to the other site and importing it to the database section on that one?

    Thanks for the comments - just didn't want to risk doing anything that would make me lose the database!
     
    malone19, Oct 15, 2008 IP
  8. nirajkum

    nirajkum Active Member

    Messages:
    815
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    58
    #8
    Take the backup of your database in compressed form and take all html/php file tats it.
    If you want to copy other site there are lots of tool available on internet
     
    nirajkum, Oct 16, 2008 IP