LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   rsync and rename help pls (https://www.linuxquestions.org/questions/linux-newbie-8/rsync-and-rename-help-pls-753866/)

genogp 09-09-2009 09:01 AM

rsync and rename help pls
 
hi all

I have a number of files in different directories, these files all have the same file name. I need to rsync these files across to another sever and rename them. i dont really care much what they get renamed too.

Any ideas?

onebuck 09-09-2009 09:10 AM

Hi,

Quote:

Originally Posted by genogp (Post 3675850)
hi all

I have a number of files in different directories, these files all have the same file name. I need to rsync these files across to another sever and rename them. i dont really care much what they get renamed too.

Any ideas?

Now that we are all aware of your 'needs'. What are your 'deeds'?

genogp 09-09-2009 09:13 AM

They are log files that i need to copy over

heres an idea, im sure u can see my problem, if i copy them across they will override the exsisting file copied

Quote:

./RBGPRDWAS001/FxCTeller1/SystemOut_09.09.03_23.00.00.log.bz2
./RBGPRDWAS001/FxCTeller2/SystemOut_09.09.03_23.00.00.log.bz2
./RBGPRDWAS003/FxCTeller1/SystemOut_09.09.03_23.00.00.log.bz2
./RBGPRDWAS003/FxCTeller2/SystemOut_09.09.03_23.00.00.log.bz2
./RBGPRDWAS004/FxCTeller1/SystemOut_09.09.03_23.00.00.log.bz2
./RBGPRDWAS004/FxCTeller2/SystemOut_09.09.03_23.00.00.log.bz2
./RBGPRDWAS005/FxCTeller1/SystemOut_09.09.03_23.00.00.log.bz2
./RBGPRDWAS005/FxCTeller2/SystemOut_09.09.03_23.00.00.log.bz2
./RBGPRDWAS006/FxCTeller1/SystemOut_09.09.03_23.00.00.log.bz2
./RBGPRDWAS006/FxCTeller2/SystemOut_09.09.03_23.00.00.log.bz2
./RBGPRDWAS007/FxCTeller1/SystemOut_09.09.03_23.00.00.log.bz2
./RBGPRDWAS007/FxCTeller2/SystemOut_09.09.03_23.00.00.log.bz2
./RBGPRDWAS008/FxCTeller1/SystemOut_09.09.03_23.00.00.log.bz2
./RBGPRDWAS008/FxCTeller2/SystemOut_09.09.03_23.00.00.log.bz2
./GRNPRDWAS001/FxCTeller1/SystemOut_09.09.03_23.00.00.log.bz2
./GRNPRDWAS001/FxCTeller2/SystemOut_09.09.03_23.00.00.log.bz2
./GRNPRDWAS003/FxCTeller1/SystemOut_09.09.03_23.00.00.log.bz2
./GRNPRDWAS003/FxCTeller2/SystemOut_09.09.03_23.00.00.log.bz2
./GRNPRDWAS004/FxCTeller1/SystemOut_09.09.03_23.00.00.log.bz2
./GRNPRDWAS004/FxCTeller2/SystemOut_09.09.03_23.00.00.log.bz2
./GRNPRDWAS005/FxCTeller1/SystemOut_09.09.03_23.00.00.log.bz2
./GRNPRDWAS005/FxCTeller2/SystemOut_09.09.03_23.00.00.log.bz2
./GRNPRDWAS006/FxCTeller1/SystemOut_09.09.03_23.00.00.log.bz2
./GRNPRDWAS006/FxCTeller2/SystemOut_09.09.03_23.00.00.log.bz2
./GRNPRDWAS007/FxCTeller1/SystemOut_09.09.03_23.00.00.log.bz2
./GRNPRDWAS007/FxCTeller2/SystemOut_09.09.03_23.00.00.log.bz2
./GRNPRDWAS008/FxCTeller1/SystemOut_09.09.03_23.00.00.log.bz2
./GRNPRDWAS008/FxCTeller2/SystemOut_09.09.03_23.00.00.log.bz2
./GRNPRDWAS009/FxCTeller1/SystemOut_09.09.03_23.00.00.log.bz2
./GRNPRDWAS009/FxCTeller2/SystemOut_09.09.03_23.00.00.log.bz2
im looking for an rsync command to do this for me

chrism01 09-09-2009 06:55 PM

Why do you need to rename them? Surely you want the updated versions of those files? The naming convention seems to include enough info to naturally avoid overwriting files that aren't the same. eg Id, sub-id, date, time.

You could just put them in a new dir, that'd prob be easiest.


All times are GMT -5. The time now is 07:00 PM.