Please see this page for more information on disks in AIX
- dd if=
of= bs= conv=sync - - direct (and I mean DIRECT) copy, normally to tape. Archaic syntax and very rarely used. flags:
- if - input filename or device
- of - output filename
- bs - block size
- conv - ??
$ dd if=/etc/hosts of=/dev/rmt0 bs=1024 conv=sync # write hosts file to tape using dd - cpio
- stands for copy in-out, and is extremely powerful if you can cope with the innumerable flags that you have to use(!)
$ cpio -iBcvumd "etc/hosts"
$ find /etc -print | cpio -oBcv >/dev/rmt0 # Write the contents of the /etc directory to tape
$ find /etc -print | cpio -pdumv /usr2/etcbackup/ # copy directory /etc to /usr2/etcbackup and retain all permissions.
meaning of the flags:
- i - input
- o - output
- B - Block size of 5120 bytes
- c - read/write header info
- v - list file names
- u - unconditional copy - overwrites existing file.
- m - keep modification dates
- d - creates directories as needed.
- t - generate listing of what is on the tape.
- p - preserve permissions.
$ tapeutil -f /dev/smc0 move -s 10 -d 23 # which moves the tape in slot 10 to the drive (obviously, this will depend on your own individual tape library, may I suggest the manual?).
tar cvf /dev/rmt0
tar xvf /dev/rmt0 will read files from tape
tar tvf /dev/rmt0 will give a listing of what's on the tape. If you're using an archive file then replace /dev/rmt0 in the examples above with the name of the archive file.
No comments:
Post a Comment