From users-return-27197-archive-asf-public=cust-asf.ponee.io@subversion.apache.org Thu Jun 7 09:04:42 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 1D1BE180663 for ; Thu, 7 Jun 2018 09:04:41 +0200 (CEST) Received: (qmail 49721 invoked by uid 500); 7 Jun 2018 07:04:40 -0000 Mailing-List: contact users-help@subversion.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@subversion.apache.org Received: (qmail 49711 invoked by uid 99); 7 Jun 2018 07:04:40 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Jun 2018 07:04:40 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id D05A2CD2AC for ; Thu, 7 Jun 2018 07:04:39 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.699 X-Spam-Level: X-Spam-Status: No, score=-0.699 tagged_above=-999 required=6.31 tests=[RCVD_IN_DNSWL_LOW=-0.7, UNPARSEABLE_RELAY=0.001] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id krlhTQGM_wMM for ; Thu, 7 Jun 2018 07:04:38 +0000 (UTC) Received: from einhorn-mail.in-berlin.de (einhorn-mail.in-berlin.de [217.197.80.20]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 92A785F58F for ; Thu, 7 Jun 2018 07:04:37 +0000 (UTC) X-Envelope-From: stsp@elego.de Received: from byrne.stsp.name (byrne.stsp.name [217.197.84.41]) by einhorn.in-berlin.de with ESMTP id w5774TKt001279 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 7 Jun 2018 09:04:30 +0200 Received: from localhost (byrne.stsp.name [local]) by byrne.stsp.name (OpenSMTPD) with ESMTPA id bbc60d58; Thu, 7 Jun 2018 09:04:29 +0200 (CEST) Date: Thu, 7 Jun 2018 09:04:29 +0200 From: Stefan Sperling To: Alfred von Campe Cc: "userssubversion.apache.org" Subject: Re: Problem with svndumpfilter Message-ID: <20180607070429.GA14061@byrne.stsp.name> Mail-Followup-To: Alfred von Campe , "userssubversion.apache.org" References: <4E8FC09C-25C1-4F0E-89AE-F7672232B1D4@von-campe.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <4E8FC09C-25C1-4F0E-89AE-F7672232B1D4@von-campe.com> User-Agent: Mutt/1.9.4 (2018-02-28) On Wed, Jun 06, 2018 at 03:12:20PM -0400, Alfred von Campe wrote: > I’m trying to remove two sensitive directories from a repo so we can have a 3rd party work on it. I first dumped the entire repo, and now I’m trying to remove two directories from one particular branch. But svndumpfilter keeps failing as follows: > > $ svndumpfilter exclude branches/develop/dir1 branches/develop/dir2 < repo.dump > repo-nodir12.dump > svndumpfilter: E200003: Invalid copy source path '/branches/develop/dir2' > > I’ve tried this both from a full incremental dump of the repo as well as a non-incremental dump of the repo starting from the revision that branches/develop was created. It always fails after the exact same revision. > > Is there anything I can do to work around this issue? > > Alfred Yes, you can update to 1.10 and use svnadmin dump --exclude instead of using svndumpfilter. See http://subversion.apache.org/docs/release-notes/1.10.html#dump-include-exclude An alternative that works with earlier releases is to set up svnsync replication and configure authz access rules for the sync user which forbid read access to the paths you want to exclude. svnsync will deal with missing copy sources by translating copies into additions.