Tar命令压缩 并排除指定目录
[coolcode]
tar czvf tok.tar.gz toknock/ –exclude=toknock/templates_c –exclude=toknock/cache –exclude=toknock/uploadfiles –exclude=toknock/music
[/coolcode]
用tar czvf命令将toknock目录打包压缩成tok.tar.gz ,但使用exclude参数排除templates_c,cache ,uploadfiles 和music目录及其文件.
Thanks for the info!