Re: Filter file: selected directories only

2009-10-03 Thread Matt McCutchen
On Sun, 2009-10-04 at 00:29 +0400, rs...@xbit.ru wrote: > I'm trying to create a filter file for rsync what saying which dirs to > copy. For example i need only /lib and /var/lib dirs from remote server. > I say: > rsync -f ". /tmp/rsync_dirs" --dry-run --verbose "remote:/" > "/local_dir/". > >

Re: Exclude directory from --delete

2009-10-03 Thread Matt McCutchen
On Sat, 2009-10-03 at 22:06 -0700, Jeffrey Ellis wrote: > Hm. I've tried all of the following: > > rsync -avve ssh --numeric-ids --delete --ignore-errors -R > myu...@myisp.com:/usr/home/./myuser > myu...@myisp.com:/usr/home/./myuser/mail_boxes/ > myu...@myisp.com:/usr/home/./myuser/public_html/ /V

Re: Exclude directory from --delete

2009-10-03 Thread Matt McCutchen
On Sat, 2009-10-03 at 21:03 -0700, J. Ellis wrote: > So let me see if I understand correctly. First, are the \ characters > followed by a return, or are they all on a single line? In other words, is > this entered in the terminal as one command, or does it need to be broken up > somehow? The \ is

Re: Exclude directory from --delete

2009-10-03 Thread J. Ellis
Hi, Matt-- Wow. This looks great. So let me see if I understand correctly. First, are the \ characters followed by a return, or are they all on a single line? In other words, is this entered in the terminal as one command, or does it need to be broken up somehow? And then each of the symlinks fo

Re: Exclude directory from --delete

2009-10-03 Thread Matt McCutchen
On Sat, 2009-10-03 at 15:47 -0700, J. Ellis wrote: > I have the following 3 commands which are supposed to run every night > to back up my web server: > > rsync -avve ssh --numeric-ids --delete --ignore-errors > myu...@myisp.com:/usr/home/myuser /Volumes/Downloads > rsync -avve ssh --copy-links --

Exclude directory from --delete

2009-10-03 Thread J. Ellis
I have the following 3 commands which are supposed to run every night to back up my web server: rsync -avve ssh --numeric-ids --delete --ignore-errors myu...@myisp.com:/usr/home/myuser /Volumes/Downloads rsync -avve ssh --copy-links --numeric-ids --delete --ignore-errors myu...@myisp.com:/usr/home

[no subject]

2009-10-03 Thread sdcsdc sdcsdc
Hi, I want to transport a bash file with ipfw rules when the file is updated from PHP program between Ubuntu server and FreeBSD server via SSH. The problem is that then the bash file is copyed to FreeBSD it must be executed and the new ipfw rules work. Is it possible rsync to execute the

Filter file: selected directories only

2009-10-03 Thread rsync
Hi! I'm trying to create a filter file for rsync what saying which dirs to copy. For example i need only /lib and /var/lib dirs from remote server. I say: rsync -f ". /tmp/rsync_dirs" --dry-run --verbose "remote:/" "/local_dir/". File /tmp/rsync_dirs looks like: + /lib/ + /var/ -! /var/lib/* -

--keep-dirlinks --delete erroneously deletes symlinks to directories

2009-10-03 Thread Roland Koebler
Hi, the combination of --keep-dirlinks and --delete (--delete-during, --delete-delay) erroneously deletes symlinks to directories on the receiver. With --delete-before and --delete-after it works as expected. (rsync version 3.0.3 protocol version, on Debian Lenny) I don't think that this behav