rsync assistance


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users rsync assistance
# 1  
Old 09-14-2009
rsync assistance

Ok here we go.

I have mounted remote drives and I am trying to get rsync to just sync certain directories within these mounted folders.

Example:
/mnt/bkmasterbackup1
/mnt/bkmasterbackup2
/mnt/bkmediabackup1
/mnt/prodnas02
/mnt/prodnas03
/mnt/prodnas04
/mnt/prodnas05

Inside these mounted drives I have a folder called DR
Example:
user(at)machine# pwd
/mnt/prodnas02/ArdentHS/DR

Im trying to just sync /mnt/prodnas02/*/DR/*

What Im trying to use is ..
rsync -rhu --progress --include-from=/root/rsync-include/drfolders --log-file=/var/log/copy.log /mnt/prodnas02 /mnt/backup01/

within my drfolders file I have something like
/*/*/DR/*

I've tried several different lines and include or exclude lines but for some reason I am truley missing something.

Any assistance with the syntax would be great.

Thanks in advance.
# 2  
Old 09-16-2009
Maybe I asked this question in the wrong section?
# 3  
Old 09-18-2009
Maybe I asked the wrong questions?
# 4  
Old 09-21-2009
Section "FILTER RULES" in man rsync
# 5  
Old 09-21-2009
Quote:
Originally Posted by ikorolev
Section "FILTER RULES" in man rsync
I also was trying that and couldnt get the syntax correct I suppose.

Quote:
Originally Posted by ikorolev
Section "FILTER RULES" in man rsync

thanks for the reply! I did check out the --filter rules but I cant get the syntax down correctly.

Last edited by vbe; 09-22-2009 at 05:03 AM..
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

Need assistance with looping

Hi, I have a find command that searches for all the .properties under current directory and its subdirectories. find . -name "*.properties" I would like to pass the output of the above find command to my "operation.sh script as the second parameter. for eg: ./operation.sh 775 ... (2 Replies)
Discussion started by: mohtashims
2 Replies

3. Shell Programming and Scripting

Assistance to use ls and GREP

Hi We have several folders and subfolders in a heirarchy, representing clients and files we send to them. Files that are not processed are placed in reject folder. I am able to run a LS that will scan all these folders, and ones that show entries (rejected files) are seen here. I am looking for... (8 Replies)
Discussion started by: cdc01
8 Replies

4. UNIX for Dummies Questions & Answers

Need assistance on using ldapsearch

Never knew of this command ldapsearch, but I would like to use it to lookup a single user and return where their office is. Is this possible? I'm totally starting from scratch. I already saw some of the gurus say read the man page, which is pretty greek when you don't know the details of... (1 Reply)
Discussion started by: srhadden
1 Replies

5. Shell Programming and Scripting

Need assistance with sed

Hi All, I need your assistance, I would like to replace all lines beginning with the word "begin" with the below text: Device | IPMB0-A | IPMB0-B Board Address |Sent SentErr %Errr |Sent SentErr ... (9 Replies)
Discussion started by: Dendany83
9 Replies

6. Solaris

hardware assistance

Hoping someone can help clarify what I need. At present I have a Sun Ultra 2 with two ultrawide scsi cards and 2-12 drive multipacks (one multipack to one card, the other multipack to the other card), 2 Sun Ultra 10's, and a Sun E4500 with a differential scsi card connected to a half filled... (4 Replies)
Discussion started by: paulbryant
4 Replies

7. Shell Programming and Scripting

I need an assistance

I have a school project to create a shell program same as calendar i must create a txt file with celebrations with vi i know this but the problem is i don't know awk and grep. The object of object is to create a program who read a date an appear the celebration. Can you help me please !!!... (1 Reply)
Discussion started by: mytilini boy
1 Replies

8. UNIX for Dummies Questions & Answers

Assistance needed.

the command "nawk" returns the error command cannot be found in my unix system. Is there a specific library i need to have to use this command? I tried, the whereis command and it returns nothing. if there is nothing to do, what command can i use to replace this nawk command? Appreciate some... (4 Replies)
Discussion started by: 12yearold
4 Replies

9. UNIX for Dummies Questions & Answers

Need Assistance

I have two questions I am struggling with... How do the programs p1, p2, and p3 need to handle their standard files so they can work like this: p1 | p2 | p3 ? What exactly is this command supposed to do? $ kill -QUIT %1 & This command below? $ sort -o emp.lst emp lst & Any... (1 Reply)
Discussion started by: yahoo14
1 Replies

10. Shell Programming and Scripting

regexp assistance

i have a list of text a b c d e My desired output is 'a','b','c','d','e' any advise? My file was actually in excel format, i copied out the column into notepad. I am not sure if the \n exists in between. (2 Replies)
Discussion started by: new2ss
2 Replies
Login or Register to Ask a Question