* [gentoo-portage-dev] Suggestion: Backup option in make.conf
@ 2005-10-15 4:28 Rafael Fernández López
2005-10-15 4:40 ` Brian Harring
2005-10-15 8:53 ` Michiel de Bruijne
0 siblings, 2 replies; 4+ messages in thread
From: Rafael Fernández López @ 2005-10-15 4:28 UTC (permalink / raw
To: gentoo-portage-dev
[-- Attachment #1: Type: text/plain, Size: 908 bytes --]
Hi,
My suggestion for portage is: when you do an "emerge -vuD world", you have
to work at the end of the emerging with the /etc config files and see the
differences to know if you want to overwrite file by file or not.
Well, what I want is to have a backup of all them (one backup, and only
one). For that goal, it can be used a new option in make.conf like
"backup_etc_files=yes" if you want to turn this on.
By turning this on, an "emerge -vuD world" can be done in one shot, I mean,
you can do an emerge -vuD world, and all the files could be replaced
(overwrited) by the new ones (etc-update), but you'll be able to access to
your backups if anything is wrong, so you don't have to go file by file
looking at the differences between them.
I suggest to name them "whatever.conf" (our original file) ==> "
whatever.conf.backup" (our backuped file)
Thanks,
Rafael Fernández López.
[-- Attachment #2: Type: text/html, Size: 1008 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-portage-dev] Suggestion: Backup option in make.conf
2005-10-15 4:28 [gentoo-portage-dev] Suggestion: Backup option in make.conf Rafael Fernández López
@ 2005-10-15 4:40 ` Brian Harring
2005-10-15 8:53 ` Michiel de Bruijne
1 sibling, 0 replies; 4+ messages in thread
From: Brian Harring @ 2005-10-15 4:40 UTC (permalink / raw
To: gentoo-portage-dev
[-- Attachment #1: Type: text/plain, Size: 1283 bytes --]
On Sat, Oct 15, 2005 at 06:28:53AM +0200, Rafael Fern?ndez L?pez wrote:
> Hi,
> My suggestion for portage is: when you do an "emerge -vuD world", you
> have to work at the end of the emerging with the /etc config files and
> see the differences to know if you want to overwrite file by file or
> not.
> Well, what I want is to have a backup of all them (one backup, and
> only one). For that goal, it can be used a new option in make.conf
> like "backup_etc_files=yes" if you want to turn this on.
> By turning this on, an "emerge -vuD world" can be done in one shot, I
> mean, you can do an emerge -vuD world, and all the files could be
> replaced (overwrited) by the new ones (etc-update), but you'll be able
> to access to your backups if anything is wrong, so you don't have to
> go file by file looking at the differences between them.
> I suggest to name them "whatever.conf" (our original file) ==>
> "whatever.conf.backup" (our backuped file)
This breaks down pretty quickly... a peacemeal pam upgrade, for
example can result in you locked out of your system.
Baselayout updates to /etc/passwd can accomplish the same thing, and
not accounting for /etc/fstab resulting in an unbootable system...
~harring
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-portage-dev] Suggestion: Backup option in make.conf
2005-10-15 4:28 [gentoo-portage-dev] Suggestion: Backup option in make.conf Rafael Fernández López
2005-10-15 4:40 ` Brian Harring
@ 2005-10-15 8:53 ` Michiel de Bruijne
2005-10-15 14:21 ` Rafael Fernández López
1 sibling, 1 reply; 4+ messages in thread
From: Michiel de Bruijne @ 2005-10-15 8:53 UTC (permalink / raw
To: gentoo-portage-dev
On Saturday 15 October 2005 06:28, Rafael Fernández López wrote:
> By turning this on, an "emerge -vuD world" can be done in one shot, I mean,
> you can do an emerge -vuD world, and all the files could be replaced
> (overwrited) by the new ones (etc-update), but you'll be able to access to
> your backups if anything is wrong, so you don't have to go file by file
> looking at the differences between them.
Like Brian already said this behaviour will definitely break your system. If
you want to backup "etc-updates" and want to minimize the number of files you
need to evaluate you should use dispatch-conf instead of etc-update.
dispatch-conf is part of portage and with rcs (version control system)
integration you have automatically backups of you conf-files. It's also
possible to;
- automerge files comprising only CVS interpolations (e.g. Header or Id)
- automerge files comprising only whitespace and/or comments
- automerge files that the user hasn't modified
After a while the only files you need tot evaluate are the ones that will
break your system (examples given by Brian) or change the behaviour of your
system in a way you don't want (e.g. change your hostname).
--
gentoo-portage-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-portage-dev] Suggestion: Backup option in make.conf
2005-10-15 8:53 ` Michiel de Bruijne
@ 2005-10-15 14:21 ` Rafael Fernández López
0 siblings, 0 replies; 4+ messages in thread
From: Rafael Fernández López @ 2005-10-15 14:21 UTC (permalink / raw
To: gentoo-portage-dev
[-- Attachment #1: Type: text/plain, Size: 1611 bytes --]
OK, it was just a suggestion. Thanks for your readings !!!
Bye,
Rafael Fernández López.
2005/10/15, Michiel de Bruijne <m.debruijne@hccnet.nl>:
>
> On Saturday 15 October 2005 06:28, Rafael Fernández López wrote:
>
> > By turning this on, an "emerge -vuD world" can be done in one shot, I
> mean,
> > you can do an emerge -vuD world, and all the files could be replaced
> > (overwrited) by the new ones (etc-update), but you'll be able to access
> to
> > your backups if anything is wrong, so you don't have to go file by file
> > looking at the differences between them.
>
> Like Brian already said this behaviour will definitely break your system.
> If
> you want to backup "etc-updates" and want to minimize the number of files
> you
> need to evaluate you should use dispatch-conf instead of etc-update.
>
> dispatch-conf is part of portage and with rcs (version control system)
> integration you have automatically backups of you conf-files. It's also
> possible to;
> - automerge files comprising only CVS interpolations (e.g. Header or Id)
> - automerge files comprising only whitespace and/or comments
> - automerge files that the user hasn't modified
>
> After a while the only files you need tot evaluate are the ones that will
> break your system (examples given by Brian) or change the behaviour of
> your
> system in a way you don't want (e.g. change your hostname).
>
> --
> gentoo-portage-dev@gentoo.org mailing list
>
>
--
Saludos,
Rafael Fernández López.
"A la vista de suficientes ojos todos los errores resultan evidentes" -
Linus Torvalds
[-- Attachment #2: Type: text/html, Size: 1983 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-10-15 14:22 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-15 4:28 [gentoo-portage-dev] Suggestion: Backup option in make.conf Rafael Fernández López
2005-10-15 4:40 ` Brian Harring
2005-10-15 8:53 ` Michiel de Bruijne
2005-10-15 14:21 ` Rafael Fernández López
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox