Raspberry Pi to monitor SFTP directory

Discussion in 'Other CPUs and chipsets' started by smirfy, Jun 2, 2013.

  1. smirfy

    smirfy Member

    Joined:
    Jul 7, 2011
    Messages:
    10
    Hi, Because of Telstra's plan to monitor and throttle data moving over P2P networks (as I understand it, they're already doing so in Melbourne, on a volunteer basis (why would anyone volunteer to have their torrent traffic monitored, let alone throttled?)), I've decided to get myself a seedbox overseas to do my downloading with. What I want to know is could I somehow set up my Rpi to monitor a secure FTP directory on said seedbox and automatically grab the files to put onto my NAS?

    I don't want to sync as such, because I would move these files once on the NAS, so I would want it to just monitor for new files and then 'get' them and copy them to a local SMB (CIFS) share.

    Sorry for the long story.
     
  2. BluBoy

    BluBoy Member

    Joined:
    Jan 20, 2006
    Messages:
    1,899
    Location:
    Melbourne
    Would be easy enough to script up rsync over ssh. just have it as a daemon/cron job that checks every x minutes
     
  3. Primüs

    Primüs Member

    Joined:
    Apr 1, 2003
    Messages:
    3,394
    Location:
    CFS
    as above, rsync to run every 5 minutes (on the condition previous rsync is finished, use a lock file or something). rsync can run over SSH (SFTP), and can be set to only bring over new things.
     
  4. iodine

    iodine Member

    Joined:
    Jul 10, 2004
    Messages:
    180
    I like those ideas, good method I think too. I'd do it the same way ;)
     

Share This Page

Advertisement: