Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/variables/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Variables duply:在预脚本中使用变量?_Variables_Duplicity Backup - Fatal编程技术网

Variables duply:在预脚本中使用变量?

Variables duply:在预脚本中使用变量?,variables,duplicity-backup,Variables,Duplicity Backup,我用duply/duplicity备份我们的服务器。在pre脚本中,我想使用$SOURCE变量将mysql数据库转储到其中。但该变量不可用,如文档中所述:-( 这是我的剧本 echo "source: ${SOURCE}" 输出为: Output: source: PS:预文件是可执行的(700)。 PS这是当前duply中的一个bug [编辑] 在duply 1.9.0中修复。。 [/编辑] 作为一种解决方法,请从脚本中删除可执行文件标志,除非您需要与bash不同的解释器。下一个duply

我用duply/duplicity备份我们的服务器。在pre脚本中,我想使用$SOURCE变量将mysql数据库转储到其中。但该变量不可用,如文档中所述:-(

这是我的剧本

echo "source: ${SOURCE}"
输出为:

Output: source:
PS:预文件是可执行的(700)。

PS

这是当前duply中的一个bug

[编辑] 在duply 1.9.0中修复。。 [/编辑]

作为一种解决方法,请从脚本中删除可执行文件标志,除非您需要与bash不同的解释器。下一个duply版本将解决此问题


…ede/duply.net

很抱歉,我不明白您的解决方案会导致什么。您尝试过吗?.ede/duply.net