- 论坛徽章:
- 0
|
貌似不仅仅这样
welcome008 发表于 2011-01-10 11:14 ![]()
看下这篇文章:
http://content.hccfl.edu/pollock/unix/findcmd.htm
When using find to locate files for backups, it often pays to use the "-depth" option (really a criterion that is always true), which forces the output to be depth-first—that is, files first and then the directories containing them. This helps when the directories have restrictive permissions, and restoring the directory first could prevent the files from restoring at all (and would change the time stamp on the directory in any case). Normally, find returns the directory first, before any of the files in that directory. This is useful when using the "-prune" action to prevent find from examining any files you want to ignore:
find / -name /dev -prune | xargs tar ... |
|