FTP server using S3 as storage

后端 未结 3 1610
悲&欢浪女
悲&欢浪女 2021-02-15 03:02

I am trying to create a ftp server ( using windows/linux/mac - no concern) which would have its storage as a Amazon S3 storage. Now note that S3 does not support FTP natively so

相关标签:
3条回答
  • 2021-02-15 03:33

    The answer really depends.

    First, let me say FTP is a terrible and insecure protocol. Make sure you have a good reason before going down this route. There are plenty of user-friendly S3 tools.

    Second, please note that none of these solutions will scale like S3 does. Each solution has arbitrary limits on how many files it can support, how large the files can be, and what happens if a file is updated frequently (i.e. it may save the wrong version). S3 Filesystems look neat at first, but when they have problems, they are hard to troubleshoot (They can only return generic filesystem error messages) and a harder to fix.

    Some ideas:

    • If you really just want cloud backup, consider using EBS instead of S3. Either attach an EBS drive to an EC2 box, or run Storage Gateway on your local box.

    • depending on the read/write patterns and the delays, and the size of the files, etc, you might use something like s3sync instead. Have it download all your files, then do a bi-directional re-sync to S3 periodically to pickup any new files or delete any files that have been deleted in S3.

    • If you only need to support uploads, just have a cron job that uploads new files to S3 periodically, then deletes them.

    0 讨论(0)
  • 2021-02-15 03:46

    What you could try.. Using s3fs, mount your s3 bucket to a directory within your Amazon EC2 instance - using a bit of: sudo s3fs -o allow_other,uid=12345,gid=12345 my-bucket my-ftp-directory/

    Then set up vsftpd or any other FTP program, create a user and assign their home directory to be that of my-ftp-directory. Chroot this user to this directory, then try and FTP in using the users credentials and the ip of the EC2 Instance.. I haven't tried it yet, but after mounting a bucket using this technique to my public files directory in Drupal, it's worked fine!

    0 讨论(0)
  • 2021-02-15 03:52

    You can also use: FTP 2 Cloud

    While FTP 2 Cloud is in beta:

    it's free.
    there are no copy limits.
    each account has 100MB storage space.
    supports FTP to Amazon S3 copy.
    supports FTP to Rackspace copy.
    you use at your own risk.
    it needs your love to get the word out.
    
    0 讨论(0)
提交回复
热议问题