Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi all! We have been experiencing an issue on site where threads have been missing the latest postings. The platform host Vanilla are working on this issue. A workaround that has been used by some is to navigate back from 1 to 10+ pages to re-sync the thread and this will then show the latest posts. Thanks, Mike.
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Shell script to download from ftp site

  • 27-04-2006 2:29pm
    #1
    Registered Users, Registered Users 2 Posts: 2,032 ✭✭✭


    I'm looking to set up and automated ftp run to download a certain directory from a webserver with ftp access, and overwrite the local version.

    What would be the shell script involved?

    And the opposite would be useful too, i.e. putting a certain directory from a local server to the remote via ftp.


Comments

  • Registered Users, Registered Users 2 Posts: 1,193 ✭✭✭liamo


    wget -r -P /save/files/to/here ftp://ftpsite/dir will download the contents of the directory and overwrite any existing files in the directory /save/files/to/here

    Alternatively, scp is a much more secure and flexible way to copy files up and down.


    Regards,

    Liam


  • Registered Users, Registered Users 2 Posts: 2,747 ✭✭✭niallb


    If you need a username and password, take a look for .netrc
    This file will also allow you to set up macros for your ftp client,
    allowing both the get and put. Your password will be in clear text though,
    so keep the permissions minimal.

    lftpget is another very scriptable alternative to the worthy wget.

    NiallB


  • Registered Users, Registered Users 2 Posts: 2,032 ✭✭✭colm_c


    Thanks for the replies...

    Yeah it'll be a username and password protected directory... I'll take a look at .netrc


  • Registered Users, Registered Users 2 Posts: 1,865 ✭✭✭Syth


    niallb wrote:
    If you need a username and password, take a look for .netrc
    This file will also allow you to set up macros for your ftp client,
    allowing both the get and put. Your password will be in clear text though,
    so keep the permissions minimal.

    lftpget is another very scriptable alternative to the worthy wget.

    NiallB
    Passwords and the like are all transfered in plain text. FTP is quite old.


Advertisement