SPARCbook Portable Workstation User Guide
14-3
Backup and Restore
File Backup Facilities
Further information
The Solaris operating system contains many facilities for automated
backup in a large networked environment. This guide can only
describe very basic backup and restore facilities. For a complete
description of the backup and restore capabilities of Solaris you will
need to refer to SunSoft’s publications. See “Associated Documents”
File Backup Facilities
For most purposes,
tar
and
cpio
are adequate for saving important
files to tape or floppy. They are sufficient to save small amounts of data
and have the advantage of allowing you to back up both local and
remote filesystems mounted via NFS.
For example, the
tar
command could be used to make a backup of
your
/export/home
directory to tape as follows:
$
tar cvf /dev/rmt/0 /export/home
As another example, to save the file
mywork
to a floppy disk using the
Tadpole SCSI floppy disk drive, the command would be as follows (the
disk must be formatted, see “Formatting a Floppy Disk” on page 7-14):
$
tar cf /dev/diskette mywork
To list the contents of the archive on the floppy in the form displayed
by
ls -l
, the command would be:
$
tar tvf /dev/diskette
To extract the archive from the floppy the command would be:
$
tar xvf /dev/rdiskette mywork
For further information about
tar
and
cpio
, please consult the
SunSoft Solaris documentation.
S3UG4_Book Page 3 Friday, August 8, 1997 11:37 am