View Single Post
Old 06-03-2004, 01:25 AM  
raymor
Confirmed User
 
Join Date: Oct 2002
Posts: 3,745
For one file you may well have a command named
GET (capitalized).
You can also use wget:
wget ftp://user:[email protected]/dirr/file.zip

There are also likely comands named "ftp" and "ncftp",
but you'll need to know a few FTP commands to use them.
ncftp is better and easier, if it's available.
If you're transferring a lot of files, you can use a tar pipe (below).
If you're transferring EVERYTHING, like moving from one
dedicated server to another, you'll need to do more than
just move files and having a pro handle it can save you
not only a lot of hassle but also a lot of money (downtime, etc.)

I've probably moved people from one server to another
100 times and I STILL carefully follow a written checklist
because without it I would miss things and there would
be probems. For example, if I forgot to set the DNS TTL
48 hours before the move new members may not be able
to access the site for the first couple of days of their
membership and expiring members may live on forever on
the new server.

Anyway, a tar pipe to copy a directory:

copy from here to there:
cd /home
tar --gzip --sparse --preserve --same-owner --atime-preserve -B -cvf - . |
ssh user@host "cd /home; tar -B --ungzip --preserve --same-owner --atime-preserve --sparse -xvf -"


copy to me:
ssh -l root otherserver.com "cd /home/user/somedir; tar -B --gzip --preserve
--same-owner --atime-preserve --sparse -cvf - ." | tar --ungzip --preserve -B
--same-owner --atime-preserve --sparse -xvf -
__________________
For historical display only. This information is not current:
support@bettercgi.com ICQ 7208627
Strongbox - The next generation in site security
Throttlebox - The next generation in bandwidth control
Clonebox - Backup and disaster recovery on steroids
raymor is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote