System upgrade: backup files?

Hi,
I think to remember that openSUSE creates a backup of the configuration files when doing a system upgrade. Anyone an idea where this is stored?

TIA!

Not to my knowledge.

You better take at least a backup of all inside /etc if you want to consult what you had before the upgrade.

On 2013-03-11 17:36, DocB wrote:
>
> Hi,
> I think to remember that openSUSE creates a backup of the configuration
> files when doing a system upgrade. Anyone an idea where this is stored?

There is “/var/adm/backup/”. However, many of those tar backups are
empty, thus useless.


Cheers / Saludos,

Carlos E. R.
(from 11.4, with Evergreen, x86_64 “Celadon” (Minas Tirith))

On 03/11/2013 05:36 PM, DocB wrote:
> I think to remember that openSUSE creates a backup of the configuration
> files when doing a system upgrade.

no, “openSUSE” doesn’t do that, and never has (well, not since 9.x
anyway)…

backing up configs (and data, etc) is clearly a job for the
administrator when upgrading…which is why you will see instructions
to take backups early in the list of things to do in every openSUSE
upgrade how-to:
http://tinyurl.com/35p966c
http://tinyurl.com/93uemsr
http://tinyurl.com/7l4m2td


dd
openSUSE®, the “German Engineered Automobile” of operating systems!

On Tue, 12 Mar 2013 19:47:40 +0000, dd wrote:

> no, “openSUSE” doesn’t do that, and never has (well, not since 9.x
> anyway)…

In some cases, it actually does the opposite - installs a package, sees
the config file already exists, and creates a new config file with an
extension “rpmnew” so the admin can manually update it if necessary (or
see what new defaults are in place).

Jim


Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

IIRC this is also done by some packages if one performs a system upgrade through dvd or zypper dup.

On 03/12/2013 08:55 PM, Jim Henderson wrote:
>
> extension “rpmnew”

oh! that is cool…i didn’t know that (and love to learn)…WAIT, are
we talking openSUSE or SLE_ does that??

because, (i’ve never looked for it, but) i do not recall an rpmnew!

WOW, see here:


denverd@linux-os114:~> locate rpmnew
/etc/zypp/zypp.conf.rpmnew
denverd@linux-os114:~>

still, that would leave me with hundreds and hundreds of configs
needing my backup attention prior to an upgrade. . .


dd

On Tue, 12 Mar 2013 20:38:41 +0000, dd wrote:

> oh! that is cool…i didn’t know that (and love to learn)…WAIT, are we
> talking openSUSE or SLE_ does that??

Well, we’re in the openSUSE forums, so I think that /probably/ answers
your question. :wink:

Jim

Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

On 2013-03-12 21:38, dd wrote:
> On 03/12/2013 08:55 PM, Jim Henderson wrote:
>>
>> extension “rpmnew”
>
> oh! that is cool…i didn’t know that (and love to learn)…WAIT, are we
> talking openSUSE or SLE_ does that??

Neither :slight_smile:

It is an RPM feature. The system upgrade Offline method) wiki documents
it. There are rpmnew and rpmsave files. The boot script
“rcrpmconfigcheck” generates a list of those files and stores it on
“/var/adm/rpmconfigcheck”.

>
> because, (i’ve never looked for it, but) i do not recall an rpmnew!
>
> WOW, see here:
>


> denverd@linux-os114:~> locate rpmnew
> /etc/zypp/zypp.conf.rpmnew
> denverd@linux-os114:~>
> 

>
> still, that would leave me with hundreds and hundreds of configs needing
> my backup attention prior to an upgrade. . .

Not only after a system upgrade, but even during normal YaST Online
Updates those config files are altered and those copies generated. If
you booted in text mode you would see the service that finds those files
listing them on the boot display. But as everybody boots into graphical
mode nobody sees the warnings…

>:-)


Cheers / Saludos,

Carlos E. R.
(from 11.4, with Evergreen, x86_64 “Celadon” (Minas Tirith))

On 2013-03-12 20:47, dd wrote:
> On 03/11/2013 05:36 PM, DocB wrote:
>> I think to remember that openSUSE creates a backup of the configuration
>> files when doing a system upgrade.
>
> no, “openSUSE” doesn’t do that, and never has (well, not since 9.x
> anyway)…

It does :slight_smile:

Have a look at the directory “/var/adm/backup/”. If you did an offline
upgrade you will see at least a full tarred backup of the sysconfig
directory. Not the entire /etc, just some parts.

However, many of those tar archives are empty. It is probably a bug,
which I have not reported properly as I don’t know exactly what creates
them.


Cheers / Saludos,

Carlos E. R.
(from 11.4, with Evergreen, x86_64 “Celadon” (Minas Tirith))