Edit this rsync for me plz !!


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Edit this rsync for me plz !!
# 1  
Old 10-15-2008
Edit this rsync for me plz !!

I have a source directory with a lot of sub directories and a few files in those sub directories match the pattern "super.[17 digits]"

I need to transfer only the files which match the patter above, with or without the directory structure.


I have this this command which duplicates a directory structure without duplicating the contents of these directories using 'rsync'.


$ rsync -avz --include='*/' --exclude='*' SOURCEDIR DESTDIR


Can I put a second --include in here and mention "super.*" to just get the files I need ?

or can someone help me edit this for my requirement ?


Thanks a ton !!
# 2  
Old 10-19-2008
Quote:
Originally Posted by firefox211
ICan I put a second --include in here and mention "super.*" to just get the files I need ?
Try it and see?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Rsync Error: rsync: link_stat failed: No such file or directory (2)

I wish to copy all the files & folder under /web/Transfer_Files/data/ on mymac1 (Linux) to remote server mybank.intra.com (Solaris 10) /tmp/ location I am using Ansible tool synchronize module which triggers the unix rsync command as below:rsync --delay-updates -F --compress --archive --rsh=ssh... (2 Replies)
Discussion started by: mohtashims
2 Replies

2. Shell Programming and Scripting

Plus edit and edit header

Dear Masters, i have a problem with unix script, till now i just know about how to create header. i want to change file below -63395.2 72653.5 -63361.3 72696.0 ... (9 Replies)
Discussion started by: ipatah
9 Replies

3. HP-UX

any one plz help

i want working environment hp_unix screen shots ,any one plz send (1 Reply)
Discussion started by: nagi
1 Replies

4. UNIX for Dummies Questions & Answers

PLZ help..!!

plz help me with this question : 1111 | aaaa | pppp | 23/9/87 3333 | dddd | oooo | 6/9/8 4444 | gggg | rrrr | 5/8/9 5555 | qqqq | eeee ans: 5555 | qqqq | eeee depending upon how many "|" are in the question be quick.. (8 Replies)
Discussion started by: adityamitra
8 Replies

5. Shell Programming and Scripting

plz help me

this script reads source.txt and move and random choice 6 files among 25 txt file and renmame it.. but it is not executed.. whats problem? #!/bin/ksh while read line do cd $line/radmin num=0 /bin/ls *.txt | while read file_nm ; do (( check = $RANDOM % 2 )) if ; then continue... (1 Reply)
Discussion started by: topic32428285
1 Replies

6. Shell Programming and Scripting

help me plz with df

i try write script for check space disk and if >87% then try find file in /.../mp3/ and delete only 5gb OLD file. i try this root@des:/media/generaly# nano 1111.sh i#!/bin/sh if ; then print fuck fi root@des3:/media/generaly# . 1111.sh bash: #!/usr/bin/perl @result = qx{df};... (2 Replies)
Discussion started by: djdes22
2 Replies

7. Shell Programming and Scripting

help me out plz

hi all, this is my 1st post to this helpful forum. I am really struck in a situation. Please help me out in this. I will tell u by the example; I have one file named as abc.txt, and its content are Cat Dog Apple what I need to do is to write a script which will read through this file... (2 Replies)
Discussion started by: zahirkhan
2 Replies

8. UNIX for Dummies Questions & Answers

plz help me...

unfortunately...i created directory with name "-rf" but now am unable to remove it. (6 Replies)
Discussion started by: venkatramana
6 Replies

9. SuSE

help me plz

hi all i want use apache server in red hat and using php but i don't know how i can do this plz help me for this ineed documentation.... can u help...:confused: (8 Replies)
Discussion started by: ahmadix
8 Replies

10. UNIX for Dummies Questions & Answers

plz Help How should I configure cc compiler output file plz help???

i.e configuration of C compiler :confused: (4 Replies)
Discussion started by: atiato
4 Replies
Login or Register to Ask a Question