Re: Exclude modifying top dir?

2023-01-25 Thread Roger via rsync
> On Tue, Jan 24, 2023 at 11:51:42PM -0500, Roger wrote: >I keep getting the following error. After several years I've had it, and am >posting to the mailing list in hopes of better advice than stuckchange. > >rsync: [generator] failed to set times on "/mnt/tmp/.": Operation not >permitted (1)

Exclude modifying top dir?

2023-01-24 Thread Roger via rsync
-dir-times), and this may or may not work. However, this exclusion tends to affect all files and directories, and most times in my experience, maynot be a desireable solution. I've also tried an exclusion (and I thought this was crafty thinking on my part), for omitting the top dir, "eg. --exclude

Re: exclude include path problems

2022-02-07 Thread Edwardo Garcia via rsync
ut we do want these ones. > > > > so we want server:mirrors/foo/bar/* > > > > How do we place our rsync command? > > > > we have tried all kinds of --include=foo/bar/ --exclude=* > > servername:mirrors/ > > we tried an include exclude include exclude too

Re: exclude include path problems

2022-02-07 Thread Paul Slootman via rsync
ut bar also has > dozens of directories - but we do want these ones. > > so we want server:mirrors/foo/bar/* > > How do we place our rsync command? > > we have tried all kinds of --include=foo/bar/ --exclude=* > servername:mirrors/ > we tried an include

exclude include path problems

2022-02-06 Thread Edwardo Garcia via rsync
? we have tried all kinds of --include=foo/bar/ --exclude=* servername:mirrors/ we tried an include exclude include exclude too, infact every conceivable method I've tried for hours, just about to give up with conclusion it can not be done.with rsync but before I delete now outdated repository I

Re: trailing spaces in exclude-from file

2022-01-27 Thread Wayne Davison via rsync
On Mon, Jan 24, 2022 at 1:08 AM Jürgen Bausa via rsync < rsync@lists.samba.org> wrote: > However, it didn't work in the beginning and took me some time to find > out, that a space at the end (e.g. "+ /mnt/Windows/Users " in the second > line) will be interpreted and thus, the directory is assumed

Re: trailing spaces in exclude-from file

2022-01-24 Thread Bill Campbell via rsync
On Mon, Jan 24, 2022, Paul Slootman via rsync wrote: >On Mon 24 Jan 2022, Jürgen Bausa via rsync wrote: >> >> However, that's just a proposal. But the behavior of trailing spaces is >> something I guess should be corrected. > >Is it? >How would you otherwise specify a space that you *do* intend

re: trailing spaces in exclude-from file

2022-01-24 Thread Jürgen Bausa via rsync
On Mon 24 Jan 2022, Paul Slootman via rsync wrote: > >On Mon 24 Jan 2022, Jürgen Bausa via rsync wrote: >> >> However, that's just a proposal. But the behavior of trailing spaces is >> something I guess should be corrected. > >Is it? >How would you otherwise specify a space that you *do* intend

Re: trailing spaces in exclude-from file

2022-01-24 Thread Paul Slootman via rsync
On Mon 24 Jan 2022, Jürgen Bausa via rsync wrote: > > However, that's just a proposal. But the behavior of trailing spaces is > something I guess should be corrected. Is it? How would you otherwise specify a space that you *do* intend to be relevant? Paul -- Please use reply-all for most

trailing spaces in exclude-from file

2022-01-24 Thread Jürgen Bausa via rsync
I am running debian bullseye which comes with rsync 3.2.3. and was struggling with writing a correct exclude-from file. I want to exclude everything under /tmp and /mnt, but include everything under/mnt/Windows/Users/jba. This is what I came up in the end and what works: + /mnt/Windows/Users

Re: feature request: exclude from path

2020-08-03 Thread Matt Stevens via rsync
. Any advice? rsync -aXvr --times --links --exclude={'*.vdi','*.vmdk','*.ova','*.qcow2','.config/discord/'} /home/path/ user@nas:/NAS/HOME/destination/ Are there supposed to be some kind of brackets around this? Using these brackets with bash causes the --exclude to be repeated for each value

Re: feature request: exclude from path

2020-08-03 Thread Paul Slootman via rsync
On Mon 03 Aug 2020, Matt Stevens via rsync wrote: > So I've gotten excluding paths to work as a standalone command. When I paste > this into a script however, it ignores the exclusions. Any advice? > > rsync -aXvr --times --links > --exclude={'*.vdi','*.vmdk','*.ova','*.qcow2','

Re: feature request: exclude from path

2020-08-03 Thread Matt Stevens via rsync
So I've gotten excluding paths to work as a standalone command. When I paste this into a script however, it ignores the exclusions. Any advice? rsync -aXvr --times --links --exclude={'*.vdi','*.vmdk','*.ova','*.qcow2','.config/discord/'} /home/path/ user@nas:/NAS/HOME/destination

Re: feature request: exclude from path

2020-08-02 Thread Andy Smith via rsync
Hi Matt, On Sat, Aug 01, 2020 at 10:10:49PM -0400, Matt Stevens via rsync wrote: > I lack development skills. Would there be a way for rsync to be passed an > option to exclude a specific path during a sync operaton? All of my attempts > to use exclude have failed, as it does not resp

feature request: exclude from path

2020-08-01 Thread Matt Stevens via rsync
to exclude a specific path during a sync operaton? All of my attempts to use exclude have failed, as it does not respect paths, only filetypes. -- Regards, Matt Stevens -- Please use reply-all for most replies to avoid omitting the mailing list. To unsubscribe or change options: https

[Bug 11909] Doc patch for INCLUDE/EXCLUDE PATTERN RULES

2020-07-26 Thread just subscribed for rsync-qa from bugzilla via rsync
https://bugzilla.samba.org/show_bug.cgi?id=11909 Wayne Davison changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

Re: --exclude vs --filter

2020-07-11 Thread Wayne Davison via rsync
On Sat, Jul 11, 2020 at 12:59 AM Roland wrote: > can "--filter" statements completely replace "--exclude" statements Yes. The old-style exclude/include options just turn into the simplest form of exclude/include filter rules. ..wayne.. -- Please use reply-all fo

--exclude vs --filter

2020-07-11 Thread Roland via rsync
Hello, i have a backup script where i first used "--exclude-from" only. users of my script can set exclude statements in backup client specific property files. later on, i needed to extend the script because of special requirement , so i needed to introduce usage of "--filter='me

[Bug 14395] New: Add an option to remove exclude files from the source

2020-05-26 Thread just subscribed for rsync-qa from bugzilla via rsync
https://bugzilla.samba.org/show_bug.cgi?id=14395 Bug ID: 14395 Summary: Add an option to remove exclude files from the source Product: rsync Version: 3.2.0 Hardware: All OS: All Status: NEW Severity

[Bug 14371] Combined Exclude & Protect Filter Type

2020-05-23 Thread just subscribed for rsync-qa from bugzilla via rsync
https://bugzilla.samba.org/show_bug.cgi?id=14371 --- Comment #7 from Wayne Davison --- If you don't want something deleted on the receiving side, you need to protect it via either a protect rule or an exclude rule. Using --delete-excluded just turns all exclude rules into hide rules, which

[Bug 14371] Combined Exclude & Protect Filter Type

2020-05-23 Thread just subscribed for rsync-qa from bugzilla via rsync
https://bugzilla.samba.org/show_bug.cgi?id=14371 Wayne Davison changed: What|Removed |Added Status|REOPENED|RESOLVED Resolution|---

[Bug 14371] Combined Exclude & Protect Filter Type

2020-05-23 Thread just subscribed for rsync-qa from bugzilla via rsync
/file2 touch dest/file3 rsync -ri --delete-excluded -filter 'H file3' --exclude 'file2' src/ dest/ Note that only file2 exists in both directories initially, meanwhile file1 exists only in the source, and file3 exists only in the destination. I want file1 to be transferred, file2 to be deleted

[Bug 14371] Combined Exclude & Protect Filter Type

2020-05-23 Thread just subscribed for rsync-qa from bugzilla via rsync
https://bugzilla.samba.org/show_bug.cgi?id=14371 --- Comment #5 from Haravikk --- Oh, I see; so hide actually does what I need, you confused me with the mention of not using --delete-excluded, as it actually seems to work just fine with a mixture of hide and exclude rules for different items

[Bug 14371] Combined Exclude & Protect Filter Type

2020-05-23 Thread just subscribed for rsync-qa from bugzilla via rsync
https://bugzilla.samba.org/show_bug.cgi?id=14371 --- Comment #4 from Wayne Davison --- You don't add an exclude rule, you add a hide rule. An exclude rule is a combination of a hide (server side) and a protect (client side). So you choose between the 3 idioms (hide, protect, exclude) depending

[Bug 14371] Combined Exclude & Protect Filter Type

2020-05-17 Thread just subscribed for rsync-qa from bugzilla via rsync
https://bugzilla.samba.org/show_bug.cgi?id=14371 --- Comment #3 from Haravikk --- If I remove --delete-excluded then how do I ensure my backups remove items matching new exclusion rules? For example, if I identify a new cache folder or such that I don't want to copy, and it add to my exclusion

[Bug 14371] Combined Exclude & Protect Filter Type

2020-05-17 Thread just subscribed for rsync-qa from bugzilla via rsync
|RESOLVED Resolution|--- |WONTFIX Status|NEW |RESOLVED --- Comment #1 from Wayne Davison --- Just don't use --delete-excluded. For anything that you want to exclude on the sending side without excluding

[Bug 14371] Combined Exclude & Protect Filter Type

2020-05-17 Thread just subscribed for rsync-qa from bugzilla via rsync
|RESOLVED --- Comment #1 from Wayne Davison --- Just don't use --delete-excluded. For anything that you want to exclude on the sending side without excluding it on the receiving side you should use a "hide" filter rule instead. This way you'll never have 2 rules, only ei

[Bug 14371] New: Combined Exclude & Protect Filter Type

2020-05-06 Thread just subscribed for rsync-qa from bugzilla via rsync
https://bugzilla.samba.org/show_bug.cgi?id=14371 Bug ID: 14371 Summary: Combined Exclude & Protect Filter Type Product: rsync Version: 3.2.0 Hardware: All OS: All Status: NEW Severity: enhance

Re: How to display IP of mirror site and exclude it

2020-04-22 Thread Wayne Davison via rsync
On Wed, Apr 8, 2020 at 8:15 AM Gerard E. Seibert wrote: > Since this does not happen on all of the mirror sites, I would like a way > to get a list or have rsync display the IP of the site it received an error > message from and a way to block the use of that IP in the future. Is that > possible?

How to display IP of mirror site and exclude it

2020-04-08 Thread Gerard E. Seibert via rsync
FreeBSD 11.3 p7 /amd 64 rsync version 3.1.3 protocol version 31 Copyright (C) 1996-2018 by Andrew Tridgell, Wayne Davison, and others. Web site: http://rsync.samba.org/ Capabilities: 64-bit files, 32-bit inums, 64-bit timestamps, 64-bit long ints, socketpairs, hardlinks, symlinks, IPv6,

Re: Exclude-from file format?

2020-01-03 Thread Kevin Korb via rsync
Either format is correct. However, there is no quoting or escaping in the file. So: - filename1 - file name 1 or without the - On 1/3/20 1:45 PM, @lbutlr via rsync wrote: > I have seen two main styles in examples for using rsync with exclude-from. > > The first is simply a list of

Exclude-from file format?

2020-01-03 Thread @lbutlr via rsync
I have seen two main styles in examples for using rsync with exclude-from. The first is simply a list of filename, one per line. The second is a list of filenames, one per line, prefixed with either a - or a + to indicate exclude/include. Which is correct? Also, none show the correct style

Re: Exclude and delete or not delete

2018-12-05 Thread Fabian Cenedese via rsync
>You need to switch to filters where you have the additional options >hide, show, risk, and protect. See the filter rules section of man rsync. Thanks for the hint. Though I've been using rsync for years this part has somehow escaped me. I've read up on the filters and they do what I need. The

Re: Exclude and delete or not delete

2018-12-04 Thread Kevin Korb via rsync
You need to switch to filters where you have the additional options hide, show, risk, and protect. See the filter rules section of man rsync. On 12/4/18 8:36 AM, Fabian Cenedese via rsync wrote: > Hello > > I'm looking for a way to exclude and delete some items but not delete > othe

Re: Exclude and delete or not delete

2018-12-04 Thread Fabian Cenedese via rsync
>> I'm looking for a way to exclude and delete some items but not delete >> other items. Use case: >> >> I'm on Windows where there are folders like recycle.bin and system >> volume information on every drive. I can exclude them while backing >> up my data d

Re: Exclude and delete or not delete

2018-12-04 Thread Andrew McGlashan via rsync
Hi, On 5/12/18 12:36 am, Fabian Cenedese via rsync wrote: > I'm looking for a way to exclude and delete some items but not delete > other items. Use case: > > I'm on Windows where there are folders like recycle.bin and system > volume information on every drive. I can exclude the

Exclude and delete or not delete

2018-12-04 Thread Fabian Cenedese via rsync
Hello I'm looking for a way to exclude and delete some items but not delete other items. Use case: I'm on Windows where there are folders like recycle.bin and system volume information on every drive. I can exclude them while backing up my data drive. But I now also have other data

Re: glob exclude vs include behaviour

2018-01-24 Thread Kevin Korb via rsync
* isn't a shell glob in this case it is a simple pattern wildcard meaning "anything". On 01/24/2018 02:23 PM, Ken Chase via rsync wrote: > not a bug, buy colour me confused: > > /tmp/foo$ mkdir a > /tmp/foo$ touch a/foo > /tmp/foo$ touch a/.baz > /tmp/foo$ cd .. &

[Bug 12940] New: rsync: -C/--cvs-exclude does not ignore SCM ignore files (patch)

2017-07-28 Thread just subscribed for rsync-qa from bugzilla via rsync
https://bugzilla.samba.org/show_bug.cgi?id=12940 Bug ID: 12940 Summary: rsync: -C/--cvs-exclude does not ignore SCM ignore files (patch) Product: rsync Version: 3.1.3 Hardware: All OS: All

Re: How do you exclude a directory that is a symlink?

2017-03-05 Thread Wayne Davison
On Fri, Mar 3, 2017 at 7:48 AM, Ken Chase wrote: > I think both situations could benefit from a --resolve-cmd-line-links > switch to resolve COMMAND LINE-SUPPLIED symlinks. > You can specify symlinks in a --relative path with a trailing slash-dot (and use /./ infix

Re: How do you exclude a directory that is a symlink?

2017-03-05 Thread Wayne Davison
On Fri, Mar 3, 2017 at 4:41 AM, Steve Dondley <s...@dondley.com> wrote: > However, if I add a --copy-links option to the command, it appears to > override my "exclude" directive and the contents of the symlinked directory > gets downloaded anyway. > The use of --co

Re: How do you exclude a directory that is a symlink?

2017-03-03 Thread Steve Dondley
> > > On Fri, Mar 03, 2017 at 07:41:10AM -0500, Steve Dondley said: > >A thousand greetings, > > > >I'm trying to rsync a directory from a server to my local machine that > has > >a symbolic link to a directory I don't want to download. I have an > >&

Re: How do you exclude a directory that is a symlink?

2017-03-03 Thread Ken Chase
Fri, Mar 03, 2017 at 07:41:10AM -0500, Steve Dondley said: >A thousand greetings, > >I'm trying to rsync a directory from a server to my local machine that has >a symbolic link to a directory I don't want to download. I have an >"exclude" option to exclude the symli

Re: How do you exclude a directory that is a symlink?

2017-03-03 Thread Steve Dondley
Ah, sorry, it links to somewhere outside the directory. Thanks. /home/blah/dir/unwanted_symlinked_dir points to /home/blah/other_dir On Fri, Mar 3, 2017 at 10:03 AM, Paul Slootman wrote: > On Fri 03 Mar 2017, Steve Dondley wrote: > > > The directory I'm trying to copy

Re: How do you exclude a directory that is a symlink?

2017-03-03 Thread Paul Slootman
On Fri 03 Mar 2017, Steve Dondley wrote: > The directory I'm trying to copy from is: /home/blah/dir > > The symlink is /home/blah/dir/unwanted_symlinked_dir > > On Fri, Mar 3, 2017 at 8:10 AM, Paul Slootman wrote: > > > You don't say explicitly, is the target of the

Re: How do you exclude a directory that is a symlink?

2017-03-03 Thread Steve Dondley
server to my local machine that > has > > a symbolic link to a directory I don't want to download. I have an > > "exclude" option to exclude the symlink which works fine. However, if I > add > > a --copy-links option to the command, it appears to override my "

Re: How do you exclude a directory that is a symlink?

2017-03-03 Thread Paul Slootman
On Fri 03 Mar 2017, Steve Dondley wrote: > I'm trying to rsync a directory from a server to my local machine that has > a symbolic link to a directory I don't want to download. I have an > "exclude" option to exclude the symlink which works fine. However, if I add >

How do you exclude a directory that is a symlink?

2017-03-03 Thread Steve Dondley
A thousand greetings, I'm trying to rsync a directory from a server to my local machine that has a symbolic link to a directory I don't want to download. I have an "exclude" option to exclude the symlink which works fine. However, if I add a --copy-links option to the command,

[Bug 12378] why i cannot exclude dir/files if using option "--files-from"

2016-10-14 Thread samba-bugs
https://bugzilla.samba.org/show_bug.cgi?id=12378 --- Comment #6 from Kevin Korb --- If you want to sync files newer than say 3 days ago that is what --files-from is for... cd /source find . -mtime -3 -print | rsync -vai --files-from=- . /target The primary purpose of

[Bug 12378] why i cannot exclude dir/files if using option "--files-from"

2016-10-14 Thread samba-bugs
https://bugzilla.samba.org/show_bug.cgi?id=12378 --- Comment #5 from Alessio --- (In reply to Wayne Davison from comment #4) Well if it's by design I will not go further. But for me it's a missing "feature" because one has to prepare the list beforehand while rsync could do the

[Bug 12378] why i cannot exclude dir/files if using option "--files-from"

2016-10-13 Thread samba-bugs
SFORME Status|NEW |RESOLVED --- Comment #4 from Wayne Davison <way...@samba.org> --- Command args (which includes names inside a files-from file) are never excluded by an exclude directive. You told rsync to copy it, so it copies it. Excludes only affect match

[Bug 12378] why i cannot exclude dir/files if using option "--files-from"

2016-10-13 Thread samba-bugs
inside of a directory that you told it to copy then it would be excluded. If you excluded userName/.cache/winetricks/msls31/InstMsiW.exe then it would be excluded. Exclude is not patern matched against parts of things you explicitly tell rsync to copy... kmk@dementia[1%]> cd /tmp kmk@dementia[2%]>

[Bug 12378] why i cannot exclude dir/files if using option "--files-from"

2016-10-13 Thread samba-bugs
https://bugzilla.samba.org/show_bug.cgi?id=12378 --- Comment #2 from Alessio --- (In reply to Kevin Korb from comment #1) Excuse me, but i don't get it, what's the difference between excluding (matching) the pattern from a --files-from and a remote host? debugging the rsync

[Bug 12378] why i cannot exclude dir/files if using option "--files-from"

2016-10-13 Thread samba-bugs
https://bugzilla.samba.org/show_bug.cgi?id=12378 --- Comment #1 from Kevin Korb --- It did not copy the directory you excluded it copied the files within that directory that you explicitly told it to copy and created the appropriate directories to allow that to happen.

[Bug 12378] New: why i cannot exclude dir/files if using option "--files-from"

2016-10-13 Thread samba-bugs
https://bugzilla.samba.org/show_bug.cgi?id=12378 Bug ID: 12378 Summary: why i cannot exclude dir/files if using option "--files-from" Product: rsync Version: 3.1.2 Hardware: x64 OS: Linux

Re: Combine exclude files

2016-05-25 Thread Fabian Cenedese
At 14:19 25.05.2016, N.J. van der Horn (Nico) wrote: >Content-Transfer-Encoding: 8bit > >Hi Fabi, > > From the man-page, at the end of FILTER RULES: > >--- >Note also that the --filter, --include, and --exclude options take one >rule/pattern each. >To add multiple on

Re: Combine exclude files

2016-05-25 Thread N.J. van der Horn (Nico)
Hi Fabi, From the man-page, at the end of FILTER RULES: --- Note also that the --filter, --include, and --exclude options take one rule/pattern each. To add multiple ones, you can repeat the options on the command-line, use the merge-file syntax of the --filter option, or the --include-from

Combine exclude files

2016-05-25 Thread Fabian Cenedese
Hi I'd like to have a list of excluded items that I can always use and combine them with job-specific excludes (or generally filters). Is it possible to use --exclude-from more than once? Do I have to combine the exclude files into one and give this to rsync? Is there another possibility

[Bug 11909] New: Doc patch for INCLUDE/EXCLUDE PATTERN RULES

2016-05-07 Thread samba-bugs
https://bugzilla.samba.org/show_bug.cgi?id=11909 Bug ID: 11909 Summary: Doc patch for INCLUDE/EXCLUDE PATTERN RULES Product: rsync Version: 3.1.2 Hardware: All OS: All Status: NEW Severity: enhancement

Re: exclude being ignored

2015-11-21 Thread Bob Holtzman
On Fri, Nov 20, 2015 at 06:43:12PM -0500, Kevin Korb wrote: > If you use --exclude=pattern instead of --exclude patter those become > more obvious. Also, you wouldn't have turned 'media' into an > additional source parameter. You're right. Thanks. -- Bob Holtzman A fair fight is t

Re: exclude being ignored

2015-11-20 Thread Kevin Korb
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 If you use --exclude=pattern instead of --exclude patter those become more obvious. Also, you wouldn't have turned 'media' into an additional source parameter. On 11/20/2015 06:33 PM, Bob Holtzman wrote: > On Wed, Nov 18, 2015 at 07:22:12PM -0

Re: exclude being ignored

2015-11-20 Thread Bob Holtzman
On Wed, Nov 18, 2015 at 07:22:12PM -0500, Kevin Korb wrote: > Note the lack of a space here: --exclude '/tmp'--exclude > > Also, just use / for the source instead of /. > > Also, don't use -z on a local copy. Many thanks for the reply/solution. I've looked at the command 10-12 t

exclude being ignored

2015-11-18 Thread Bob Holtzman
Running debian wheezy w/ rsync 3.0.9-4. The command in question is rsync -vahHz --delete --exclude '/proc' --exclude '*.iso' --exclude '/home/holtzm/mail/backup' --exclude '/sys ' --exclude '/tmp'--exclude '/media' /. /media/cf0a98ed-3c11-4107-b61e-f5139d024396/Wheezy-laptop notice

Re: exclude being ignored

2015-11-18 Thread Kevin Korb
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Note the lack of a space here: --exclude '/tmp'--exclude Also, just use / for the source instead of /. Also, don't use -z on a local copy. On 11/18/2015 06:19 PM, Bob Holtzman wrote: > Running debian wheezy w/ rsync 3.0.9-4. The command in quest

Re: rsync very slow with large include/exclude file list

2015-06-15 Thread ray vantassle
I investigated the rsync code and found the reason why. For every file in the source, it searches the entire filter-list looking to see if that filename is on the exclude/include list. Most aren't, so it compares (350K - 72K) * 72K names (the non-listed files) plus (72K * 72K/2) names (the ones

Re: rsync very slow with large include/exclude file list

2015-06-15 Thread Ken Chase
investigated the rsync code and found the reason why. For every file in the source, it searches the entire filter-list looking to see if that filename is on the exclude/include list.** Most aren't, so it compares (350K - 72K) * 72K names (the non-listed files) plus (72K * 72K/2) names

rsync very slow with large include/exclude file list

2015-06-15 Thread ray vantassle
I have a sensor collector system (very low-powered slow ARM cpu), and another system which daily pulls the data files from it for processing. There are about 1000 new files each day. As part of the processing it decides that certain of the files are of no interest, and adds them to an exclude

[Bug 11253] New: --exclude=dir doesn't work with --files-from=

2015-05-04 Thread samba-bugs
https://bugzilla.samba.org/show_bug.cgi?id=11253 Bug ID: 11253 Summary: --exclude=dir doesn't work with --files-from= Product: rsync Version: 3.1.1 Hardware: All OS: All Status: NEW Severity: normal

[Bug 11253] --exclude=dir doesn't work with --files-from=

2015-05-04 Thread samba-bugs
Status|NEW |RESOLVED --- Comment #1 from Wayne Davison way...@samba.org --- Excludes don't affect args, just items that are found in recursion. A files-from list is the same as specifying all the names as args on the command-line, and thus are not affected. Specifying an exclude

[Bug 11253] --exclude=dir doesn't work with --files-from=

2015-05-04 Thread samba-bugs
https://bugzilla.samba.org/show_bug.cgi?id=11253 --- Comment #2 from Vegard Nossum vegard.nos...@gmail.com --- (In reply to Wayne Davison from comment #1) Thank you for the explanation. -- You are receiving this mail because: You are the QA Contact for the bug. -- Please use reply-all for

Is it possible to to exclude #file

2015-04-12 Thread Harry Putnam
Can anyone tell me how to exclude a file that begins or ends with an octothorp (`#')? Something like #file or file# But not fi#le I've tried these in an exclude file: #* *# \#* *\# All seem to just be ignored -- Please use reply-all for most replies to avoid omitting the mailing list

Re: Is it possible to to exclude #file

2015-04-12 Thread Kevin Korb
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 - - #filename On 04/12/2015 05:06 PM, Harry Putnam wrote: Can anyone tell me how to exclude a file that begins or ends with an octothorp (`#')? Something like #file or file# But not fi#le I've tried these in an exclude file

Re: rsync slow exclude folder

2015-02-28 Thread Francis . Montagnac
Hi On Sat, 28 Feb 2015 06:41:59 +0300 Дугин Сергей wrote: rsync -a --exclude=tmp/* /home/ /backup/home/ If the folder /home/tmp/ is many millions of files, rsync think of this folder can be seen through the lsof -p PID Or strace yes. It seems that rsync does an lstat for any file before

Re: rsync slow exclude folder

2015-02-28 Thread Paul Slootman
On Sat 28 Feb 2015, ? ?? wrote: rsync version 3.0.9 protocol version 30 rsync -a --exclude=tmp/* /home/ /backup/home/ It is necessary that the contents of the folder tmp copy, but the folder tmp in backup was created. If the folder /home/tmp/ is many millions of files

rsync slow exclude folder

2015-02-27 Thread Дугин Сергей
Hi, Rsync. rsync version 3.0.9 protocol version 30 rsync -a --exclude=tmp/* /home/ /backup/home/ It is necessary that the contents of the folder tmp copy, but the folder tmp in backup was created. If the folder /home/tmp/ is many millions of files, rsync think of this folder can be seen

problem with exclude

2014-08-22 Thread Geoffrey Leach
I've tried all of the permutations of exclude I can think of, so presumably I have some fundamental misunderstanding. The goal here is to exclude the file tv11.html in the ftp directory. rsync -a -n --verbose --one-file-system -exclude='ftp/tv1.html' /usr/local/src /Media/sata/usr/local

Re: problem with exclude

2014-08-22 Thread Kevin Korb
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 - --exclude not -exclude - -exclude == -e -x -c -l -u -d -e which all happen to be valid. On 08/22/2014 03:37 PM, Geoffrey Leach wrote: I've tried all of the permutations of exclude I can think of, so presumably I have some fundamental

Patch to clearify the usage of shell patterns and rsync exclude/include patterns

2014-06-10 Thread Karl-Philipp Richter
f2a33d39c2e437af2d440861997e4fcb5a1dfc32 Mon Sep 17 00:00:00 2001 From: Karl-Philipp Richter krichter...@aol.de Date: Wed, 11 Jun 2014 00:27:30 +0200 Subject: [PATCH 2/2] added hint about distinction between shell and exclude/include patterns to avoid users e.g. trying *rsync -a remote.com:*.c /local/target

[Bug 10638] New: Add include/exclude files by mime type

2014-05-27 Thread samba-bugs
https://bugzilla.samba.org/show_bug.cgi?id=10638 Summary: Add include/exclude files by mime type Product: rsync Version: 3.1.1 Platform: All OS/Version: All Status: NEW Severity: enhancement Priority: P5

Excluding; iff foo.part exists, exclude foo and foo.part

2014-01-27 Thread Daniel
I'm syncing a download directory, where various programs drop their files. I would like to exclude partial firefox downloads. This could be accomplished by excluding foo and foo.part, iff foo.part exists. How can I accomplish this with exclude rules? Or would I have to generate the rules

Re: Large exclude list

2013-08-07 Thread Mirek Lauš
Le 11 juil. 2013 à 15:37, Mirek Lauš mi...@laus.cz a écrit : Hi, I'm facing problems with rsync using very large exclude-from list (around 780k lines, 32MB in size). Clients reads whole exclude list, then the sender receives the exclude rules but is stuck at around line 32k ... Can

Re: Large exclude list

2013-08-07 Thread AZ 9901
Le 7 août 2013 à 09:00, Mirek Lauš mi...@laus.cz a écrit : Le 11 juil. 2013 à 15:37, Mirek Lauš mi...@laus.cz a écrit : Hi, I'm facing problems with rsync using very large exclude-from list (around 780k lines, 32MB in size). Clients reads whole exclude list, then the sender receives

Re: Large exclude list

2013-08-07 Thread Mirek Lauš
On 7 Aug, 2013, at 19:35 , AZ 9901 az9...@gmail.com wrote: Le 7 août 2013 à 09:00, Mirek Lauš mi...@laus.cz a écrit : Le 11 juil. 2013 à 15:37, Mirek Lauš mi...@laus.cz a écrit : Hi, I'm facing problems with rsync using very large exclude-from list (around 780k lines, 32MB

Re: Large exclude list

2013-07-12 Thread AZ 9901
Le 11 juil. 2013 à 15:37, Mirek Lauš mi...@laus.cz a écrit : Hi, I'm facing problems with rsync using very large exclude-from list (around 780k lines, 32MB in size). Clients reads whole exclude list, then the sender receives the exclude rules but is stuck at around line 32k ... Can you

Re: Large exclude list

2013-07-12 Thread Mirek Lauš
I tried to increase the timeout but no luck. Well, if the timeout came into play, wouldn't it just quit and tell that the timeout was reached? In my situation, client reads whole exclude list (about 78 rules), the sender side starts to receive the exclude rules, but just hangs at about

Large exclude list

2013-07-11 Thread Mirek Lauš
Hi, I'm facing problems with rsync using very large exclude-from list (around 780k lines, 32MB in size). Clients reads whole exclude list, then the sender receives the exclude rules but is stuck at around line 32k ... Can you point me what to look out? What information would be useful to find

Platform variations with --exclude-from

2013-05-27 Thread Joseph L. Casale
On Linux, an rsync command and exclude_file contents of: # cat exclude_file /etc/alsa # rsync -a --delete --delete-excluded --exclude-from=exclude_file /etc server::module properly excludes /etc/alsa but not any file within /etc's directories that is named alsa. On Windows I don't seem

Re: Platform variations with --exclude-from

2013-05-27 Thread Paul Slootman
On Mon 27 May 2013, Joseph L. Casale wrote: On Linux, an rsync command and exclude_file contents of: # cat exclude_file /etc/alsa # rsync -a --delete --delete-excluded --exclude-from=exclude_file /etc server::module properly excludes /etc/alsa but not any file within /etc's directories

RE: Platform variations with --exclude-from

2013-05-27 Thread Joseph L. Casale
On Linux, an rsync command and exclude_file contents of: # cat exclude_file /etc/alsa # rsync -a --delete --delete-excluded --exclude-from=exclude_file /etc server::module properly excludes /etc/alsa but not any file within /etc's directories that is named alsa. Here the exclude

Re: exclude a pattern but only in the top level

2013-05-16 Thread Paul Slootman
On Wed 15 May 2013, Brian K. White wrote: I did in the case when it was only one pattern, but that was just a simplified example. The actual job involves too many include and exclude patterns to use --include --exclude, or even --include-from and --exclude-from, because the patterns

Re: exclude a pattern but only in the top level

2013-05-16 Thread Brian K. White
On 5/16/2013 2:38 AM, Paul Slootman wrote: On Wed 15 May 2013, Brian K. White wrote: I did in the case when it was only one pattern, but that was just a simplified example. The actual job involves too many include and exclude patterns to use --include --exclude, or even --include-from

exclude a pattern but only in the top level

2013-05-15 Thread Brian K. White
Consider the following directory structure /foo/aaa/*/* /foo/bbb/*/* /foo/ccc/*/* I want to sync all of /foo, but exclude /foo/aaa but not exclude any other occurances of aaa or foo/aaa (be they files or dirs) that might occur within the other dirs /foo/bbb/* /foo/ccc/* etc I don't want

Re: exclude a pattern but only in the top level

2013-05-15 Thread Matthias Schniedermeyer
On 15.05.2013 04:13, Brian K. White wrote: How can I get it to exclude just the top-level directory /foo/aaa ? With a '/' at the beginning you pin the pattern to the beginning. You don't use / at the end of directory names, so i'm not sure if the correct one is: /aaa or /foo/aaa

Re: exclude a pattern but only in the top level

2013-05-15 Thread Paul Slootman
On Wed 15 May 2013, Brian K. White wrote: Consider the following directory structure /foo/aaa/*/* /foo/bbb/*/* /foo/ccc/*/* I want to sync all of /foo, but exclude /foo/aaa rsync -avz /foo ${DEST}::root Firstly, I always recommend that with directory transfers you add a trailing

Re: exclude a pattern but only in the top level

2013-05-15 Thread Brian K. White
On 5/15/2013 5:17 AM, Paul Slootman wrote: On Wed 15 May 2013, Brian K. White wrote: Consider the following directory structure /foo/aaa/*/* /foo/bbb/*/* /foo/ccc/*/* I want to sync all of /foo, but exclude /foo/aaa rsync -avz /foo ${DEST}::root Firstly, I always recommend

Re: exclude a pattern but only in the top level

2013-05-15 Thread Paul Slootman
of a roundabout way. Why not tell rsync directly to read a file with include/exclude rules by using --exclude-from Paul -- Please use reply-all for most replies to avoid omitting the mailing list. To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read

Re: exclude a pattern but only in the top level

2013-05-15 Thread Brian K. White
with additional filter rules, which is a bit of a roundabout way. Why not tell rsync directly to read a file with include/exclude rules by using --exclude-from I did in the case when it was only one pattern, but that was just a simplified example. The actual job involves too many include and exclude

Re: do not update dirtimes on --include='*/' --exclude='*'

2013-03-12 Thread Francis . Montagnac
Hi. On Mon, 11 Mar 2013 23:17:06 +0100 Mark Casey wrote: On 3/11/2013 4:18 PM, Mark Casey wrote: ... rsync -nav --no-t --numeric-ids --relative --include='*/' --exclude='*' \ /media/mnt/files /media/backups/mnt/ ... I was wrong. The command I listed is working after all, I just wasn't

do not update dirtimes on --include='*/' --exclude='*'

2013-03-11 Thread Mark Casey
='*/' --exclude='*' \ /media/mnt/files /media/backups/mnt/ I've also tried messing with --checksum, --ignore-existing, and --size-only to get rsync to ignore modtimes but I think most of what I'm trying is intended to work on files and not dirs. Any insights? In case you want to know... The use case

Re: do not update dirtimes on --include='*/' --exclude='*'

2013-03-11 Thread Mark Casey
--no-t --numeric-ids --relative --include='*/' --exclude='*' \ /media/mnt/files /media/backups/mnt/ I've also tried messing with --checksum, --ignore-existing, and --size-only to get rsync to ignore modtimes but I think most of what I'm trying is intended to work on files and not dirs. Any

  1   2   3   4   5   6   7   8   9   >