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
i.e configuration of C compiler :confused: (4 Replies)
Discussion started by: atiato
4 Replies
2. SuSE
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
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
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
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
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 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
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
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
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
LEARN ABOUT CENTOS
ocf_heartbeat_rsyncd
OCF_HEARTBEAT_RSYNCD(7) OCF resource agents OCF_HEARTBEAT_RSYNCD(7)
NAME
ocf_heartbeat_rsyncd - Manages an rsync daemon
SYNOPSIS
rsyncd [start | stop | monitor | meta-data | validate-all]
DESCRIPTION
This script manages rsync daemon
SUPPORTED PARAMETERS
binpath
The rsync binary path. For example, "/usr/bin/rsync"
(optional, string, default "rsync")
conffile
The rsync daemon configuration file name with full path. For example, "/etc/rsyncd.conf"
(optional, string, default "/etc/rsyncd.conf")
bwlimit
This option allows you to specify a maximum transfer rate in kilobytes per second. This option is most effective when using rsync with
large files (several megabytes and up). Due to the nature of rsync transfers, blocks of data are sent, then if rsync determines the
transfer was too fast, it will wait before sending the next data block. The result is an average transfer rate equaling the specified
limit. A value of zero specifies no limit.
(optional, string, no default)
SUPPORTED ACTIONS
This resource agent supports the following actions (operations):
start
Starts the resource. Suggested minimum timeout: 20s.
stop
Stops the resource. Suggested minimum timeout: 20s.
monitor
Performs a detailed status check. Suggested minimum timeout: 20s. Suggested interval: 60s.
validate-all
Performs a validation of the resource configuration. Suggested minimum timeout: 20s.
meta-data
Retrieves resource agent metadata (internal use only). Suggested minimum timeout: 5s.
EXAMPLE
The following is an example configuration for a rsyncd resource using the crm(8) shell:
primitive p_rsyncd ocf:heartbeat:rsyncd
op monitor depth="0" timeout="20s" interval="60s"
SEE ALSO
http://www.linux-ha.org/wiki/rsyncd_(resource_agent)
AUTHOR
Linux-HA contributors (see the resource agent source for information about individual authors)
resource-agents UNKNOWN 06/09/2014 OCF_HEARTBEAT_RSYNCD(7)