Excluding executables in a sub-directory from tar backups
Just trying to set up a new backup using tar, but there are a few things I dont want to include. Using --exclude I can exclude sub-directories, but how do I exclude specific files in a subdirectory that are (for instance) executables or have a specific extension?
|
Hi,
Answered a similar question here at LQ a while back. Have a look here tar excluding some files Hope this helps. |
Hi druuna - thats great, but only solves part of problem - any idea how I exclude files with executable permission in the sub-directory?
|
Hi,
You can create a file with executables like this: find /path/to/dir -type f -perm -u=x > exclude.list Use this exclude list to feed tar. Hope this helps. |
Thanks druuna
|
You're welcome :)
|
All times are GMT -5. The time now is 09:02 PM. |