rsync question...


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting rsync question...
# 1  
Old 11-24-2009
rsync question...

hi all,

i didnt know where to place the question on this site but seen as though it relates to a script i have done so here...

my issue is this...

i have 2 servers.

On server 1 (master) I have a structure such as /home/test/folder1,/home/test/folder2 and /home/test/folder3.

On server 2 I have the same structure.

However on server 2, I run rsync to fetch the root folder 'test' from server 1 and update an exclude file with paths test/folder1/fileA, test/folder1/fileA,...

When I run rsync on server 2, the verbose shows it pulling files from 'test/XXX' etc...however what I see each time I run rsync is that all files keep being copied across instead of the latest files from each of folder1,folder2 and folder3 despite me supplying an exclude file....Smilie

I have supplied an exclude-from command to the rsync command but I cant seem to prevent rsync from fetching every file each time the rsync command runs (configured to run every min).Smilie

Do I need to change the exclude-from command to be a specific path? such as /home/test/folder1/fileA* etc instead of test/folder1/fileA etc?

Any help appreciated.

rsync command:
rsync --exclude-from=</pathtofile> ....
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. UNIX for Dummies Questions & Answers

Script Question (find, rsync)

Hello all, I'm using rsync to maintain two copies of a music library on my main workstation and a server running MPD. I'm wondering about using the script below as a basis for cron to update my MPD db if new files have been added or existing files modified: find -type f -iname 'FILENAME' -mmin... (9 Replies)
Discussion started by: pmicka
9 Replies

3. UNIX for Dummies Questions & Answers

rsync usage question

Hello folks; I'm using rsync on my Ubuntu servers to sync a remote folders on a remote machine to a local folders on a local machine. one thing i couldn't get to work is how to exclude folder. I know i'm suppose to use "exclude" argument but every time i do, i still see the excluded directory... (0 Replies)
Discussion started by: Katkota
0 Replies

4. Shell Programming and Scripting

rsync question (regarding --delete)

Hi there Does anybody know of a way that i can, instead of issuing a --delete when syncing one directory to another, I can instead somehow receive a list of what would be deleted, but not actually delete it ? basically, people are occasionally putting files into one of synced folders, but... (2 Replies)
Discussion started by: rethink
2 Replies

5. UNIX for Dummies Questions & Answers

Simple Rsync question

I have a folder on a server that I update from different machines. So I think Rsync sounds like a good solution but I'm not sure how to make it a bidirectional check for updating, because if I work on the file on one of my client machines it could be newer than the server. (2 Replies)
Discussion started by: elbombillo
2 Replies

6. UNIX for Dummies Questions & Answers

Rsync question....

I have folders that sync over the network with an external software. I would like to know if rsync can be used to only sync permissions on files on the files. Remember I just want the permissions on the source to be copied over to the destination's already synced files. (2 Replies)
Discussion started by: elbombillo
2 Replies

7. UNIX for Advanced & Expert Users

rsync incremental question

Hi, I have problem with incremental copy of files from source to destination. I would like to copy different sources to different destinations. I made a backup script which look like that: curd=$(date +%w) day=$(date +%A) mkdir -p /home/backup/DATA/$day case $curd in 1|2|3|4|5) ... (7 Replies)
Discussion started by: zhivko.neychev
7 Replies

8. UNIX for Advanced & Expert Users

rsync question

Hey there guys I'm trying to rsync up a subdirectory only. For example /Volumes/media/WebDocuments/2006/* but not /Volumes/media/WebDocuments/2007/* rsync -va /Volumes/media/WebDocuments/2006/ \ user@host:/backups/2006/ If I do it that way I get only the contents... (3 Replies)
Discussion started by: sidmuchrock
3 Replies

9. UNIX for Dummies Questions & Answers

rsync question

Hi All I am trying to rsync the directories between two servers. The source directory is huge (8 GB) and I have the need to take an offsite backup. The directory I am trying to rsync has 774 permissions and are owned by a user/ group. To startup I backed up the source directory and restored... (1 Reply)
Discussion started by: skotapal
1 Replies

10. IP Networking

rsync question?

Does anyone know if rsync will work without ssh or rsh? I am trying to use rsync to synchronize files on two servers, one a production server and the other a standbyserver. The problem is that I have't been given the ok to install openssh on our productions servers, so I am trying to make my job... (4 Replies)
Discussion started by: cstovall
4 Replies
Login or Register to Ask a Question
rdiff(1)						      General Commands Manual							  rdiff(1)

NAME
rdiff - compute and apply signature-based file differences SYNOPSYS
rdiff [options] signature old-file signature-file rdiff [options] delta signature-file new-file delta-file rdiff [options] patch basis-file delta-file new-file USAGE
You can use rdiff to update files, much like rsync does. However, unlike rsync, rdiff puts you in control. There are three steps to updating a file: signature, delta, and patch. DESCRIPTION
In every case where a filename must be specified, - may be used instead to mean either standard input or standard output as appropriate. Be aware that if you do this, you'll need to terminate your options with -- or rdiff will think you are passing it an empty option. RETURN VALUE
0 for successful completion, 1 for environmental problems (file not found, invalid options, IO error, etc), 2 for a corrupt file and 3 for an internal error or unhandled situation in librsync or rdiff. SEE ALSO
librsync(3) AUTHOR
Martin Pool <mbp@samba.org> The original rsync algorithm was discovered by Andrew Tridgell. rdiff development has been supported by Linuxcare, Inc and VA Linux Systems. $Date: 2002/01/25 21:25:34 $ rdiff(1)