|
Lines 44-52
Link Here
|
| 44 |
<para>How to use backup programs available under FreeBSD.</para> |
44 |
<para>How to use backup programs available under FreeBSD.</para> |
| 45 |
</listitem> |
45 |
</listitem> |
| 46 |
<listitem> |
46 |
<listitem> |
| 47 |
<para>How to backup to floppy disks.</para> |
|
|
| 48 |
</listitem> |
| 49 |
<listitem> |
| 50 |
<para>What file system snapshots are and how to use them efficiently.</para> |
47 |
<para>What file system snapshots are and how to use them efficiently.</para> |
| 51 |
</listitem> |
48 |
</listitem> |
| 52 |
</itemizedlist> |
49 |
</itemizedlist> |
|
Lines 2212-2318
Link Here
|
| 2212 |
</sect2> |
2209 |
</sect2> |
| 2213 |
</sect1> |
2210 |
</sect1> |
| 2214 |
|
2211 |
|
| 2215 |
<sect1 id="backups-floppybackups"> |
|
|
| 2216 |
<title>Backups to Floppies</title> |
| 2217 |
|
| 2218 |
<sect2 id="floppies-using"> |
| 2219 |
<title>Can I Use Floppies for Backing Up My Data?</title> |
| 2220 |
<indexterm><primary>backup floppies</primary></indexterm> |
| 2221 |
<indexterm><primary>floppy disks</primary></indexterm> |
| 2222 |
|
| 2223 |
<para>Floppy disks are not really a suitable media for |
| 2224 |
making backups as:</para> |
| 2225 |
|
| 2226 |
<itemizedlist> |
| 2227 |
<listitem> |
| 2228 |
<para>The media is unreliable, especially over long periods of |
| 2229 |
time.</para> |
| 2230 |
</listitem> |
| 2231 |
|
| 2232 |
<listitem> |
| 2233 |
<para>Backing up and restoring is very slow.</para> |
| 2234 |
</listitem> |
| 2235 |
|
| 2236 |
<listitem> |
| 2237 |
<para>They have a very limited capacity (the days of backing up |
| 2238 |
an entire hard disk onto a dozen or so floppies has long since |
| 2239 |
passed).</para> |
| 2240 |
</listitem> |
| 2241 |
</itemizedlist> |
| 2242 |
|
| 2243 |
<para>However, if you have no other method of backing up your data then |
| 2244 |
floppy disks are better than no backup at all.</para> |
| 2245 |
|
| 2246 |
<para>If you do have to use floppy disks then ensure that you use good |
| 2247 |
quality ones. Floppies that have been lying around the office for a |
| 2248 |
couple of years are a bad choice. Ideally use new ones from a |
| 2249 |
reputable manufacturer.</para> |
| 2250 |
</sect2> |
| 2251 |
|
| 2252 |
<sect2 id="floppies-creating"> |
| 2253 |
<title>So How Do I Backup My Data to Floppies?</title> |
| 2254 |
|
| 2255 |
<para>The best way to backup to floppy disk is to use |
| 2256 |
&man.tar.1; with the <option>-M</option> (multi |
| 2257 |
volume) option, which allows backups to span multiple |
| 2258 |
floppies.</para> |
| 2259 |
|
| 2260 |
<para>To backup all the files in the current directory and sub-directory |
| 2261 |
use this (as <username>root</username>):</para> |
| 2262 |
|
| 2263 |
<screen>&prompt.root; <userinput>tar Mcvf /dev/fd0 *</userinput></screen> |
| 2264 |
|
| 2265 |
<para>When the first floppy is full &man.tar.1; will prompt you to |
| 2266 |
insert the next volume (because &man.tar.1; is media independent it |
| 2267 |
refers to volumes; in this context it means floppy disk).</para> |
| 2268 |
|
| 2269 |
<screen>Prepare volume #2 for /dev/fd0 and hit return:</screen> |
| 2270 |
|
| 2271 |
<para>This is repeated (with the volume number incrementing) until all |
| 2272 |
the specified files have been archived.</para> |
| 2273 |
</sect2> |
| 2274 |
|
| 2275 |
<sect2 id="floppies-compress"> |
| 2276 |
<title>Can I Compress My Backups?</title> |
| 2277 |
<indexterm> |
| 2278 |
<primary><command>tar</command></primary> |
| 2279 |
</indexterm> |
| 2280 |
<indexterm> |
| 2281 |
<primary><command>gzip</command></primary> |
| 2282 |
</indexterm> |
| 2283 |
<indexterm><primary>compression</primary></indexterm> |
| 2284 |
|
| 2285 |
<para>Unfortunately, &man.tar.1; will not allow the |
| 2286 |
<option>-z</option> option to be used for multi-volume archives. |
| 2287 |
You could, of course, &man.gzip.1; all the files, |
| 2288 |
&man.tar.1; them to the floppies, then |
| 2289 |
&man.gunzip.1; the files again!</para> |
| 2290 |
</sect2> |
| 2291 |
|
| 2292 |
<sect2 id="floppies-restoring"> |
| 2293 |
<title>How Do I Restore My Backups?</title> |
| 2294 |
|
| 2295 |
<para>To restore the entire archive use:</para> |
| 2296 |
|
| 2297 |
<screen>&prompt.root; <userinput>tar Mxvf /dev/fd0</userinput></screen> |
| 2298 |
|
| 2299 |
<para>There are two ways that you can use to restore only |
| 2300 |
specific files. First, you can start with the first floppy |
| 2301 |
and use:</para> |
| 2302 |
|
| 2303 |
<screen>&prompt.root; <userinput>tar Mxvf /dev/fd0 <replaceable>filename</replaceable></userinput></screen> |
| 2304 |
|
| 2305 |
<para>The utility &man.tar.1; will prompt you to insert subsequent floppies until it |
| 2306 |
finds the required file.</para> |
| 2307 |
|
| 2308 |
<para>Alternatively, if you know which floppy the file is on then you |
| 2309 |
can simply insert that floppy and use the same command as above. Note |
| 2310 |
that if the first file on the floppy is a continuation from the |
| 2311 |
previous one then &man.tar.1; will warn you that it cannot |
| 2312 |
restore it, even if you have not asked it to!</para> |
| 2313 |
</sect2> |
| 2314 |
</sect1> |
| 2315 |
|
| 2316 |
<sect1 id="backup-strategies"> |
2212 |
<sect1 id="backup-strategies"> |
| 2317 |
<sect1info> |
2213 |
<sect1info> |
| 2318 |
<authorgroup> |
2214 |
<authorgroup> |