Reputation: 400
Currently I have the following code for copying all folders to a new location:
find /var/CommuniGate/Accounts/ -name 'Archive.folder' | cpio -pdm archiv_mount/
It works fine, but only copies the Archive.folder. How can I also copy everything that is contained in Archive.folder?
Upvotes: 0
Views: 201
Reputation: 26
With find you can execute some commands, for example copy with recursion:
find /var/CommuniGate/Accounts/ -name 'Archive.folder' -exec cp -Rp {} archiv_mount/ \;
Upvotes: 0