V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
请不要把任何和邀请码有关的内容发到 NAS 节点。

邀请码相关的内容请使用 /go/in 节点。
maxus
V2EX  ›  NAS

刚使用备份工具 restic,求助

  •  
  •   maxus · 22 天前 · 1157 次点击
    问一下,万一有大神懂呢
    1 ,Restic 可以成功把东西定时备份到 [本地盘]
    2 ,使用 docker exec restic restic restore --target /tmp-for-restore 32aa1dc4 命令,成功把备份恢复到 tmp-for-restore 文件夹
    3 ,阿里云盘使用 rclone 挂载在本地,使用 rsync 把备份复制到 [阿里云盘]
    4 ,删除 [本地盘] 里的的备份
    5 ,将 [阿里云盘] 的备份复制到 [本地盘]
    6 ,执行相同恢复命令,发生错误,无法把备份恢复到 tmp-for-restore 文件夹

    错误代码
    ```
    ignoring error for /mnt: mkdir /tmp-for-restore/mnt: no such file or directory

    ignoring error for /mnt: chmod /tmp-for-restore/mnt: no such file or directory
    Summary: Restored 0 / 8 files/dirs (0 B / 0 B) in 0:00
    ```
    有大神知道怎么回事吗?
    6 条回复    2024-08-27 20:38:24 +08:00
    defunct9
        1
    defunct9  
       22 天前
    mkdir -p /tmp-for-restore/mnt
    1423
        2
    1423  
       22 天前
    不要用不熟悉的工具来备份数据
    maxus
        3
    maxus  
    OP
       22 天前
    @defunct9 执行这个就可以了吗
    lianyanjiajia
        4
    lianyanjiajia  
       22 天前
    你要不就直接用 rsync 备份把 然后写个定时脚本
    maxus
        5
    maxus  
    OP
       22 天前
    @lianyanjiajia rsync 无法加密备份到云盘
    maxus
        6
    maxus  
    OP
       22 天前
    问题已解决,是文件夹权限问题
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2767 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 00:19 · PVG 08:19 · LAX 17:19 · JFK 20:19
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.