Making a backup of config files rpmconfigcheck output (was: Viewing rpmconfigcheck output:)
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sunday, 2024-02-11 at 17:05 -0600, -pj via openSUSE Users wrote:
Hi, I was reading a post here (if interested): https://forums.opensuse.org/t/do-i-have-to-babysit-updates-and-other-questio...
I decided to then pass rpmconfigcheck in Konsole.
For those interested, I have a script that makes a backup of the files listed by rpmconfigcheck. I have a directory named ~/Upgrades. Inside, I create a directory named, for example, "From_154_to_155". I cd there and run the script "rpmconfigcheck_make_copy": #!/bin/bash echo "Will make a backup copy of files listed in /var/adm/rpmconfigcheck into the current directory." echo "Make sure we are in an appropriate directory and press enter, else ^C" read while read FILES ; do DEST=`echo "$FILES" | tr '[/]' '_'` base=`basename "$FILES"` stem=${base%.*} extension=${base##*.} dirname=`dirname "$FILES"` ORIG=$dirname/$stem DEST2=`echo "$ORIG" | tr '[/]' '_'` #echo "$FILES" "--\>" "$DEST === $dirname % $base % $stem % $extension" "--\>" $ORIG echo "$FILES" "--\>" "$DEST === $ORIG" "--\>" $DEST2 #/etc/zypp/zypp.conf.rpmnew --\> _etc_zypp_zypp.conf.rpmnew === /etc/zypp/zypp.conf --\> _etc_zypp_zypp.conf #/usr/share/info/dir.rpmnew --\> _usr_share_info_dir.rpmnew === /usr/share/info/dir --\> _usr_share_info_dir #/var/lib/scpm/active_groups.rpmsave --\> _var_lib_scpm_active_groups.rpmsave === /var/lib/scpm/active_groups --\> _var_lib_scpm_active_groups if [ -f "$ORIG" ]; then cp "$ORIG" "$DEST2" else echo "ORIGINAL: $FILES does not exist or is not regular file" ls -l "$FILES" fi if [ -f "$FILES" ]; then cp "$FILES" "$DEST" else echo "RPM: $FILES does not exist or is not regular file" ls -l "$FILES" fi done < /var/adm/rpmconfigcheck - -- Cheers, Carlos E. R. (from openSUSE 15.5 x86_64 at Telcontar) -----BEGIN PGP SIGNATURE----- iHoEARECADoWIQQZEb51mJKK1KpcU/W1MxgcbY1H1QUCZcp/8Rwccm9iaW4ubGlz dGFzQHRlbGVmb25pY2EubmV0AAoJELUzGBxtjUfVzPUAnjEQLMuap6EBJY82fva8 bSSL2VuAAJ9wPHLqaVaSlnW3uFZ/gPvRJ60wgA== =kQs1 -----END PGP SIGNATURE-----
Hello, In the Message; Subject : Making a backup of config files rpmconfigcheck output (was: Viewing rpmconfigcheck output:) Message-ID : <09053c86-c16b-8a8b-8c1b-1d630b4b2b30@telefonica.net> Date & Time: Mon, 12 Feb 2024 21:30:40 +0100 (CET) [CER] == "Carlos E. R." <robin.listas@telefonica.net> has written: CER> On Sunday, 2024-02-11 at 17:05 -0600, -pj via openSUSE Users wrote: CER> > Hi, I was reading a post here (if interested): CER> > https://forums.opensuse.org/t/do-i-have-to-babysit-updates-and-other-questio... CER> > CER> > I decided to then pass rpmconfigcheck in Konsole. CER> For those interested, I have a script that makes a backup of the CER> files listed by rpmconfigcheck. CER> I have a directory named ~/Upgrades. Inside, I create a directory named, for CER> example, "From_154_to_155". I cd there and run the script CER> "rpmconfigcheck_make_copy": CER> #!/bin/bash CER> echo "Will make a backup copy of files listed in /var/adm/rpmconfigcheck into the current directory." CER> echo "Make sure we are in an appropriate directory and press enter, else ^C" CER> read CER> while read FILES ; do CER> DEST=`echo "$FILES" | tr '[/]' '_'` [..] CER> done < /var/adm/rpmconfigcheck Thanks. I could see your unique environment and thought it was very different from mine. By the way, I noticed this; CER> #/var/lib/scpm/active_groups.rpmsave --\> Where did you get this scpm from? Best Regards. --- ┏━━┓彡 野宮 賢 mail-to: nomiya @ lake.dti.ne.jp ┃\/彡 ┗━━┛ "In his book Survival of the Richest, media theorist Douglass Rushkoff describes meeting with a group of billionaire preppers who bombarded him with questions about how best to configure their bunkers to survive the end times." -- Inside Mark Zuckerberg’s Top-Secret Hawaii Compound --
On 2024-02-16 00:55, Masaru Nomiya wrote:
Hello,
In the Message;
Subject : Making a backup of config files rpmconfigcheck output (was: Viewing rpmconfigcheck output:) Message-ID : <09053c86-c16b-8a8b-8c1b-1d630b4b2b30@telefonica.net> Date & Time: Mon, 12 Feb 2024 21:30:40 +0100 (CET)
[CER] == "Carlos E. R." <robin.listas@telefonica.net> has written:
CER> On Sunday, 2024-02-11 at 17:05 -0600, -pj via openSUSE Users wrote:
CER> > Hi, I was reading a post here (if interested): CER> > https://forums.opensuse.org/t/do-i-have-to-babysit-updates-and-other-questio... CER> > CER> > I decided to then pass rpmconfigcheck in Konsole.
CER> For those interested, I have a script that makes a backup of the CER> files listed by rpmconfigcheck.
CER> I have a directory named ~/Upgrades. Inside, I create a directory named, for CER> example, "From_154_to_155". I cd there and run the script CER> "rpmconfigcheck_make_copy":
CER> #!/bin/bash
CER> echo "Will make a backup copy of files listed in /var/adm/rpmconfigcheck into the current directory." CER> echo "Make sure we are in an appropriate directory and press enter, else ^C" CER> read
CER> while read FILES ; do CER> DEST=`echo "$FILES" | tr '[/]' '_'` [..] CER> done < /var/adm/rpmconfigcheck
Thanks.
I could see your unique environment and thought it was very different from mine.
By the way, I noticed this;
CER> #/var/lib/scpm/active_groups.rpmsave --\>
Where did you get this scpm from?
Ah, that was a comment in the script. A sample output the year I wrote the script; that was 2019 or earlier. I see it was installed on 12.1 or 12.3 I see I still have a copy of the rpm: /data/storage_c/repositorios_zypp/15_1/OBS_KDE_KDE3/x86_64/scpm-1.1.7-lp151.21.5.x86_64.rpm It is not currently installed, but I still have: /etc/sysconfig/scpm /var/lib/scpm /var/lib/scpm/journal I definitely used scpm in the laptop while it was supported. But this machine is a desktop. -- Cheers / Saludos, Carlos E. R. (from 15.5 x86_64 at Telcontar)
Hello, In the Message; Subject : Re: Making a backup of config files rpmconfigcheck output (was: Viewing rpmconfigcheck output:) Message-ID : <a7e51ad0-1ab5-4c29-b2fe-7225b9fb08e9@telefonica.net> Date & Time: Fri, 16 Feb 2024 14:24:20 +0100 [CER] == "Carlos E. R." <robin.listas@telefonica.net> has written: [...] MN> > By the way, I noticed this; CER> >> #/var/lib/scpm/active_groups.rpmsave --\> MN> > Where did you get this scpm from? CER> Ah, that was a comment in the script. A sample output the year I wrote the CER> script; that was 2019 or earlier. I see it was installed on 12.1 or 12.3 CER> I see I still have a copy of the rpm: CER> /data/storage_c/repositorios_zypp/15_1/OBS_KDE_KDE3/x86_64/scpm-1.1.7-lp151.21.5.x86_64.rpm CER> It is not currently installed, but I still have: CER> /etc/sysconfig/scpm CER> /var/lib/scpm CER> /var/lib/scpm/journal CER> I definitely used scpm in the laptop while it was supported. But CER> this machine is a desktop. Ah, I see. Thanks. Best Regards. --- ┏━━┓彡 野宮 賢 mail-to: nomiya @ lake.dti.ne.jp ┃\/彡 ┗━━┛ "Maddox hopes that empowering users to pick their own algorithms will get them to think more about what’s involved in making them. " -- Bluesky's Custom Algorithms Could Be the Future of Social Media --
participants (2)
-
Carlos E. R.
-
Masaru Nomiya