简体   繁体   English

无法从口是心非中恢复文件

[英]Can't restore a file from duplicity

When I try to recover a single file from the backup, it creates an unformatted file当我尝试从备份中恢复单个文件时,它会创建一个未格式化的文件

sudo duplicity --file-to-restore prueba2.txt file:///copia ~/escritorio/ sudo duplicity --file-to-restore prueba2.txt 文件:///copia ~/escritorio/

the command works but returns the following file with no extension该命令有效但返回以下没有扩展名的文件

I tried another syntax but still dont work我尝试了另一种语法,但仍然不起作用

right, that is not well documented but correct.是的,这没有很好的记录但正确的。

if you give a file, not a folder to --file-to-restore the restore target will be interpreted as such.如果您给文件而不是文件夹--file-to-restore还原目标将被解释为这样。 meaning意义

duplicity --file-to-restore prueba2.txt file:///copia ~/escritorio/ will restore as a file called ~/escritorio ignoring the trailing slash possibly overwriting an existing folder by that name (if empty or --force is given). duplicity --file-to-restore prueba2.txt file:///copia ~/escritorio/将恢复名为~/escritorio的文件,忽略尾部斜线可能会用该名称覆盖现有文件夹(如果为空或--force给出)。

duplicity --file-to-restore folder/folder2 file:///copia ~/escritorio/ will restore as a folder called ~/escritorio overwriting an exisiting folder by that name (if empty or --force is given). duplicity --file-to-restore folder/folder2 file:///copia ~/escritorio/将恢复名为~/escritorio的文件夹,并用该名称覆盖现有文件夹(如果为空或给出--force )。

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

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