Results 1 to 3 of 3

Thread: How to move Directories by FTP

  1. #1
    Harvey Lavan is offline Member
    Join Date
    Sep 2009
    Posts
    57
    Rep Power
    3

    Default How to move Directories by FTP

    File Transfer Protocol is applied to duplicate files among a home PC with a remote PC. Many OS’s include a command line FTP client setup defaultly. There is no FTP command to copy a entire directory. In place of that, generate the directory on the device where to copy the files and after that make use of the "mget" or else "mput" commands to copy the files in the directory.


    Transfer a Directory to a Local Computer

    Open a terminal window or command prompt. And enter following commands.

    • Enter the command "mkdir directory_name." Restore "directory_name" with the name of the directory to copy.

    • Enter the command "cd directory_name" to move into the recently made directory.

    • Enter the command "ftp login@IPaddress" to FTP to the remote computer. Restore "login@IPaddress" with credentials for the remote PC.

    • Enter the command "cd directory_name." Replace "directory_name" with the name of the directory to copy.

    • Enter the command "mget *" to transfer the files from the remote directory to the local directory.

    • Enter "quit" and end the session.

    Transfer a Directory to a Remote Computer

    • Open a terminal window or command prompt. Enter the following commands.

    • Enter the command "cd directory_name" to move into the directory to be copied on the local PC. Restore "directory_name" with the name of the directory to be copied.

    • Enter the command "ftp login@IPaddress" to ftp to the remote PC. Restore "login@IPaddress" with credentials for the remote PC.

    • Enter the command "mkdir directory_name." Restore "directory_name" with the name of the directory to copy.

    • Enter the command "cd directory_name" to move into the recently made directory.

    • Enter the command "mput *" to transfer the files from the local directory to the remote directory.

    • Enter "quit" to complete the session.

  2. #2
    Peter Gayle is offline Member
    Join Date
    Jul 2009
    Posts
    45
    Rep Power
    0

    Default

    Here is one more useful tip for those, who must move large directories on an ftp server and do not want to copy all those files from ftp to local machine and after that back to ftp.

    For example, maybe you would like to move all content from directory "index_html/img/" to directory "index_html/files/img/"

    1. Mainly, to move an entire directory with its contents you should first create a new directory of the same name where you would like to move the particular directory. Create a new directory "img" in index_html/files/

    2. After that you must go at least one parent above the directories you want to move or move to: in this case it would be the index_html directory.

    3. Next write command:
    rnfr img

    4. Next do not do anything else but write command:
    rnto files/img

  3. #3
    shelley12 is offline Junior Member
    Join Date
    Jan 2010
    Posts
    8
    Rep Power
    0

    Default

    Hello Friends.....

    FTP (File Transfer Protocol) is used to copy files between a local computer and a remote computer. Most operating systems have a command line FTP client installed by default. There is no FTP command to copy a complete directory. Instead, you should create the directory on the machine where you want to copy the files and then use the "mget" or "mput" commands to copy the files within the directory.

    Thanks

Similar Threads

  1. Various binary directories of Mac
    By PerrySullivan in forum Operating System
    Replies: 2
    Last Post: 03-04-2010, 02:16 PM
  2. Faster access to complicated directories
    By Fredrick Borren in forum Windows Vista
    Replies: 1
    Last Post: 09-15-2009, 06:08 AM
  3. Rules for Naming Files and Directories
    By Cadmus4778 in forum Everything Else
    Replies: 0
    Last Post: 11-29-2008, 09:45 AM
  4. Naming Files and Directories
    By Cadmus4778 in forum Everything Else
    Replies: 0
    Last Post: 11-29-2008, 09:38 AM
  5. Directories and Files
    By Cadmus4778 in forum Everything Else
    Replies: 0
    Last Post: 11-29-2008, 09:07 AM

Bookmarks

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48