Results 1 to 9 of 9
Thread: FTP Transfer in PuTTy
-
05-02-2009, 07:21 PM #1Web Hosting Master
- Join Date
- Aug 2008
- Location
- Vancouver, Canada
- Posts
- 653
FTP Transfer in PuTTy
I am trying to transfer a 1.1GB file from one of my servers to one of my servers in another data center.
What command would I use inside PuTTy to transfer the file via FTP, not SFTP.
Thanks!█ Tailored VPS offers fully customizable VPS Hosting
█ Powered by OpenVZ | Servers located in the USA | 99.9% Uptime
-
05-02-2009, 07:28 PM #2cout << m_subtitle;
- Join Date
- Jan 2007
- Location
- /dev/null
- Posts
- 3,700
wget -> wput ?
http://wput.sourceforge.net/
http://wput.sourceforge.net/wput.1.html
or put or mput (multiple files)
-
05-02-2009, 08:44 PM #3Web Hosting Guru
- Join Date
- Aug 2005
- Posts
- 281
How to install wput ?
-
05-02-2009, 08:45 PM #4Web Hosting Master
- Join Date
- Nov 2001
- Location
- Vancouver
- Posts
- 2,422
What's wrong with scp? (assuming you have an account on each server)
On destination server, in destination directory:
scp foo@bar.server.com:/path/to/big/file .“Even those who arrange and design shrubberies are under
considerable economic stress at this period in history.”
-
05-02-2009, 09:07 PM #5cout << m_subtitle;
- Join Date
- Jan 2007
- Location
- /dev/null
- Posts
- 3,700
PHP Code:wget http://freefr.dl.sourceforge.net/sourceforge/wput/wput-0.6.1.tgz
tar -xvzf wput-0.6.1.tgz
cd wput-0.6.1
./configure
make install
----------------
Wput installed. See 'wput -h' or 'man wput' for usage information.
Further documentation is located in the doc/USAGE.* files.
Wput is not perfect, so please report any bugs you notice (see BUGS-section
in the manpage).
----------------
PHP Code:wput --help
Usage: wput [options] [file]... [url]...
url ftp://[username[:password]@]hostname[:port][/[path/][file]]
Startup:
-V, --version Display the version of wput and exit.
-h, --help Print this help-screen
-b, --background go to background after startup
Logging and input file:
-o, --output-file=FILE log messages to FILE
-a, --append-output=FILE append log messages to FILE
-q, --quiet quiet (no output)
-v, --verbose be verbose
-d, --debug debug output
-nv, --less-verbose be less verbose
-i, --input-file=FILE read the URLs from FILE
-s, --sort sorts all input URLs by server-ip and path
--basename=PATH snip PATH off each file when appendig to an URL
-I, --input-pipe=COMMAND take the output of COMMAND as data-source
-R, --remove-source-files unlink files upon successful upload
Upload:
--bind-address=ADDR bind to ADDR (hostname or IP) on local host
-t, --tries=NUMBER set retry count to NUMBER (-1 means infinite)
-nc, --dont-continue do not resume partially-uploaded files
-u, --reupload do not skip already completed files
--skip-larger do not upload files if remote size is larger
--skip-existing do not upload files that exist remotely
-N, --timestamping don't re-upload files unless newer than remote
-T, --timeout=10th-SECONDS set various timeouts to 10th-SECONDS
-w, --wait=10th-SECONDS wait 10th-SECONDS between uploads. (default: 0)
--random-wait wait from 0...2*WAIT secs between uploads.
--waitretry=SECONDS wait SECONDS between retries of an upload
-l, --limit-rate=RATE limit upload rate to RATE
-nd, --no-directories do not create any directories
-Y, --proxy=http/socks/off set proxy type or turn off
--proxy-user=NAME set the proxy-username to NAME
--proxy-pass=PASS set the proxy-password to PASS
FTP-Options:
-p, --port-mode no-passive, turn on port mode ftp (def. pasv)
-A, --ascii force ASCII mode-transfer
-B, --binary force BINARY mode-transfer
See wput(1) for more detailed descriptions of the options.
Report bugs and suggestions via SourceForge at
http://sourceforge.net/tracker/?group_id=141519
-
05-02-2009, 10:16 PM #6Web Hosting Master
- Join Date
- Jun 2006
- Location
- NYC / Memphis, TN
- Posts
- 1,454
Easiest is SFTP if you have SSH access. FTP would work the same but an example....:
Say your filename is kevin.txt. Now..go to the directory of the file...
Example:
Code:kevin@solaptop:~$ sftp admin@fakeserver.com Connecting to fakeserver.com... Password: sftp> put kevin.txt Uploading test to /usr/home/admin/kevin.txt kevin.txt 100% 0 0.0KB/s 00:00 sftp>
≈ PeakVPN.Com | Complete Privacy VPN | Cloud Hosting | Guaranteed Security | 1Gbps-10Gbps Unmetered
≈ PeakVPN | 31 VPN Servers | 17-Years Experience | Emergency 24/7 Support
≈ Visit us @ PeakVPN.Com (Coming SOON) | ASN: 3915
-
05-03-2009, 01:03 AM #7Junior Guru
- Join Date
- Apr 2007
- Location
- Calgary, Canada
- Posts
- 201
AHN-Jay, If you want to transfer a file to another server using FTP, use the ftp command:
PHP Code:$ ftp my-server.com
Connected to my-server.com (xxx.xxx.xxx.xxx).
220---------- Welcome to Pure-FTPd [TLS] ----------
220-You are user number 1 of 50 allowed.
220-Local time is now 23:59. Server port: 21.
220 You will be disconnected after 15 minutes of inactivity.
Name (my-server.com:user): my_username
331 User my_username OK. Password required
Password:
230-User my_username has group access to: my_username
230 OK. Current restricted directory is /
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> put somefile.tar.gz
-
05-03-2009, 01:23 AM #8Web Hosting Master
- Join Date
- Aug 2008
- Location
- Vancouver, Canada
- Posts
- 653
Thanks for the replies. I used wput to transfer the file.
Thanks again.
-
05-03-2009, 04:03 AM #9Intangible Asset Appraiser
- Join Date
- Mar 2009
- Location
- Austin Tx
- Posts
- 2,007
rsync -avz e -ssh /local/path/file remotehost.com:/remote/path/file
Fast, easy. I do it daily.This is the best signature in the world....Tribute!
(It is not the best signature in the world, no. This is just a tribute)