Sponsored Content
Top Forums Shell Programming and Scripting Edit this rsync for me plz !! Post 302247348 by firefox211 on Wednesday 15th of October 2008 01:08:22 PM
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 !!
 

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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

9. 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

10. 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
librsync(3)						     Library Functions Manual						       librsync(3)

NAME
librsync - library for delta compression of streams SYNOPSYS
#include <stdio.h> #include <stdlib.h> #include <librsync.h> cc ... -lrsync DESCRIPTION
The librsync library implements network delta-compression of streams and files. The algorithm is similar to that used in the rsync(1) and xdelta(2) programs, but specialized for transfer of arbitrary-length octet streams. Unlike most diff programs, librsync does not require access to both of the files on the same machine, but rather only a short ``signature'' of the old file and the complete contents of the new file. The canonical use of librsync is in the rproxy(8) reference implementation of the rsync proposed extension to HTTP. It may be useful to other programs which wish to do delta-compression in HTTP, or within their own protocol. There are HTTP-specific utility functions within librsync, but they need not be used. A number of tools such as rdiff(1) provide command-line and scriptable access to rsync functions. SEE ALSO
rdiff(1) rdiff and librsync Manual http://rproxy.sourceforge.net/. draft-pool-rsync BUGS
The rsync protocol is still evolving. There may be bugs in the implementation. The interface may change in the future, but it is becoming more stable. Many routines will panic in case of error rather than returning an error code to the caller. Patches to fix this are welcome, but at the current state of development aborting seems as useful as trusting to possibly-incomplete checking in the client. AUTHOR
Martin Pool <mbp@samba.org>, with Andrew Tridgell <tridge@samba.org>. rdiff development has been supported by Linuxcare, Inc and VA Linux Systems. Martin Pool $Date: 2003/06/12 06:03:32 $ librsync(3)
All times are GMT -4. The time now is 01:11 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy