Total Pageviews

Thursday, 1 November 2012

利用硬连接备份

pdumpfs是一个使用ruby语言写的备份软件。
http://0xcc.net/pdumpfs/index.html.en
使用ruby需要ruby环境,yum -y install ruby (CentOS 5.2)。
pdumpfs会以YYYY/MM/DD的方式(pdumpfs以天为单位备份),自动建目录;第一次备份时,复制原目录,以后的每次备份 中,pdumpfs只复制有更新的文件,不变的文件,以硬连接的方式存储在新的YYYY/MM/DD目录中,这样备份速度快,利省空间。
pdumpfs src-dir dest-dir [dest-basename]
cp命令的-l参数就是一个只建立硬连接,不真正复制的过程。和rsync共用,可以实现增量备份。
glastree 1.04 (stable)

    The poor man’s daily snapshot, glastree builds live backup trees, with branches for each day. Users directly browse the past to recover older documents or retrieve lost files. Hard links serve to compress out unchanged files, while modified ones are copied verbatim. A prune utility effects a constant, sliding window.Satoru Takabayashi has writen a similar program, in Ruby, pdumpfs.Inspired by Plan9, of course.
    Terje Kvernes put together a gentoo ebuild.
Links |
Reqs |
Perl 5.002, Date::Calc, GNU Make
Xfer |