Copying specific files from remote m/c to specific folders
Hi All,
I am trying to rsync some of the latest files from remote m/c to my local linux box.
Folder structure in my remote m/c looks like this
Each of the folder contains gzip files which on daily basis get updated so I am trying to get only latest or new file from these three folders
I want to sync files for all three platform in one single folder like this, my target folder should look like this:
I am able to do for one platfrom but how to do it for 2 other platfrom,
situation is like this that you don't know for which platform you will get file first so need to check for all platforms in single shot and get the file from that platform to correct location.
Suppose in morning linux folder get updated first that you should be able to get file from /pub/Nightly/Package/SOLL/linux to /drive/back/linux
And this what my shell script looks like:
mirror.sh
--------
LOCAL_PATH=/drive/back/linux
LIST_OF_FILES=`find /pub/Nightly/Package/SOLL/linux -type f -daystart -mtime 0 | grep "OWL"`
for ONE_FILE in ${LIST_OF_WIN_FILES}
do
rsync --verbose --recursive --delete --times \
${ONE_FILE} \
${LOCAL_PATH} \
done
Can anyone help me out in this situation.
I will be thankful to you
Last edited by Yogesh Sawant; 06-13-2008 at 05:50 AM..
Reason: added code tags
I am trying to write a script that cycles through a folder containing many folders and when inside each one it's supposed to copy all the .fna.gz files to a folder elsewhere if the file and the respective folder have the same name.
for fldr in /home/playground/genomes/* ; do
find .... (8 Replies)
Hi Team,
I am new to the linux commands and I really need help . I would be really thankful if I can get some inputs.
I have below folders in the path "/home/temp"
20170428
20170427
20170429
changes
tempI need to get the files generated in the last 15 mins in all the above folders... (4 Replies)
I have a directory /home/cmccabe/nfs/exportedReports that contains multiple folders in it. The find writes the name of each folder to out.txt. A new directory is then created in a new location /home/cmccabe/Desktop/NGS/API, named with the date. What I am trying to do, unsuccessfully at the moment,... (7 Replies)
hi,
i have a requirement to delete all the files from all the directories except some specific directories like archive and log.
for example:
there are following directories such as
A B C D Archive E Log F
which contains some sub directories and files. The requirement is to delete all the... (7 Replies)
I am trying to download all files from a user authentication, password protected https site, with a particular extension (.bam). The files are ~20GB each and I am not sure if the below is the best way to do it. I am also not sure how to direct the downloaded files to a folder as well as external... (7 Replies)
Hi All
I am trying to copy files from one location to another and given below are some sample ones:
aaa_bbb_ccc_ddd_cost_code_20140330.gz
aaa_bbb_ccc_ddd_revenue_zone_20140329.gz
aaa_bbb_ccc_ddd_benefit_extract_20140330.csv.gz
aaa_bbb_ccc_ddd_profit_zone_20150509.csv.gz... (17 Replies)
Hi Folks,
I have one curious case. There are list of following files placed in one directory such as... And updated each month.
files.JAN09.csv files.FEB09.csv files.MAR09.csv .....
Now, I need to move a specific files; i.e,
For this month, I need to move only OCT09, NOV09, DEC09,... (1 Reply)
I want a mechanism to monitor a folder full of files that are sensitive. I want to log all accesses,modifications and changes to any file within the folder in a log file which should give me access/modify/change times,the user id of the process which tried and the pid.
Even some idea of what to... (1 Reply)
Hi all,
I have a script below which meant to decompress *.tr.gz to allocated folder.
e.g. hello.tar.gz should be decompress to a subdirectory called hello and all the files should be in hello subdirectory.
How do i do it? Am i missing anything?
Condition: there are existing tar.gz in teh... (3 Replies)
I wanted to see if some one could confirm the proper command and format for copying specific files i.e., ones that contain certain character string in the file name. I would like to copy all files that contain a numeric sequence in the file name i.e., "922371". Files are compressed - *.gz. Would... (3 Replies)