Results 1 to 7 of 7

Hybrid View

  1. #1
    Join Date
    Dec 2002
    Location
    UK
    Posts
    838

    copy a folder from one server to anoter!

    CAn anyone tell me how would i copy the entire contents of one folder from one server to anotehr plz?

    on one of ma server i got a folder with a load of fiels in there excess of a couple of gig

    i just wanna Copy that folder over using wget to the new server
    can anyone tell me how

    i.e www.myoldsite.com/thisfolder

    just a subfolder

    thanks
    Sajid

  2. #2
    Join Date
    May 2001
    Location
    HK
    Posts
    3,082

    Smile

    NFS

    Or you can pack them and scp over

    Or rsync
    Last edited by YUPAPA; 11-06-2006 at 06:53 PM.

  3. #3
    Hello,
    tar czfp yourDIR.tgz yourDIR
    scp yourDIR.tgz username@NEWSERVER:~username/
    Best Regards

  4. #4
    Join Date
    Apr 2003
    Location
    UK
    Posts
    2,569
    go with rsync over ssh - saves you using the space twice (ie a second time) for packing it

  5. #5
    Hi.
    then login to your new box in type
    rsync -avuz -e ssh root@OLDserverIP:/path/to/your/dir /where/you/want

  6. #6
    I suggest you to use SCP with -rp command, you can copy entire directory and files to the destination server location:

    http://forums.linuxwebadmin.info/ind...opic,67.0.html

    Thanks,

  7. #7
    Join Date
    Dec 2002
    Location
    UK
    Posts
    838
    Thanks guys

Posting Permissions

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