I am working on setting up cron jobs,and I am new to this. The purpose is to analyze the new data that is generated.The data is present in directories.
I want to sync only the latest data/that has not been analyzed for which I created a list of directories that have been analyzed(to be excluded).The below command I am using to sync data from source with a certain pattern to destination.
rsync -av --exclude-from=/home/list1 /datasets001/*/Pr*/*RNA* $TMPDIR/raw_fastq
The issue is the above command behaves same as the below command and does not exclude any data mentioned in list1.
rsync -av /datasets001/*/Pr*/*RNA* $TMPDIR/raw_fastq
few lines of list1 are present below:
datasets001/demux_182_160415_D00163_0376_BHCYVHBCXX_PM155__uid1849/Project_PM155/Sample_PM155_ORG9_1_Case_RNASeq
datasets001/demux_182_160415_D00163_0376_BHCYVHBCXX_PM601__uid1848/Project_PM601/Sample_PM601_PDX10_1_Case_RNASeq
Also,any other suggestions to sync the new data and analyze it(based on date) are welcome.