Results 1 to 10 of 10
Thread: move server files
-
11-19-2006, 09:30 PM #1Newbie
- Join Date
- Sep 2006
- Posts
- 17
move server files
What is the best way to move server Folder from my previous host to the new one??? I can use ssh.
-
11-19-2006, 09:35 PM #2Web Hosting Master
- Join Date
- Sep 2005
- Location
- In the office
- Posts
- 857
Are you just attempting to move ONE specific folder?
-
11-19-2006, 09:40 PM #3Web Hosting Master
- Join Date
- Feb 2003
- Location
- Dallas, TX
- Posts
- 1,498
tar zcvf filename.tgz FOLDER
sftp USER@NEW_SERVER
password: ******
sftp> put filename.tgz
sftp> quit
---- On the other server
tar zxvf filename.tgz
That should do the trick. Replace filename.tgz with whatever you want to call the file and FOLDER with the name of the directory you want to tranfer.
Also replace USER with the username at the new server and NEW_SERVER with the IP address of the new server. =)
JoseQTailorMadeServers.Com - Dallas Dedicated Servers since 2003
joseq@tailormadeservers.com | Skype (TailorMadeServers) | http://twitter.com/tailoredservers
-
11-19-2006, 10:08 PM #4Newbie
- Join Date
- Sep 2006
- Posts
- 17
Cant really do the .tgz of the folder because the folder is too large (> 30GB) and being used by at least 70 people /minute. Any other way I can do it? yes it's only one folder with 100 sub folders in it.
-
11-20-2006, 12:06 AM #5Web Hosting Master
- Join Date
- Apr 2003
- Location
- Los Angeles, CA
- Posts
- 820
You can also go:
rsync -avz -e ssh /path/to/folder user@newserver:/path/to/destination/folder/
(watch the trailing slashes!)
You can repeat it as needed, it will only transfer changed files on subsequent runs.Pings <1 ms, Unlimited Transfer, Lowest Price: http://localhost/
-
11-20-2006, 12:14 AM #6Newbie
- Join Date
- Sep 2006
- Posts
- 17
Originally Posted by luki
-
11-20-2006, 01:56 AM #7Web Hosting Master
- Join Date
- Feb 2003
- Location
- Dallas, TX
- Posts
- 1,498
You can't really "move" them from one server to another (without a remote file system partition perhaps). You can copy and then delete.
If you can compress the 100 folders, then you can script the lines I wrote above with a foreach statement and compress/transfer each compressed folder file individually).
JoseQTailorMadeServers.Com - Dallas Dedicated Servers since 2003
joseq@tailormadeservers.com | Skype (TailorMadeServers) | http://twitter.com/tailoredservers
-
11-20-2006, 02:11 AM #8Managed Service Provider
- Join Date
- Feb 2004
- Location
- Atlanta, GA
- Posts
- 5,662
Originally Posted by TMS - JoseQ
the above referenced rsync command will do gzip compression on the fly.
-
11-20-2006, 02:14 AM #9Web Hosting Master
- Join Date
- Feb 2003
- Location
- Dallas, TX
- Posts
- 1,498
I would go with the rsync command. =)
TailorMadeServers.Com - Dallas Dedicated Servers since 2003
joseq@tailormadeservers.com | Skype (TailorMadeServers) | http://twitter.com/tailoredservers
-
11-20-2006, 04:29 AM #10Web Hosting Master
- Join Date
- Aug 2006
- Location
- Ireland
- Posts
- 814
use sftp (see above)
but just send a file at a time
sftp USER@NEW_SERVER
password: ******
sftp > put /path/to/files/*
sftp > bye
that will move all the files one by one in that path, 30GB might take a while tho epending on your connection