git00ll

如何,定时增量同步 aws 实例上文件到 s3

  •  
  •   git00ll · Aug 19, 2021 · 3052 views
    This topic created in 1751 days ago, the information mentioned may be changed or developed.

    规则如下

    本地文件删除 s3 也删除
    本地文件修改 s3 覆盖掉旧的
    本地文件新增 s3 新增
    
    

    每几分钟一次即可

    4 replies    2021-08-20 07:57:25 +08:00
    arischow
        1
    arischow  
       Aug 19, 2021 via iPhone
    aws s3 sync 该能满足,但第二条一定得是用新的覆盖旧的
    BeautifulSoap
        2
    BeautifulSoap  
       Aug 19, 2021
    sync 就行啊。不过 sync 判断修改是通过文件的修改时间,如果覆盖了旧文件但没动时间,就不会覆盖
    msg7086
        3
    msg7086  
       Aug 20, 2021   ❤️ 1
    凡是遇到涉及到网络存储的,我一般会先问 rclone 不行吗。
    neteroster
        4
    neteroster  
       Aug 20, 2021
    rclone sync + crontab
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2928 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 47ms · UTC 13:41 · PVG 21:41 · LAX 06:41 · JFK 09:41
    ♥ Do have faith in what you're doing.