PDA

View Full Version : Moving Directories with SSH?


Steph
Sun 12th Jan '03, 6:27am
If this isnt the right place to post this, please move it.

I am trying to move directories via SSH from one server to another. How do I do this?

Thanks

Steph

Floris
Sun 12th Jan '03, 6:30am
Originally posted by Steph
If this isnt the right place to post this, please move it.

I am trying to move directories via SSH from one server to another. How do I do this?

Thanks

Steph

SSH is not an ftp client, but a shell client.
You can make a backup of your files on one server by gzipping and/or tarring the directory, download it with your ftp client from the other server and with ssh, unpack the tar or gzipped file there again.

With ssh you can enter commands in a shell prompt like dosprompt on windows, with ftp you can transfer files.

Overview:

ssh(server_old): pack the directory
ssh(server_new): login and use that server's ftp to login to server_old
ftp(server_new): download the packed dir from server_old
ssh(server_new): unpack the packed dir

thenetbox
Sun 12th Jan '03, 9:44am
What I do is Tar then on server1 ..
then I type 'ftp [server2 address]' from machine1
I type the login information
then I CD \ to the correct directory..
and then type 'put [filename]'
Login server2 and unpack..

Xiphoids method would probably be easier and less confusing :)

Originally posted by xiphoid
SSH is not an ftp client, but a shell client.
You can make a backup of your files on one server by gzipping and/or tarring the directory, download it with your ftp client from the other server and with ssh, unpack the tar or gzipped file there again.

With ssh you can enter commands in a shell prompt like dosprompt on windows, with ftp you can transfer files.

Overview:

ssh(server_old): pack the directory
ssh(server_new): login and use that server's ftp to login to server_old
ftp(server_new): download the packed dir from server_old
ssh(server_new): unpack the packed dir

Floris
Sun 12th Jan '03, 10:02am
http://www.vbulletin.com/manual/movingservers.html

Steve Machol
Sun 12th Jan '03, 2:35pm
Also if you're on a Linux system you may be able to use 'scp' which is 'secure copy (remote file copy program)' based on ssh. Type 'man scp' for details.