热门下载 |
|
|
|
|
推荐下载 |
|
|
|
|
| |
Backup and Restore(备份和恢复)Shell |
|
|
| Backup and Restore(备份和恢复)Shell |
| 下载类型: |
免费软件 |
|
| 运行环境: | |
| 软件大小: | 4.7K |
| 推荐等级: |  |
| 下载次数: | 363 |
| 发 布 人: | sdccf |
| 发布日期: | 2004年06月10日 11时03分48秒 |
| 软件主页: | 没有 |
| 非VIP会员下载价格(详情请QQ上咨询7644599): | (人民币)0元
|
|
| 下载权限: |
1 U币 |
→ 推荐给我的好友 |
| 软件下载: |
|
| 软件简介: |
These are two shell scripts for backing up and restoring files to/from magnetic tapes, or file archives. They extend the functionality of the Unix tar program to selective restoring.
Usage examples Simple backup of the /usr directory tree to /dev/rmt/0 (the magnetic tape on the SUN)  Backup:  cd / fpbackup -m /dev/rmt/0 /usr
Restoring the complete directory tree:  cd / fprestore -m /dev/rmt/0
Restoring all include-files:  cd / fprestore -m /dev/rmt/0 "include/*.h"
Restoring the program 'vi' without overwriting the original: cd /tmp fprestore -m /dev/rmt/0 vi This restored 'vi' to /tmp/usr/bin/vi 
Backup of a user's home directory to a file  Backup:  cd /u/frank fpbackup -m /tmp/backup .
Restoring all C files  cd /u/frank fprestore -m /tmp/backup "*.c"
Reincarnating the user's home elsewhere  mkdir /user/frank cd /user/frank fprestore -m /tmp/backup
Incremental backup of the /usr directory tree. We assume that we have previously backed up the directory as in 1. and then copied the timestamp file to /usr/timestamp. We again use the SUN tape device.  Backup:  cd / fpbackup -i /usr/timestamp -m /dev/rmt/0 /usr
Restoring the complete tree  cd / fprestore -m /dev/rmt/0
Advanced usage: Backing up a directory, using the compressor 'gzip' to compress the archive before writing it to the tape.  Backup:  cd /u/frank fpbackup -m - . | gzip -9 | dd of=/dev/rmt/0
Completely restoring the archive cd /u/frank dd if=/dev/rmt/0 | gunzip | fprestore -m -
Selectively restoring the file fpbackup from this archive. We know that this file is located in the subdirectory '1995'. cd /u/frank dd if=/dev/rmt/0 | gunzip | fprestore -m - ./1995/fpbackup
Selectively restoring all C files. This is not directly possible, we must first uncompress the archive to disk. cd /u/frank dd if=/def/rmt/0 | gunzip > /tmp/backup fprestore -m /tmp/backup "*.c"
|
|
|
相关软件 |
|
|
|
|
相关评论 |
|
|
|
| | → 评论内容 (点击查看) 共0条评论,每页显示5条评论 浏览所有评论 |
|
|
| → 发表我的评论 |
|
|
| 尊重网上道德,遵守《全国人大常委会关于维护互联网安全的决定》及中华人民共和国其他各项有关法律法; |
| 本站有权保留或删除您发表的任何评论内容; |
|
|
|
|