The OpenNET Project / Index page

[ новости /+++ | форум | теги | ]

Поиск:  Каталог документации / Документация по FreeBSD / Руководства по FreeBSD на английском

12.8 Backups to Floppies

12.8.1 Can I Use floppies for Backing Up My Data?

Floppy disks are not really a suitable media for making backups as:

However, if you have no other method of backing up your data then floppy disks are better than no backup at all.

If you do have to use floppy disks then ensure that you use good quality ones. Floppies that have been lying around the office for a couple of years are a bad choice. Ideally use new ones from a reputable manufacturer.

12.8.2 So How Do I Backup My Data to Floppies?

The best way to backup to floppy disk is to use tar with the -M (multi volume) option, which allows backups to span multiple floppies.

To backup all the files in the current directory and sub-directory use this (as root):

    # tar Mcvf /dev/fd0 *

When the first floppy is full tar will prompt you to insert the next volume (because tar is media independent it refers to volumes; in this context it means floppy disk).

    Prepare volume #2 for /dev/fd0 and hit return:

This is repeated (with the volume number incrementing) until all the specified files have been archived.

12.8.3 Can I Compress My Backups?

Unfortunately, tar will not allow the -z option to be used for multi-volume archives. You could, of course, gzip all the files, tar them to the floppies, then gunzip the files again!

12.8.4 How Do I Restore My Backups?

To restore the entire archive use:

    # tar Mxvf /dev/fd0

There are two ways that you can use to restore only specific files. First, you can start with the first floppy and use:

    # tar Mxvf /dev/fd0 filename

tar will prompt you to insert subsequent floppies until it finds the required file.

Alternatively, if you know which floppy the file is on then you can simply insert that floppy and use the same command as above. Note that if the first file on the floppy is a continuation from the previous one then tar will warn you that it cannot restore it, even if you have not asked it to!

This, and other documents, can be downloaded from ftp://ftp.FreeBSD.org/pub/FreeBSD/doc/.

For questions about FreeBSD, read the documentation before contacting <[email protected]>.
For questions about this documentation, e-mail <[email protected]>.




Партнёры:
PostgresPro
Inferno Solutions
Hosting by Hoster.ru
Хостинг:

Закладки на сайте
Проследить за страницей
Created 1996-2024 by Maxim Chirkov
Добавить, Поддержать, Вебмастеру