大网数据广告活动
服务器运维问答

How to restore a directory with Bareos/Bacula while excluding deleted files?

· 52CE 我爱测

I would like to restore a directory so that it is identical to the original directory. Files that have been deleted in the original directory should not be restored. Consider a configuration file directory: The original version o…

问题原文

原帖链接 · nn4l · CC BY-SA 3.0

I would like to restore a directory so that it is identical to the original directory. Files that have been deleted in the original directory should not be restored.

Consider a configuration file directory: The original version of this directory and contents will be in the first full backup. Over time some of the files will be deleted intentionally. But they are not marked as deleted in the incremental backups.

If I restore this directory from the backup and the deleted files show up again, I will end up with a different configuration, so the restored system is not useable.

When evaluating Bareos using the web-ui, I could not figure out how to set up the restore process so that files deleted in the past are not restored. Please advise how to accomplish this.

If this can't be done with Bareos/Bacula, can you recommend a different backup that fulfills this requirement?

已采纳解答

原帖链接 · Wolfgang Walter · CC BY-SA 3.0

For Bareos check out Accurate = in the documention. Even I did not use it so far it should fulfill you needs.

http://doc.bareos.org/master/html/bareos-manual-main-reference.html#directiveDirJobAccurate

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2017-04-22)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。