Re: postrun umount and LOCK file clearing doesn't work

Tom Goulet <[email protected]> Mon, 5 May 2003 16:16:08 +0000
Newsgroups gmane.comp.sysutils.backup.hdup.devel
Message-ID <[email protected]>
--yLVHuoLXiP9kZBkt
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

> Subject: Re: [hdup-dev] postrun umount and LOCK file clearing doesn't work

Variant on this is that mounting using "prerun" doesn't fly.

> > When I use Hdup I have it mount and unmount the /backup/ filesystem in
> > its pre and post commands.  Like this:
> > [DEBUG] postrun: [umount /backup]

I want to mount the /backup filesystem as part of the "prerun" commands.
This doesn't currently work because Hdup is looking for the previous
backup list before running the "prerun" commands.  Would it be okay of
the "prerun" commands were run before locking and before looking for the
previous backup list?

root@nova:~# cat /etc/hdup/hdup.conf
[global]
archive dir =3D /backup
user =3D operator
compression =3D gzip
proto =3D /usr/bin/scp
tar =3D /bin/tar
overwrite =3D yes

[nova]
dir =3D /
exclude =3D /proc, /extra, /backup, /mnt/giant, /floppy, /cdrom, /dev/pts
prerun =3D mount /backup
postrun =3D umount /backup

root@nova:~#

root@nova:~# hdup daily nova
hdup: No -c switch using default configfile: /etc/hdup/hdup.conf.
hdup: No mcrypt path given, defaulting to: /usr/bin/mcrypt.
hdup: No lockfile found.

Hdup version.:  1.6.10

Host.........:  nova
Date.........:  05-05-2003
Status.......:  could not find previous backup list

root@nova:~#

--=20
Tom Goulet, [email protected], D8BAD3BC, http://web.em.ca/~tomg/contact.html
Internet mail politeness requires using only plain text, disallowing advert=
ising
footers, interspersing replies in quoted text, trimming quoted text not nee=
ded
to show context, and keeping lines unbroken.

--yLVHuoLXiP9kZBkt
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+to5Ieft5KNi607wRAjkeAJ9YFk+I5WFzSbUrnq3ez7wZEHP65gCfbTM2
w9veTED8ia2zDkzGvUK2XOg=
=O7XR
-----END PGP SIGNATURE-----

--yLVHuoLXiP9kZBkt--