爱意满满的作品展示区。
yiyungent

alipan backup 备份文件到阿里云盘 | 跨平台

  •  
  •   yiyungent · Feb 12, 2025 · 2356 views
    This topic created in 455 days ago, the information mentioned may be changed or developed.

    分享一波,也好让更多人来当免费测试( bushi

    简介

    一行命令备份指定文件夹到阿里云盘(压缩后上传阿里云盘), 需配合三方定时任务定时执行

    使用 zip 简单加密压缩, 没有复杂操作, 不易出现兼容/找回问题

    特点

    • 支持设置最大保留备份数
    • 支持 git 形式版本管理, 无变化则自动跳过备份
    • 支持加密压缩
    cloudDestPath="/加密备份/1panel"
    
    zipPassword="eqeqwewqeqwe"
    
    ./coo alipan backup --from "/opt/1panel/apps/openresty/openresty/conf/conf.d" --to "$cloudDestPath" --remote-drive-type resource --max-backup-num 30 --password "$zipPassword" --git-history-last
    

    更多使用帮助

    ./coo alipan backup --help
    

    GitHub 下载地址,下载 coo 即可

    https://github.com/yiyungent/KnifeHub/releases?q=coo&expanded=true

    4 replies    2025-02-14 11:29:34 +08:00
    bronyakaka
        1
    bronyakaka  
       Feb 12, 2025
    阿里云盘官方已经支持了啊 文件夹自动同步
    yiyungent
        2
    yiyungent  
    OP
       Feb 12, 2025
    @bronyakaka 重点没法 linux
    hx100
        3
    hx100  
       Feb 13, 2025
    @bronyakaka 他这个做网站备份不错
    ainon
        4
    ainon  
       Feb 14, 2025
    @yiyungent 如果不要求压缩该怎么操作?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1039 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 18:48 · PVG 02:48 · LAX 11:48 · JFK 14:48
    ♥ Do have faith in what you're doing.