I have to take backup of templatedata including all data types DCRs,tpls and datacapture.cfgs. In the data folder i have to check DCR started with QA*(for e.g. QAtest1,QAtest2 etc) should not be copied.Can i do it with the help of File::Find and regex? Please give ur suggestion how should i start.
cd $WORKAREA_ROOTfind templatedata/ -type f ! -name 'QA*' > /tmp/filelist_to_backuptar cf /tmp/backup.tar -I /tmp/filelist_to_backup