exclude files from backup with rsync -b

2009-10-21 Thread Thomas Gutzler
Hi, is there a way to exclude files from being backed up when running rsync -b? Let's assume the following file tree: ./src/f1 ./src/temp/t1 ./dest/src/f1 ./dest/src/temp/t1 Now, I'm modifying both files f1 and t1 and run rsync -a --relative -b --backup-dir=/backup/ src/ dest/ Both ./dest/src/f1 a

Yet another include/exclude question

2009-11-05 Thread Thomas Gutzler
Hi, How can I include only *.foo and *.bar files in an rsync? To make it a bit more difficult: Those files can be anywhere in the directory structure. I've been reading and trying for a while but the best I got is all *.foo and *.bar files in ./ but none of the ones inside any directories. Cheer

Re: Yet another include/exclude question

2009-11-08 Thread Thomas Gutzler
der] hiding file this_dir/foo because of pattern * Tom Steven Monai wrote: > Tony wrote: >> On Nov 6, 2009, at 12:43 AM, Thomas Gutzler wrote: >>> Hi, >>> >>> How can I include only *.foo and *.bar files in an rsync? >>> To make it a bit more

Re: Yet another include/exclude question

2009-11-09 Thread Thomas Gutzler
Thanks everyone for your help, I've got what I want. Wayne Davison wrote: > On Sun, Nov 8, 2009 at 10:21 PM, Thomas Gutzler > mailto:thomas.gutz...@gmail.com>> wrote: > > I thought --include="/this_dir/" --include="/this_dir/***" would do it, &

Re: Yet another include/exclude question

2009-11-09 Thread Thomas Gutzler
Matt McCutchen wrote: > On Tue, 2009-11-10 at 09:45 +0800, Thomas Gutzler wrote: >> Thanks everyone for your help, I've got what I want. >> >> My first attempt has been >> --include="*/" --include="*.foo" --include="*.bar" >> --i

--detect-renamed --detect-moved and -b

2009-11-11 Thread Thomas Gutzler
Hi, I played around with the combination of rsync --detect-renamed --detect-moved and -b. Given the following tree: src/dir/file dest/src/dir/file I renamed src/dir to src/dir2 and ran the following command: rsync -a --detect-renamed --detect-moved --delete -b --backup-dir=bak src dest ending up w

Re: --detect-renamed --detect-moved and -b

2009-11-12 Thread Thomas Gutzler
Matt McCutchen wrote: > On Wed, 2009-11-11 at 20:27 +0800, Thomas Gutzler wrote: >> I played around with the combination of rsync --detect-renamed >> --detect-moved and -b. > > You can't combine the --detect-renamed and --detect-moved options > because they m

rsync hangs during --remove-source-files

2008-10-13 Thread Thomas Gutzler
Hi, I'm using the following command to move files from a to b: rsync -a --remove-source-files --ignore-existing /path/to/dir1/ /path/to/dir2 >> logfile dir2 isn't empty so I only move files from dir1 to dir2 that don't exist already. Every so often rsync stops in the middle and doesn't continu

Re: rsync hangs during --remove-source-files

2008-10-17 Thread Thomas Gutzler
: > On Mon, 2008-10-13 at 21:19 +0800, Thomas Gutzler wrote: >> I'm using the following command to move files from a to b: >> rsync -a --remove-source-files --ignore-existing /path/to/dir1/ >> /path/to/dir2 >> logfile >> dir2 isn't empty so I only mov

Re: rsync hangs during --remove-source-files

2008-10-19 Thread Thomas Gutzler
Wayne Davison wrote: > On Fri, Oct 17, 2008 at 03:34:03PM +0800, Thomas Gutzler wrote: >> I had another rsync hang. I've attached a text file with the stack >> traces you asked for and some other info. > > [...] So, the strange thing is that the receiver is > wai

Re: Feature I'd love to see: --move-dest

2008-12-08 Thread Thomas Gutzler
source, >> however, I have to imagine it would be a fairly straightforward >> feature to add... just add replace the copy operation in >> --copy-dest or the link operation in --link-dest with a move >> operation. >> >> -- Josh -- Please use reply-all for most re