Monitor a folder and upload new files via FTP
+ Reply to Thread
Posts 1 to 5 of 5
  1. #1

    TykeLike

    SimonMac's Avatar
    Join Date
    Aug 2010
    Location
    God's Own Republic Of Yorkshire
    Posts
    22,200
    Thanks (Given)
    226
    Thanks (Received)
    1130
    Likes (Given)
    809
    Likes (Received)
    2986

    Default Monitor a folder and upload new files via FTP

    In the past I've seen clients use Globalscape EFT which is massively over kill, Ideally I'd like something that monitors a folder and if there is any new files uploads them to an FTP server, can't be that difficult to do right?

    I know it can probably be scripted, but it's how would you get the script to always be running which I'd struggle with.
    “Live a good life. If there are gods and they are just, then they will not care how devout you have been, but will welcome you based on the virtues you have lived by. If there are gods, but unjust, then you should not want to worship them. If there are no gods, then you will be gone, but will have lived a noble life that will live on in the memories of your loved ones.”

    ― Marcus Aurelius

  2. #2

    More time posting than coding


    Join Date
    Feb 2017
    Posts
    288
    Thanks (Given)
    84
    Thanks (Received)
    10
    Likes (Given)
    508
    Likes (Received)
    39

    Default

    If you can use rsync instead of ftp, check out lsyncd. Failing that inotify wait and ftp via a cron for example? Check out e.g. https://superuser.com/questions/3178...-files-one-way

    This is on Linux right??

  3. #3

    Richer than sasguru

    DimPrawn's Avatar
    Join Date
    Jul 2005
    Location
    Brexit Britain
    Posts
    32,723
    Thanks (Given)
    271
    Thanks (Received)
    739
    Likes (Given)
    4276
    Likes (Received)
    3590

    Default

    Quote Originally Posted by SimonMac View Post

    I know it can probably be scripted, but it's how would you get the script to always be running which I'd struggle with.
    If it is on windows, you could schedule the script to run every few minutes and upload any files found there, doesn't need to run continuously I would have thought.
    If you look really hard, really really hard, you will find Doom™ everywhere.

  4. #4

    Double Godlike!

    stek's Avatar
    Join Date
    Oct 2009
    Location
    East of Eden
    Posts
    11,142
    Thanks (Given)
    3
    Thanks (Received)
    274
    Likes (Given)
    12
    Likes (Received)
    1521

    Default

    NFS export and mount? That was no need to copy.

    With NFS4 and krb5p for end-to-end encryption and a Kerberos server - sorted.

  5. #5

    Ducklike

    Platypus's Avatar
    Join Date
    Dec 2007
    Location
    In the pub
    Posts
    8,474
    Thanks (Given)
    25
    Thanks (Received)
    107
    Likes (Given)
    868
    Likes (Received)
    390

    Default

    Allwaysync

+ Reply to Thread

Posting Permissions

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

Content Relevant URLs by vBSEO 3.6.0 ©2011, Crawlability, Inc.