#mt -f /dev/rmt/0 status <---- Checking tape drive status
UFSDUMP (Backup file system)
#ufsdump 0cvf /dev/rmt/0 /dev/rdsk/c0t0d0s0 <-- using raw devices
#ufsdump 0cvf /dev/rmt/0 /usr <--- using mounted fs
Disk to disk copy
#ufsdump 0f - /dev/rdsk/c0t0d0s7 |(cd /mnt/backup ;ufsrestore xf -)
UFSRESTORE (restore fs)
#ufsrestore rvf /dev/rmt/0 <---- restore a dump to a current dir
# ufsrestore -i /dev/rmt/0 <--- in interactive mode, on the selected tape drive
TAR
#tar cvf /dev/rmt/0 * <---- Backup all (*) using tar for the current dir
#tar tvf /dev/rmt/0 <---- listing a tar backup on a tape
#tar xvf /dev/rmt/0 <---- Extracting tar backup from tape to a current dir
CPIO
#find . -depth -print | cpio -ovcB > /dev/rmt/0 <---- Backup using cpio
#cpio -ivtB < /dev/rmt/0 <---- Viewing cpio files on a tape
#cpio -ivcB < /dev/rmt/0 <---- Restoring a cpio backup
Compress/uncompress
#compress -v
#uncompress
No comments:
Post a Comment