Re: Problem with skip=on
Miek Gieben <[email protected]> Sat, 10 Sep 2005 11:26:22 +0200
| Newsgroups | gmane.comp.sysutils.backup.hdup.general |
|---|---|
| Message-ID | <[email protected]> |
--4ZLFUWh1odzi/v6L
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
[On 09 Sep, @14:12, Ondra Kudlik wrote in "[hdup-user] Problem with skip=3D=
..."]
> Oouch... I once again reviewed thinks and=20
>=20
> $ grep -z /home/backup etc/filelist | sed -u -e 's/\o000/\n/g'
ahh, cool you can actually replace \0 with something more sane
in sed.
> /home/backup
> /home/backup/bender
> /home/backup/bender/LOCK
> /home/backup/bender/2005-09-09
> /home/backup/bender/2005-09-08
> /home/backup/bender/2005-09-08/bender.2005-09-08.daily.tar.gz.nc
> /home/backup/bender/2005-09-07
> /home/backup/bender/2005-09-07/bender.2005-09-07.daily.tar.gz.nc
> /home/backup/bender/2005-09-06
> /home/backup/bender/2005-09-06/bender.2005-09-06.weekly.tar.gz.nc
> /home/backup/bender/2005-09-05
> /home/backup/bender/2005-09-05/bender.2005-09-05.monthly.tar.gz.nc
> /home/backup/bender/etc
> /home/backup/bender/etc/inclist.daily
> /home/backup/bender/etc/filelist
> /home/backup/bender/etc/inclist.monthly
> /home/backup/bender/etc/inclist.weekly
>=20
> I think this is it. Why is /home/backup included in filelist if i
> have "skip =3D on" in my config???
This patch adds your backup path to the exclude list:
Index: src/hdup.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- src/hdup.c (revision 128)
+++ src/hdup.c (working copy)
@@ -574,6 +574,11 @@
host[which]->exclude[c] =3D host[0]->exclude[c];
}
}
+ if (host[which]->skip =3D=3D 1) {
+ /* include backup directory in the excludes */
+ /* -> archive has a slash at the end (quarenteed) */
+ host[which]->exclude[c] =3D host[which]->archive;
+ }
/* check algorithm and key path, both must be set, or none */
if ( ( host[which]->alg =3D=3D NULL && host[which]->keypath !=3D NU=
LL ) ||
> Again thanks for answers, i try to add /home/backup to exclude as
> temporary solution.=20
I'm gonna kill 'skip' as a keyword, because IMO it makes no sense.
grtz Miek
--4ZLFUWh1odzi/v6L
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
iD8DBQFDIqa+w7f5Q7GEU6ERAhcPAJ9Z+9M9F/cvVu+xzQ1iOqbOASV21QCdFlYv
BG45gQ1ltXVRVEYFc/GoHao=
=3Z/x
-----END PGP SIGNATURE-----
--4ZLFUWh1odzi/v6L--