- 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
- tem4写作技巧(TEM4 writing skills).doc
- tet步步高升打工7年做过10几种工作又如何选择科士威(7 years working tet be promoted step by step 10 doing several work and how to choose the).doc
- tem8写作技巧(TEM8 writing skills).doc
- tgse(随).doc
- struts2常用标签总结 - open(Struts2 common tag Summary - Open).doc
- than 用法(比用法).doc
- that和which的区别(The difference between that and which).doc
- stdafxh的作用(The role of stdafxh).doc
- that的可省与不可省(That can be saved and can not be saved).doc
- the meaning of us 中日文歌词(我们中日文歌词意义).doc
最近下载
- 伽利略优质文档课件.pptx VIP
- 种群数量的变化-实验(探究酵母菌数量变化)-精选课件(设计).ppt
- 援黎巴嫩国家高等音乐学院项目中标方案 中国中元.pdf
- 期货最好用的指标公式文华财经指标公式期货做多做空指标源码.doc
- 2024-2030年中国揉圆机行业发展现状与未来趋势研究报告.docx
- 2025年哈尔滨铁道职业技术学院单招职业适应性测试题库完整.docx VIP
- 2025年哈尔滨铁道职业技术学院单招职业倾向性考试题库学生专用.docx VIP
- 2025年哈尔滨铁道职业技术学院单招职业倾向性测试题库及答案(网校专用).docx VIP
- 2025年哈尔滨铁道职业技术学院单招职业倾向性测试题库含答案(最新).docx VIP
- 2024-2030年中国揉圆机行业营销策略调研及投资前景深度调查报告.docx
文档评论(0)