git00ll

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

  •  
  •   git00ll · Aug 19, 2021 · 3424 views
  •   You need to sign in to view this topic
    This topic created in 1930 days ago, the information mentioned may be changed or developed.

    规则如下

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

    每几分钟一次即可

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