ftp a directory
DBAsupport.com Forums - Powered by vBulletin
Results 1 to 4 of 4

Thread: ftp a directory

  1. #1
    Join Date
    Jan 2001
    Posts
    138
    We have a patch in our development box. I need to ftp that to our QA box. The patch is in the
    form of a directory with several .drv and other files in it. How to ftp the whole directory.
    When I tried to do it, here is what it said.

    drwxrwxr-x 6 applmgr dba 8192 Mar 12 18:30 1485190

    devbox:/dev1-02/u40/app/applmgr/11.0/patch> ftp qa1
    220 qa2k-d3 FTP server (SunOS 5.6) ready.
    Name (qa1:applmgr): applmgr
    331 Password required for applmgr.
    Password:
    230 User applmgr logged in.
    ftp> ascii
    200 Type set to A.
    ftp> cd /prod0-01/u40/app/applmgr/11.0/patch
    250 CWD command successful.
    ftp> put 1485190
    1485190: not a plain file.
    ftp> bye
    221 Goodbye.
    devbox:/dev1-02/u40/app/applmgr/11.0/patch> cd 1485190
    devbox:/dev1-02/u40/app/applmgr/11.0/patch/1485190> ls -ltr
    total 224
    -rw-rw-r-- 1 applmgr dba 15382 Nov 8 21:20 d1485190.drv
    -rw-rw-r-- 1 applmgr dba 74884 Nov 8 21:22 c1485190.drv
    -rw-rw-r-- 1 applmgr dba 2054 Nov 8 21:22 g1485190.drv
    -rw-rw-r-- 1 applmgr dba 3343 Nov 9 14:32 readme.txt
    drwxrwxr-- 3 applmgr dba 96 Mar 12 18:30 fnd
    drwxrwxr-- 3 applmgr dba 96 Mar 12 18:30 fa
    drwxrwxr-- 3 applmgr dba 96 Mar 12 18:30 jg
    drwxrwxr-- 6 applmgr dba 96 Mar 12 18:30 gl
    devbox:/dev1-02/u40/app/applmgr/11.0/patch/1485190>

  2. #2
    Join Date
    Apr 2000
    Location
    Edison, NJ
    Posts
    759
    Suggestion:
    1. create directories on the target machine
    2. use the command: mput *.* (puts all files in the target dir.)
    3. use cd and lcd commands to point to sub-dir. and repeat step 2.

  3. #3
    Join Date
    May 2000
    Location
    Portsmouth, NH, USA
    Posts
    378

    Red face whole directory ...

    i use something like this in my command file:

    open shamrock
    oracle
    *password*
    ascii
    cd /u04/oradata/AP01/exports/asi_stats
    lcd d:\Web_Stats
    mget *
    quit


    mget * is how I retrieve everything in the directory specified.

    - Magnus

  4. #4
    Join Date
    Nov 2000
    Location
    greenwich.ct.us
    Posts
    9,095
    suggestion #2:
    cd /dev1-02/u40/app/applmgr/11.0/patch/1485190
    tar -cvf patch.tar *
    ftp -in qa1
    ftp> user applmgr applmgrpasswd
    ftp> cd /prod0-01/u40/app/applmgr/11.0/patch
    ftp> bin
    ftp> put patch.tar
    ftp> quit
    rlogin qa1
    cd /prod0-01/u40/app/applmgr/11.0/patch
    tar -xvf patch.tar
    Jeff Hunter
    marist89@yahoo.com
    http://marist89.blogspot.com/
    Get Firefox!
    "I pledge to stop eating sharks fin soup and will not do so under any circumstances."

Posting Permissions

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



Click Here to Expand Forum to Full Width