Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Nov 2005 15:14:42 +0100
From:      Gerhard Schmidt <estartu@augusta.de>
To:        "Andrew P." <infofarmer@gmail.com>
Cc:        freebsd-ports@FreeBSD.ORG
Subject:   Re: Policy for dealing with webapps' datafiles?
Message-ID:  <20051114141442.GA64766@augusta.de>
In-Reply-To: <cb5206420511140503k6fd50244l82373b2d21023b86@mail.gmail.com>
References:  <cb5206420511140503k6fd50244l82373b2d21023b86@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--tThc/1wpZn/ma/RB
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Nov 14, 2005 at 04:03:46PM +0300, Andrew P. wrote:
> Many applications, particularly web applications,
> store data in xml, text or binary files. They come
> with an initial set of files, so that we can start
> using them right away - without the need to create
> anything (which might even be unsupported).
>=20
> So, you install a forum, a calendar or something
> else, use it, like it - but when you run portupgrade
> all your data is gone.
>=20
> It seems that the most harmless way to deal with
> it is to leave potentially valuable files untouched
> during deinstall, and echo a message about it. It's
> ugly and reminds me of debian apt, but we've got
> to deal with it one way or another.
>=20
> Does anyone have a bright idea about this? I
> searched some mailing lists, but never saw one
> big discussion on this.

Some Ports install this files as .sample files and copy them to their name
if they don't exist. On deinstall only the .sample file is deinstalled
and on reinstall the new file will be installed as .sample and your old=20
file will stay in place, and no data is lost.=20

I think this is a very elegant way to handle such problems.=20

Bye
	Estartu

----------------------------------------------------------------------------
Gerhard Schmidt    | Nick : estartu      IRC : Estartu  |
Fischbachweg 3     |                                    |  PGP Public Key
86856 Hiltenfingen | EMail: estartu@augusta.de          |  on request=20
Germany            | 					| =20

--tThc/1wpZn/ma/RB
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: PGP 6.5.8

iQCVAwUBQ3ib0Azx22nOTJQRAQE4aQP/dh8QReJzsVQptHuYd5u/AXoPD/qd1L6k
16dojWDMvDNJnLHRGh47EKzmgh1EP1f3GXVRRMIHZ9qY3Y0ZljuDKKJqFuJfQH5G
xW1+9Zog60n5rZu3l62htPM3f4yRo8NbhqQFKzITV4KZE2wWyHNcrrdXzQ/dpuKp
ccX5C+I8cFU=
=ozMo
-----END PGP SIGNATURE-----

--tThc/1wpZn/ma/RB--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051114141442.GA64766>