- 1、本文档共7页,可阅读全部内容。
- 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
tar命令中--exclude参数使用详解(Tar command, --exclude parameters use detailed explanation)
tar命令中--exclude参数使用详解(Tar command, --exclude parameters use detailed explanation)
Tar command, --exclude parameters use detailed explanation
2008-04-07 11:15:33| classification: Linux | brand subscription
Tar, --null, -P, -czf, /tmp/archive.tar.gz, --files-from=files.lst
Files.lst is a list of files to pack
The use of --exclude in tar
Tar, czvf, oracle.tar.gz, Oracle, --exclude, oracle/oradata, --exclude, oracle/admin/shvoip, oracle/doc, --exclude
How do I use tar to exclude a directory from being backed up?
You pack the /home directory, and /home/123/ is the directory you dont want to pack.
Tar, CVF, my.bak.tar, /home, --exclude, /home/123
Tar exclude
Published, at, February 20, 2008, in, C/C++.
For a long time, tars exclude should be placed at the end of the line:
Tar, jcvf, WLANIntercepttar.bz, WLANIntercept/ - exclude=Debug
You need to backup the contents under /home/software/test,
Does not contain the contents of directory 005
This can be backed up
#cd /home/software/test
# tar -cvzf test.tar.gz --exclude=005.
.
./001
./002
./003
./004
./008
./test.tar.gz
If you go back to the previous level directory,
CD / /home/software is in
# tar -cvzf test.tar.gz --exclude=test/005/ test
Test/
Test/001
Test/002
Test/003
Test/004
Test/005/
Test/005/006
Test/005/007
Test/008
Test/test.tar.gz
Exclude doesnt work, does it?
If you follow the successful method above, if you extract it, you will be able to solve the contents directly under test
Current directory....
Second, why is there a problem with the general method?
Please point out......
Asking for tar backup in exclude
Halo has been resolved
# tar -cvzf test.tar.gz --exclude=test/005/ test
# tar -cvzf test.tar.gz --exclude=test/005 test
The two effects are absolutely different.
The tar command has a exclude parameter, when you pack to exclude some of the characteristics of the file when you need to use it, exclude parameter PATTERN, can be specified to exclude the scope, see the following document detailed usage,
您可能关注的文档
- bcsi体系说明(BCSI system specification).doc
- cacti安装手记(Cacti installation notes).doc
- cad图形修复技术和一次cad图的修复历险经历(CAD graphics repair technology and a CAD diagram repair adventure experience).doc
- c51中精确的延时与计算的实现(Precise delay and calculation implementation in C51).doc
- cad尺寸 数值参考(CAD dimension reference).doc
- brew中国电信的终端参数(Terminal parameters of brew China Telecom).doc
- cad技术(CAD technology).doc
- canopus imaginate v2.0 final 正式版 -将静态图像变成心爱的动画(最后正式版-将静态图像变成心爱的动画Canopus imaginate V2.0).doc
- cc++程序员必读的十本书(Cc++ programmers must read ten books).doc
- ccer数据库使用(CCER database usage).doc
- 食品安全产业园项目建议书(范文模板).docx
- 农业生产农业资源共享与合作方案.doc
- 初中语文课堂中的影视鉴赏教学策略与效果评估教学研究课题报告.docx
- 小学音乐教学中的情感体验与表达研究教学研究课题报告[001].docx
- 《基于人工智能的环境监测数据质量控制与管理体系的智能监测与分析研究》教学研究课题报告.docx
- 高中商务课程中企业管理实务与案例分析教学研究课题报告.docx
- 初中语文课堂情感教育的渗透策略与实践研究教学研究课题报告.docx
- 融合音乐审美教育的初中合唱教学策略与学生发展教学研究课题报告.docx
- 高中生物实验中的实验设计与结果评价研究教学研究课题报告.docx
- 商务谈判沟通技巧与策略.docx
文档评论(0)