ftp commands quick question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • michael2002
    Confirmed User
    • Jan 2003
    • 145

    #1

    ftp commands quick question

    what is the ftp command to transfer multiple directories from a server to another? i've tryied 'mput' but don't work becouse mput is just for file (not directories)
  • dgraf
    Confirmed User
    • Jun 2004
    • 133

    #2
    You can try -r parametr ... or something like help, help mput :-)
    It depends on the FTP client you are using. It is not general to the FTP protocol itself, that is why the answer could not be definite.
    Bright Porn | Webmasters | Free Galleries | Sponsors | Traffic Trades | Hardlinks

    Comment

    • More Booze
      Confirmed User
      • Mar 2004
      • 5116

      #3
      I think you are able to do it via SSH, cant you use that?

      Comment

      • michael2002
        Confirmed User
        • Jan 2003
        • 145

        #4
        mput -r don't work

        help mput:
        ftp> help mput
        mput send multiple files
        ftp>

        any others ideas?

        Comment

        • michael2002
          Confirmed User
          • Jan 2003
          • 145

          #5
          Originally posted by More Booze
          I think you are able to do it via SSH, cant you use that?
          i use ftp via SSH from console line

          Comment

          • s9ann0
            Confirmed User
            • Sep 2001
            • 4873

            #6
            best way is to tar -it up and move it
            if you haven't got shell then make a cgi or a php script to do it

            Comment

            • s9ann0
              Confirmed User
              • Sep 2001
              • 4873

              #7
              tar -cf directory.tar directory
              in php


              PHP Code:
              system("tar -cf ./directory.tar ./directory &"); 
              

              Comment

              • dgraf
                Confirmed User
                • Jun 2004
                • 133

                #8
                Originally posted by michael2002
                mput -r don't work

                help mput:
                ftp> help mput
                mput send multiple files
                ftp>

                any others ideas?
                It says "multiple files". I think your FTP client is unable to put recursive directory trees. It can just handle multiple files uploading. Use better FTP client or onother method, e.g. mentioned before scp.
                Bright Porn | Webmasters | Free Galleries | Sponsors | Traffic Trades | Hardlinks

                Comment

                • raymor
                  Confirmed User
                  • Oct 2002
                  • 3745

                  #9
                  Rather than using the command "ftp" try "ncftp".
                  NcFTP is a more full featured ftp client that
                  includes recursive get and put with the "-r" option:

                  [[email protected]] $ ncftp -u username hostname.com
                  > put -r somedir
                  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

                  Comment

                  Working...