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,366
    Thanks (Given)
    231
    Thanks (Received)
    1166
    Likes (Given)
    820
    Likes (Received)
    3056

    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
    397
    Thanks (Given)
    142
    Thanks (Received)
    15
    Likes (Given)
    674
    Likes (Received)
    71

    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,876
    Thanks (Given)
    272
    Thanks (Received)
    767
    Likes (Given)
    4368
    Likes (Received)
    3675

    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.
    »\_(ツ)_/»

  4. #4

    Double Godlike!

    stek's Avatar
    Join Date
    Oct 2009
    Location
    East of Eden
    Posts
    11,375
    Thanks (Given)
    4
    Thanks (Received)
    323
    Likes (Given)
    13
    Likes (Received)
    1622

    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,556
    Thanks (Given)
    25
    Thanks (Received)
    122
    Likes (Given)
    937
    Likes (Received)
    420

    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.