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

rdiff-backup alternative or using rdiff-backup with rsync

· 52CE 我爱测

I have a VPS running Ubuntu 16.04 with 2T storage where I'd like to put my data, which currently resides on a 1T flash drive. I'd like to be able to go back in history to retrieve older versions of files. I've looked at "duplicit…

问题原文

原帖链接 · Joris Weimar · CC BY-SA 3.0

I have a VPS running Ubuntu 16.04 with 2T storage where I'd like to put my data, which currently resides on a 1T flash drive. I'd like to be able to go back in history to retrieve older versions of files.

I've looked at "duplicity" but read a lot of stories about it being slow, and taking a lot of space because of the need to create frequent full backups.

Then, I arrived at "rdiff-backup" as a solution to this, but it doesn't handle resume very well. I wasn't able to even get the initial sync up to my server because of interruptions. I tried to first rdiff-backup to a local directory, and then rsync (-a) that to my VPS. But when I then tried to rdiff-backup from my original directory, it wouldn't work (weird error about too many incrementals).

I'm now considering rsnapshot, or maybe wrapping rdiff-backup in my own tool that can handle resumes better (by for example doing rdiff-backup incrementally directory per directory).

Should rdiff-backup work how I tried to make it work? (local dir 1 rdiff-> local dir 2, local dir 2 rsync-> remote dir, local dir 1 rdiff-> remote dir) And if not, would rsnapshot be a good alternative?

已采纳解答

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

I strongly suggest you to use rsnapshot, configuring it to retry multiple times if a connection problem is detected. For example, to enable the multi-tries approach with 3 max tries, please add the following line to your rsnapshot.conf file:

rsync_numtries 3

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

资料来源与适用范围

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

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

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