Results 1 to 7 of 7
Hybrid View
-
11-06-2006, 06:00 PM #1Web Hosting Master
- 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
-
11-06-2006, 06:41 PM #2Web Hosting Master
- Join Date
- May 2001
- Location
- HK
- Posts
- 3,082
NFS
Or you can pack them and scp over
Or rsyncLast edited by YUPAPA; 11-06-2006 at 06:53 PM.
-
11-06-2006, 07:07 PM #3WHT Addict
- Join Date
- Oct 2006
- Location
- USA
- Posts
- 172
Hello,
tar czfp yourDIR.tgz yourDIR
scp yourDIR.tgz username@NEWSERVER:~username/
Best Regards
-
11-06-2006, 07:16 PM #4Web Hosting Master
- 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
-
11-06-2006, 08:18 PM #5WHT Addict
- Join Date
- Oct 2006
- Location
- USA
- Posts
- 172
Hi.
then login to your new box in type
rsync -avuz -e ssh root@OLDserverIP:/path/to/your/dir /where/you/want
-
11-07-2006, 04:08 AM #6Disabled
- Join Date
- Oct 2006
- Location
- (.)
- Posts
- 70
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,
-
11-07-2006, 04:11 PM #7Web Hosting Master
- Join Date
- Dec 2002
- Location
- UK
- Posts
- 838
Thanks guys