Results 1 to 9 of 9

Thread: copy data server to server

  1. #1
    Junior Member
    Join Date
    Jul 2010
    Posts
    7
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Default copy data server to server

    heloooo friends anyone plz help me anyone know simple way to copy all data old server to new server any script or soft u know plzz tell me i want to copy my data into new server plz help meeeee

  2. #2
    Senior Member frostymarvelous's Avatar
    Join Date
    Jun 2010
    Location
    Accra, Ghana.
    Posts
    258
    Thanks
    3
    Thanked 20 Times in 17 Posts
    Rep Power
    3

    Default

    Make a backup and move it over.

    Ur host should offer that service. Most do.

  3. #3
    Junior Member
    Join Date
    Jul 2010
    Posts
    7
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Default

    sir hostgrator ask give me 37$ per hour to copy data plzzz help meeee tell another way

  4. #4
    Senior Member GiLL's Avatar
    Join Date
    Jun 2006
    Location
    Australia
    Posts
    361
    Thanks
    10
    Thanked 112 Times in 38 Posts
    Blog Entries
    2
    Rep Power
    0

    Default

    Quote Originally Posted by jatt1 [Only registered and activated users can see links. Click Here To Register...]
    sir hostgrator ask give me 37$ per hour to copy data plzzz help meeee tell another way
    can i ask you ?
    your old site or data is on shared hosting or a vps or dedicated server
    did you buy shared hosting from hostgator or vps / dedicated server ?

    if both account old and new is on shared hosting you need to make zip or tar all of your data then use copy command or script on new site and it will copy tar or zip files from old to new server



    php code could be some thing like



    Code:
    //original file
    $img = "http://www.site.com/backup.zip"; 
     
    //directory to copy to (must be CHMOD to 777) 
    $copydir = "/home/user/public_html/directory/"; 
     
    $data = file_get_contents($img); 
    $file = fopen($copydir . "backup.zip", "w+"); 
    fputs($file, $data); 
    fclose($file);
    instead of fopen,fread, etc... you can use

    Code:
    $path = "/path/to/save/to/";
    $final_image = $path . $filename_name;
    copy($filename,$final_image);
    Last edited by GiLL; 05-12-10 at 15:18.
    Build Own site Free

    [Only registered and activated users can see links. Click Here To Register...]

    Add your site here

    [Only registered and activated users can see links. Click Here To Register...]

    Free downloads

    [Only registered and activated users can see links. Click Here To Register...]

    WapCreate Imagine Greater, Design Without Limits

    [Only registered and activated users can see links. Click Here To Register...]

  5. #5
    Junior Member
    Join Date
    Jul 2010
    Posts
    7
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Default

    verr gill i cant extract .tar file in shared hosting of hostgrator plz help me how i can extract it ???

  6. #6
    Senior Member GiLL's Avatar
    Join Date
    Jun 2006
    Location
    Australia
    Posts
    361
    Thanks
    10
    Thanked 112 Times in 38 Posts
    Blog Entries
    2
    Rep Power
    0

    Default

    i am not familiar with hostgator do they allow shell ?
    try this method
    note you need to edit as your link


    Code:
    <?php 
    $mstrng = shell_exec('/path/to/tar -tzvf /local/home/username/public_html/myfiles/myfile.tar.gz');
    echo $mstrng; 
    ?>
    Build Own site Free

    [Only registered and activated users can see links. Click Here To Register...]

    Add your site here

    [Only registered and activated users can see links. Click Here To Register...]

    Free downloads

    [Only registered and activated users can see links. Click Here To Register...]

    WapCreate Imagine Greater, Design Without Limits

    [Only registered and activated users can see links. Click Here To Register...]

  7. #7
    Junior Member
    Join Date
    Jul 2010
    Posts
    7
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Default

    no bro this is not working plz help me

    Added after 20 minutes:

    thankssssssss verr g thanku soooooo much
    Last edited by jatt1; 05-12-10 at 16:07.

  8. #8
    Senior Member GiLL's Avatar
    Join Date
    Jun 2006
    Location
    Australia
    Posts
    361
    Thanks
    10
    Thanked 112 Times in 38 Posts
    Blog Entries
    2
    Rep Power
    0

    Default

    Nice to see you have done it but i checked there using cpanel legacy file manager you can untar also
    Build Own site Free

    [Only registered and activated users can see links. Click Here To Register...]

    Add your site here

    [Only registered and activated users can see links. Click Here To Register...]

    Free downloads

    [Only registered and activated users can see links. Click Here To Register...]

    WapCreate Imagine Greater, Design Without Limits

    [Only registered and activated users can see links. Click Here To Register...]

  9. #9
    Senior Member frostymarvelous's Avatar
    Join Date
    Jun 2010
    Location
    Accra, Ghana.
    Posts
    258
    Thanks
    3
    Thanked 20 Times in 17 Posts
    Rep Power
    3

    Default

    When you make a backup, you can manually extract each file into a new folder, while maintaining your folder structure. Go into that folder and select all including your index and then zip it. This should be extractable in you new server.
    Remember that zipping the new folder will give you hell as when you extract, the public html will contain that folder. so go into it and select the files instead.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Server to server folder Transfer
    By tricky in forum Coding Forum
    Replies: 2
    Last Post: 01-08-10, 12:03
  2. Fast Server To Server Copy With File Rename System
    By punjab9 in forum Sites / Links
    Replies: 1
    Last Post: 22-05-10, 19:01
  3. Server To Server Transfer Multi Files At One Time
    By punjab9 in forum Sites / Links
    Replies: 10
    Last Post: 24-04-10, 04:54
  4. RAID10 data protected server start @ 4$ cpanel FFMPEG at free of cost
    By kiss of death in forum Domains - Hosting - Servers
    Replies: 0
    Last Post: 11-03-10, 20:37
  5. Now Moster Server 16core 12GB DDR3 RAM Ultra fast server 2$ only
    By kiss of death in forum Domains - Hosting - Servers
    Replies: 15
    Last Post: 01-10-09, 18:35

Bookmarks

Posting Permissions

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

SEO by vBSEO

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19