[English | Japanese]
Last Modified: 2002-08-06
pdumpfs is a simple daily backup system similar to Plan9's dumpfs which preserves every daily snapshot. pdumpfs is written in Ruby. You can access the past snapshots at any time for retrieving a certain day's file. Let's backup your home directory with pdumpfs!
pdumpfs constructs the snapshot YYYY/MM/DD in the destination directory. All source files are copied to the snapshot directory for the first time. On and after the second time, pdumpfs copies only updated or newly created files and stores unchanged files as hard links to the files of the previous day's snapshot for saving a disk space.
Tha latest version of pdumpfs is available at http://namazu.org/~satoru/pdumpfs/.
Edit the first line of pdumpfs:
/usr/local/bin/ruby if necessary.
% pdumpfs <source directory> <destination directory>
To backup your home directory /home/yourname to /backup, run the following command.
% pdumpfs /home/yourname /backup >/backup/log 2>/backup/error-log
On and after the second day, it is a good idea to invoke the backup command with cron daemon. The following setting allows you to backup your home directory every 5 a.m.
00 05 * * * pdumpfs /home/yourname /backup >/backup/log 2>/backup/error-log
If the backup system works well, you can retrieve a certain day's file with a file name like /backup/2001/02/19/yourname/...
chattr -R +i /backupwith the root privilege. chattr command keep you from doing rm -rf backup files by accident.
pdumpfs is a free software with ABSOLUTELY NO WARRANTY under the terms of the GNU General Public License version 2.
$Id: pdumpfs-en.html,v 1.13 2002/08/06 08:46:03 satoru Exp $Satoru Takabayashi (firstname.lastname@example.org)