I have created an ansible playbook which finds files older than 7 days and zips the files.
Also trying to exclude files from particular directory but not able to find.
I am not able to the exclude the files under sub directory ,it is also getting zipped
I am able to successfully exclude the already zipped files but not a sub directory under the path
using excludes in find module for compressing files older than 7 days
I have created an ansible playbook which finds files older than 7 days and zips the files.
Also trying to exclude files from particular directory but not able to find.
I am not able to the exclude the files under sub directory ,it is also getting zipped
I am able to successfully exclude the already zipped files but not a sub directory under the path
using excludes in find module for compressing files older than 7 days
I am able to exclude the gzip files but not the delete directory files under
/home/nsubbaraj/replicate/vol/gunnsc01/prod/scoreout/
I think the values for "excludes" need to be relative to the path(s), so try "delete"
instead of "/home/nsubbaraj/replicate/vol/gunnsc01/prod/scoreout/delete".