When you need to back up and restore complete UFS file systems, use the ufsdump and ufsrestore commands described in Chapter 28, UFS Backup and Restore Commands (Reference). When you want to copy or move individual files, portions of file systems, or complete file systems, you can use the procedures described in this chapter instead of the ufsdump and ufsrestore commands.
The following table describes when to use the various backup commands.
Table 29–1 When to Use Various Backup Commands
Task |
Command |
For More Information |
---|---|---|
Back up UFS file systems to tape. |
ufsdump | |
Create a file system snapshot. |
fssnap | |
Restore UFS file systems from tape. |
ufsrestore | |
Transport files to other systems. |
pax, tar, or cpio | |
Copy files or file systems between disks. |
dd | |
Copy files to diskette. |
tar |
The following table describes various backup and restore commands.
Table 29–2 Summary of Various Backup Commands
Command Name |
Aware of File System Boundaries? |
Supports Multiple Volume Backups? |
Physical or Logical Copy? |
---|---|---|---|
volcopy |
Yes |
Yes |
Physical |
tar |
No |
No |
Logical |
cpio |
No |
Yes |
Logical |
pax |
Yes |
Yes |
Logical |
dd |
Yes |
No |
Physical |
ufsdump/ufsrestore |
Yes |
Yes |
Logical |
fssnap |
N/A |
N/A |
Logical |
The following table describes the advantages and disadvantages of some of these commands.
Table 29–3 Advantages and Disadvantages of tar, pax, and cpio Commands
The following sections describes step-by-step instructions and examples of how to use these commands.