Obnam 1.7 发布,此版本包括了很多内部重写,当然,外部看不出什么变化,同时还包括了许多 bug 修复,不是稳定版本,升级之前请先备份。
更新内容:
-
The
convert5to6subcommand has been removed. If you need to convert from a pre-1.0 backup repository, and haven't done so yet, please use Obnam version 1.6.1 or earlier to do so. -
A new
backup-finishedhook is provided by the backup plugin, so that other plugins may do processing at the end of a backup, such as report the successful backup to a monitoring system. Patch by Enrico Tröger. -
The FUSE plugin can now refresh its view, by having the user read the
.pidfile. Patch by Valery Yundin. -
New option
--always-restore-setuidto always restore setuid/setgid flags in permissions, even if the restore is not being run byrootor the owner of the files (as recorded in the backup). -
New option
--exclude-fromallows exclusion patterns to be given in a separate file (one per line), instead of in a configuration file or on the command line. Patch by Enrico Tröger. -
A start of a manual for Obnam. This will gain more content with new releases. The current versions is mainly an edited version of Lars's blog posts about backups, plus the Obnam tutorial from the Obnam homepage. See http://code.liw.fi/obnam/manual/ for rendered versions (PDF, HTML).
-
Most of the error messages Obnam produces now have a unique error code:
ERROR: R0B15DX: Cannot find requested generation for client havelockfor example. More error messages will gain error codes in future releases. The error codes are meant to be easy to search for, and will allow error messages to be translated in the future. -
The
obnam-benchmarkprogram got rewritten so that it'll do something useful, but at the same time, it is no longer useful as a general tool. It is now expected to be run from the Obnam source tree (a cloned git repository), and isn't installed anymore. -
The log file now includes information about the transfer overhead to the repository. Overhead is all the bytes that are not file content data: filenames, permission bits, extended attributes, etc, plus Obnam internal bookkeeping.
-
obnam verifynow shows progress both based on number of files and amount of data.
Bug 修复:
-
Obnam now doesn't remove chunks that are shared between clients. Previously, this would sometimes happen, because only the first client would correctly record itself as using a chunk. Now all clients do that.
-
Obnam now creates a
trustdb.gpgin the temporary GNUPGHOME it uses during encryption operations. From version 2.0.22 (or thereabouts),gpginsists on having atrustdb.gpgin the GNUPGHOME it uses. -
When backing up a large file, and making a checkpoint generation in the middle of it, Obnam would say "continuing backup" after the checkpoint was finished, instead of saying the name of the file. This is now fixed.
内部变化:
-
The
obnamlib.Errorexception class has been replaced by theobnamlib.ObnamErrorclass, which derives from the newobnamlib.StructuredErrorclass. All new exceptions will need to be derived fromobnamlib.Errorin the future. Also, due to the wayStructuredErrorworks, it is now necessary to create a new exception class for each kind of error. This gives us unique the error codes mentioned above. -
The old
obnamlib.Repositoryclass is gone, and replaced with theobnamlib.RepositoryInterfaceclass, which gets implemented for each repository format (there is only one, for now, but there will be more).
Obnam 是一个简单、安全的备份程序。备份的文件可以被存储在本地磁盘或者通过 SFTP 的方式存储在远程主机上。服务器上并不需要安装任何特殊的软件,只需要 SSH。
Obnam 的下载地址:请点这里
