To back up a single file or all files under the directory while it is mounted, use cpio(1L) or tar(1).
See
For details about cpio (1L) and tar(1), see the online manual.
The following are examples of backing-up on tape using cpio(1L) and tar(1).
Backing-up method with cpio(1L)
# cd /userdata <Enter> # find . -depth -print | cpio -oc > /dev/st0 <Enter> |
Backing-up method with tar(1)
# cd /userdata <Enter> # tar cvf /dev/st0 . <Enter> |
Note
Tapes used for data backup should be labeled for identifying the backing-up method.
cron(8) can schedule backing-up startup.