Solaris’de kullanılan Backup and Restore komutlarını aşağıda bulabilirsiniz.
Komut | Açıklama | Kullanımı |
tar |
||
tar | Backup file1, file2 into a tar file | # tar -cvf file.tar file1 file2 |
Backup directories /sbin /usr /dev to tape | # tar -cvf /dev/rmt/0 /sbin /usr /dev | |
Backup directories on a remote backup device | tar -cv /var /usr /lib | rsh remote_hostname dd of=/dev/rm/0 obs=128 | |
List all files in file.tar | # tar -tvf file.tar | |
list all files in a tape | # tar -tvf /dev/rmt/0 | |
Restore all files from file.tar | tar -xvf file.tar | |
Restore files from tape | # tar -xvf /dev/rmt/0 | |
Find US TAR archive file format | # fuser file_name | |
Dumps |
||
ufsdump | Backup disk partitions to tape | # ufsdump 0ucf /dev/rmt/0 /d001 /d002 |
Backup disk partitions to a remote tape device | # ufsdump 0ucf remote_machie:/dev/rmt/0 /u001 /u002 | |
ufsrestore | List contents of tape | # ufsrestore tf /dev/rmt/0 |
List contents of a remote tape | # ufsrestore tf remote_machine:/dev/rmt/0 | |
Restore the conects of a tape | # ufsrestore xf /dev/rmt/0 fiel /vol03 | |
Restore from remote tape | # ufsrestore rf remote_hostname:/dev/rmt/0 filename | |
cpio |
||
cpio | copy all files to a tape | # find . -print |cpio -ovcB >/dev/rmt/0 |
List all fines on a tape | # cpio -ivtB < 0 rmt> | |
Uncompress a .cpio | # cpio -icudv < file_name.cpio | |
Restore from tape | # cpio -ivcB < 0 rmt> | |
Tape control |
||
mt | Status of the tape | # mt -f /dev/rmt/0 status |
Rewind the tape to start | # mt -f /dev/rmt/0 rewind | |
Move to the next archie on tape | # mt -f /dev/rmt/0 fsf | |
Eo to end of tape | # mt -f /dev/rmt/0 eom | |
Erase the tape | # mt -f /dev/rmt/0 erase | |
Eject the tape(only if device supports) | # mt -f /dev/rmt/0 offline | |
Miscellaneous |
||
compress | Compress a file | # compress -v file_name |
uncompress | Uncompress a file | # uncompress file_name.Z |
gzip | Compress a file using GNU Zip | # gzip file_name |
gunzip | Uzip a file using GNU utility | # gunzip file_name.gz |
uuencode | encode a file | # uuencode input_file output_file |
uudecode | Decode an encoded file | # uudecode input_file output_file |
nohup | Run backup in batch mode | # nohup tar -cvf /dev/rmt/0 /d001 & |