PRIMECLUSTER Global File Services Configuration and Administration Guide 4.2 (Solaris(TM) Operating Environment)
|
Contents
Index
|
24.4.1 Backing up file by file
To backup a single file or all files under a directory, use cpio(1), tar(1) or sfccpio(1).
Extent attributes cannot be copied by using cpio(1) or tar(1). Use sfccpio(1) when extent attribute information may be included in the file to be backed up.
Below are examples of backing up onto tape using cpio (1), tar (1) and sfccpio(1)
- Backup method using cpio(1)
# cd /userdata
# find . -depth -print | cpio -oc > /dev/rmt/0
|
- Backup method using tar(1)
# cd /userdata
# tar cvf /dev/rmt/0 .
|
- Backup method using sfccpio(1)
# cd /userdata
# find . -depth -print | sfccpio -oc > /dev/rmt/0
|
The tapes used for backups must be labeled before storage so that the backup method can be identified. cron(1M) can be used to start backups at specific times.
For details on cpio(1) and tar(1), see the "Solaris X Reference Manual Collection" or the online manual.
For details on sfccpio(1), see Appendix F.3.2 "sfccpio(1)."
All Rights Reserved, Copyright(C) FUJITSU LIMITED 2004