Web Hosting Talk







View Full Version : ftp my site to new server


louey
04-16-2001, 02:02 PM
I have a problem. I want to ftp my old site to my new server (both linux boxes) but I dont know how to ftp all the files including sub-directories from a telnet session.

I heard there is a way with mget but it doesnt seem to grab the subdirectories when I try it.

I have too many subdirectories to be abled to do them individually ... (goes into the thousands). I have no space left on my current provider to tar and gzip the files up and transfer them that way.

I also tried to FXP the files but one of the servers seems to block this.

Can anyone help? does "glob" do anything?

lenix
04-18-2001, 02:25 AM
simply archive all the files into a tar format then ftp it:

tar -czvf mysite.tar.gz /my/dir/
...this will put everything in that directory into a tar, you will then 'ftp' to your site and 'put' the file. Once you have uploaded it to the remote system you will need to telnet in and run the command:
tar -xvzf mysite.tar.gz
to untar the file, you should be set.