简体   繁体   English

重复性还原引发“IsADirectoryError:是目录”错误

[英]Duplicity Restore Throwing "IsADirectoryError: Is a directory" Error

My Linux machine recently failed and I am trying to restore my files onto a Windows 11 machine.我的 Linux 机器最近出现故障,我正在尝试将我的文件恢复到 Windows 11 机器上。 The files were created using Duplicity (the external HD containing the files has hundreds of.difftar.gz and.sigtar.gz files as well as a '.manifest').这些文件是使用Duplicity创建的(包含这些文件的外部 HD 有数百个.difftar.gz 和.sigtar.gz 文件以及一个“.manifest”)。 Having installed CGWin and the duplicity package, I traverse to my external HD in cgwin...安装CGWin和重复 package 后,我在 cgwin 中遍历到我的外部 HD ...

$ pwd    
/cygdrive/e

... and attempt to restore the latest snapshot of my lost directories/files to a temp folder on my Windows 11 machine by running: ...并尝试通过运行将我丢失的目录/文件的最新快照恢复到我的 Windows 11 机器上的临时文件夹:

 duplicity restore file:/// /cygdrive/c/Users/john/OneDrive/Documents/temp

At this juncture, the restoration fails due to a "IsADirectoryError" error.此时,由于“IsADirectoryError”错误,恢复失败。

Warning, found the following remote orphaned signature file:
duplicity-new-signatures.20211221T070230Z.to.20211224T103806Z.sigtar.gz
Warning, found signatures but no corresponding backup files
Warning, found incomplete backup sets, probably left from aborted session
Synchronizing remote metadata to local cache...
Copying duplicity-full-signatures.20211118T103831Z.sigtar to local cache.
Attempt of get Nr. 1 failed. IsADirectoryError: Is a directory
Attempt of get Nr. 2 failed. IsADirectoryError: Is a directory
Attempt of get Nr. 3 failed. IsADirectoryError: Is a directory
Attempt of get Nr. 4 failed. IsADirectoryError: Is a directory
Giving up after 5 attempts. IsADirectoryError: Is a directory

Is there an error in my duplicity command?我的 duplicity 命令有错误吗? Do I have corrupted backups?我有损坏的备份吗? Any assistance in trouble-shooting this would be greatly appreciated!任何帮助解决此问题将不胜感激!

let's assume that duplicity works (it's not officially supported on windows in any way).让我们假设重复工作(windows 不以任何方式正式支持它)。 never tried it.从未尝试过。

say your backup data exists in the root of your external harddrive mounted as E: .假设您的备份数据存在于安装为E:的外部硬盘驱动器的根目录中。 you want to restore the complete last backup into a folder C:\Users\john\OneDrive\Documents\temp\ .您要将完整的上次备份还原到文件夹C:\Users\john\OneDrive\Documents\temp\中。

two points两点

  1. point it to your backup location properly.将其正确指向您的备份位置。 absolutely that would be /cygdrive/e/ or as url file:///cygdrive/e/绝对是/cygdrive/e/或 url file:///cygdrive/e/
  2. point to your target folder as folder ending with a slash / to signal that the backup is to be restored in there.将目标文件夹指向以斜杠/结尾的文件夹,表示要在其中恢复备份。

taking these points into account a command like考虑到这些点,像这样的命令

duplicity file:///cygdrive/e/ /cygdrive/c/Users/john/OneDrive/Documents/temp/

should work as expected.应该按预期工作。

NOTE: you don't need the action command restore as the order of arguments (url before local file system location) tells duplicity already that you want to restore.注意:您不需要操作命令restore ,因为 arguments 的顺序(本地文件系统位置之前的 URL)已经告诉 duplicity 您要恢复。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM