Re: Getting excludes right...
Richard Shaw <[email protected]> Sat, 29 Apr 2017 08:05:17 -0500
| Newsgroups | gmane.comp.sysutils.backup.backuppc.devel |
|---|---|
| Message-ID | <CAN3TeO1_-hW9qjSXiE_3K89DVrR_apZLOGcsAKpG=c5SanYcpQ@mail.gmail.com> |
--===============5249318854685775345==
Content-Type: multipart/alternative; boundary=001a11485d0e7a8afa054e4dd757
--001a11485d0e7a8afa054e4dd757
Content-Type: text/plain; charset=UTF-8
Ok, getting a little closer... I changed the configuration to:
$Conf{BackupFilesExclude} = {
'*' => [
'/home/*/.cache',
''
]
};
And ran the dump from the command line and got:
--exclude=/home/\*/.cache --exclude= <host>:/home/<user>/
It seemed to generate two excludes but the second one seems to be malformed
with the space after the = and I'm not sure it's even needed...
Thanks,
Richard
--001a11485d0e7a8afa054e4dd757
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr"><div class=3D"gmail_extra">Ok, getting a little closer... =
I changed the configuration to:</div><div class=3D"gmail_extra"><br></div><=
div class=3D"gmail_extra"><div class=3D"gmail_extra">$Conf{BackupFilesExclu=
de} =3D {</div><div class=3D"gmail_extra">=C2=A0 '*' =3D> [</div=
><div class=3D"gmail_extra">=C2=A0 =C2=A0 '/home/*/.cache',</div><d=
iv class=3D"gmail_extra">=C2=A0 =C2=A0 ''</div><div class=3D"gmail_=
extra">=C2=A0 ]</div><div class=3D"gmail_extra">};</div><div class=3D"gmail=
_extra"><br></div><div class=3D"gmail_extra">And ran the dump from the comm=
and line and got:</div></div><div class=3D"gmail_extra"><br></div><div clas=
s=3D"gmail_extra">--exclude=3D/home/\*/.cache --exclude=3D <host>:/ho=
me/<user>/<br></div><div class=3D"gmail_extra"><br></div><div class=
=3D"gmail_extra">It seemed to generate two excludes but the second one seem=
s to be malformed with the space after the =3D and I'm not sure it'=
s even needed...</div><div class=3D"gmail_extra"><br></div><div class=3D"gm=
ail_extra">Thanks,</div><div class=3D"gmail_extra">Richard</div></div>
--001a11485d0e7a8afa054e4dd757--
--===============5249318854685775345==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
--===============5249318854685775345==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
BackupPC-devel mailing list
[email protected]
List: https://lists.sourceforge.net/lists/listinfo/backuppc-devel
Wiki: http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/
--===============5249318854685775345==--