Results 1 to 9 of 9
  1. #1
    Join Date
    Aug 2008
    Location
    Vancouver, Canada
    Posts
    650

    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

  2. #2
    Join Date
    Jan 2007
    Location
    /dev/null
    Posts
    3,691
    wget -> wput ?
    http://wput.sourceforge.net/
    http://wput.sourceforge.net/wput.1.html


    or put or mput (multiple files)

  3. #3
    How to install wput ?
    ╠══ Cool Wallpapers ══╡
    ║►►► Optimize your website

  4. #4
    Join Date
    Nov 2001
    Location
    Vancouver
    Posts
    2,416
    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.”

  5. #5
    Join Date
    Jan 2007
    Location
    /dev/null
    Posts
    3,691
    Quote Originally Posted by cedced View Post
    How to install wput ?
    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 installedSee 'wput -h' or 'man wput' for usage information.
    Further documentation is located in the doc/USAGE.* files.

    Wput is not perfectso 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 IPon 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 

  6. #6
    Join Date
    Jun 2006
    Location
    NYC
    Posts
    1,412
    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>
    Best of luck!
    CloudCDN | Cloud Hosting | DDoS Protection | Bare Metal Servers
    Visit us @ www.fiberpeer.com

  7. #7
    Join Date
    Apr 2007
    Location
    Calgary, Canada
    Posts
    200
    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 port21.
    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.
    ftpput somefile.tar.gz 

  8. #8
    Join Date
    Aug 2008
    Location
    Vancouver, Canada
    Posts
    650
    Thanks for the replies. I used wput to transfer the file.

    Thanks again.

  9. #9
    Join Date
    Mar 2009
    Location
    Austin Tx
    Posts
    1,990
    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)

  10. Newsletters

    Subscribe Now & Get The WHT Quick Start Guide!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •