How to archive (tar,zip..) only files with execute bit?
Hi,
on Linux i know i can use this command:
find /path -type f -perm 700 -exec tar rvf file.tar {} \;
But this will loose the directory structure i assume.
I would like to backup one folder (with all subfolders, recursivelly) and include only files with execute bit, and keep directory structure, please which command to use?
I dont care which archive (tar, tgz, bz, zip, 7z will be used, i prefer tar and tgz)
the result should be archive with directory structure contianing oly files with execute bit
thank You
UPDATE: i think that the command i mentioned works exactly as i needed
Last edited by postcd; 04-04-2016 at 09:06 AM.
|