Brief-Wishbone9091
Member
Say there is a folder called domains in glassfish. It has domain1, domain2...domainN.
I want to take everything from domain1 except the logs directory and save them to /home/user/backup directory.
I can do this manually,
I've seen someone doing
But how can I do this more easily?
I want to take everything from domain1 except the logs directory and save them to /home/user/backup directory.
I can do this manually,
Code:
cp -R /home/user/glassfish/domains/domain1 /home/user/backup
rm -rf /home/user/backup/domain1/logs
I've seen someone doing
Code:
cp -R `ls | grep -v logs` source destination
But how can I do this more easily?