File: pdumpfs-en.html

package info (click to toggle)
pdumpfs 0.5-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 80 kB
  • ctags: 18
  • sloc: ruby: 147; makefile: 32; sh: 31
file content (168 lines) | stat: -rw-r--r-- 4,120 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
        "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<link rev=made href="mailto:satoru@namazu.org">
<link rel=stylesheet href="http://namazu.org/~satoru/satoru.css">
<title>pdumpfs: a daily backup system similar to Plan9's dumpfs</title>
</head>
<body>
<p class="lang-navigator">
[English | <a href="index.html.ja">Japanese</a>]
</p>

<h1>pdumpfs: a daily backup system similar to Plan9's dumpfs</h1>
<p>Last Modified: 2002-02-12</p>
<hr>

<h2>What's pdumpfs?</h2>

<p>
pdumpfs is a simple daily backup system similar to Plan9's
dumpfs which preserves every daily snapshot. pdumpfs is
written in <a href="http://www.ruby-lang.org/">Ruby</a>.
You can access the past snapshots at any time for retrieving
a certain day's file.  Let's backup your home directory with
pdumpfs!
</p>

<p>
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.
</p>

<p>
Tha latest version of pdumpfs is available at 
<a href="http://namazu.org/~satoru/pdumpfs/">
http://namazu.org/~satoru/pdumpfs/</a>.
</p>

<h2><a name="news">What's New</a></h2>

<ul>
<li><strong>2002-02-12</strong>: <a
href="#download">pdumpfs 0.5</a> Released!<br>

<ul>
<li>Preserve attributes of directories.
<li>Add man pages contributed by Hiroyuki Shimada.
</ul>


<li><strong>2001-02-19</strong>: <a
href="#download">pdumpfs 0.1</a> Released!<br>

</ul>

<h2>Usage</h2>

<h3>Setting</h3>

<p>
Edit the first line of pdumpfs: <code>#!
/usr/local/bin/ruby</code> if necessary.
</p>

<h3>Command Line</h3>

<pre>
   % pdumpfs &lt;source directory&gt; &lt;destination directory&gt;
</pre>

<h3>Example</h3>

<p>
To backup your home directory /home/yourname to /backup, run
the following command.
</p>

<pre>
   % pdumpfs /home/yourname /backup &gt;/backup/log 2&gt;/backup/error-log
</pre>

<p>

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.
</p>

<pre>
    00 05 * * * pdumpfs /home/yourname /backup &gt;/backup/log 2&gt;/backup/error-log
</pre>

<p>
If the backup system works well, you can retrieve a certain
day's file with a file name like /backup/2001/02/19/yourname/...
</p>

<h2>Limitation</h2>

<ul>
<li>pdumpfs can handle only normal files, directories, and
symbolic links.

<li>pdumpfs may not work on systems other than UNIX because
pdumpfs utilizes hard links.

<li>pdumpfs is not suited for a directory containing large
files which update frequently. 

<li>If more than 31 days absence occurs, incremental backup
would not be performed. So, backup your files everyday.

<li>With pdumpfs, you can easily remove unnecessary files
because the past files can be retrieved at any
time. However, please do not put too much confidence in
pdumpfs.  pdumpfs may have serious bugs.


</ul>



<h2>Tips</h2>

<ul>
<li>If files are increased by 10 MB everyday, about 4 GB
disk space is consumed by one year. It is not too much,
considering the recent evolution of computer resources.


<li>Backup your files to a physically separated device.

<li>With a linux ext2/ext3 filesystem, 
files can be immutable with chattr command.
To make all files in /backup immutable, run <code>chattr -R
+i /backup</code> with the root privilege. chattr command
keep you from doing rm -rf backup files by accident.
</ul>

<h2><a name="download">Download</a></h2>

<p>
pdumpfs is a free software with ABSOLUTELY NO WARRANTY under
the terms of the <a
href="http://www.gnu.org/copyleft/gpl.html">GNU General
Public License version 2</a>.

</p>

<ul>
<li><a href="pdumpfs-0.5.tar.gz">pdumpfs-0.5.tar.gz</a>
(about 7 KB)
</ul>


<hr>
<p>
$Id: pdumpfs-en.html,v 1.10 2002/02/12 01:06:10 satoru Exp $
</p>
<address><a href="http://namazu.org/~satoru/">Satoru Takabayashi</a> (satoru@namazu.org)</address>
</body>
</html>