0

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?

user3742929
  • 360
  • 3
  • 17

1 Answers1

0

With find you can execute some commands, for example copy with recursion:

find /var/CommuniGate/Accounts/ -name 'Archive.folder' -exec cp -Rp {} archiv_mount/ \;
Oriol
  • 26
  • 4