Announcement

Collapse
No announcement yet.

Cron to FTP server

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Cron to FTP server

    Hi there,

    I host some websites on the internet, i create an automated backup every week, although these are placed on my server (special directory). Now i want to create a way to download these backups from the FTP server (Linux based) to my computer (Kubuntu Hardy) with something like KCron (i heared that was possible).

    Could someone help me in the right direction or give me a solution how i should accomplish that?

    In short: Cronjob from FTP server dir to Personal dir

    Thanks in advance

    JvM

    #2
    Re: Cron to FTP server

    I know this is ancient, but, in case you're still around or someone else might have a similar question here is what I do. I use lftp to do the ftp transfer. Reason for this is that lftp easily allows you to script the ftp session commands and, oh yeah, it also has some rsync like behavior to mirror a whole directory tree

    For instance create an lftp script file like the following:

    Code:
    open [url]www.ftpsite.com[/url]
    user username password
    mirror --verbose --delete / /local/backup/path/
    exit
    Then execute it directly from cron or in a script like this:

    Code:
    lftp -f /local/path/to/lftp/script/file
    This is just an example, but hopefully you get the idea...

    Kubuntu user since initial release version 5.04 8)

    Comment

    Working...
    X