• Re: [gentoo-user] Re: Reinstall

    From Michael@21:1/5 to All on Sun Jun 19 18:32:55 2022
    On Sunday, 19 June 2022 18:22:34 BST Grant Edwards wrote:
    On 2022-06-19, Francisco Ares <frares@gmail.com> wrote:
    Just for the sake of preventing a future failure, besides personal
    files (minimum and obvious) the "world" file and the binary packages,
    built along with the package installation, what else should I backup
    so that I would be able to quickly restore the same full working
    Gentoo in a new hardware without having to work from stage3 up? The
    portage tree is one of those items, for sure. But what else?

    Make a backup copy of everything under /etc.

    I used to try to backup individual /etc/... files that I would need,
    but I always forgot something.

    --
    Grant

    Yes, besides /var/lib/portage/world and /etc/ you may also want to back up
    your /boot and kernel config, assuming the hardware (MoBo & peripherals) is the same (same drivers). I wouldn't bother backing up portage, a resync will download it afresh. You might want to save /distfiles if you're on a slow Internet link, but it has to be a copy of the current versions, otherwise the latest version of each package source will have to be downloaded anyway.

    If you're running databases you'll also want to keep a backup of the
    respective /var/lib/*sql directory and if you're running a webserver /var/www/ * - but you would be aware of the need to keep a fresh backup of all this data anyway.
    -----BEGIN PGP SIGNATURE-----

    iQIzBAABCAAdFiEEXqhvaVh2ERicA8Ceseqq9sKVZxkFAmKvXccACgkQseqq9sKV ZxnBDRAAgcn6My5NR305g0awtIqBKSQQbOKUtQnDC17Eu41IhQ0pD6FQ//NQ/TlV r0O8hO/7dVOtzyddU6DatHOHILY5MWPjtiXvZUReLvPB/9qusXAGqN1IjW6kWr3G Hazoy6UBt2skMnsALPEsGa7QiK3Df5g7EwlRtCCwiCh5FGEI+MUp18gHXivPR5/P Wcl2QvY37igmWNz5W5cmUcNF27S4593BvG0DyuQhCMwbcz/iMgFA28G2XvDgVQNi eY9nZjcglXDTeFKLqx3Kqd4xwpKxaRvKmj/zLP1CivUeIwoU0+eA26hmXeAue5NV yn3hmrVU9UNqlTO0lLl3ja5WlgW3d/cG89fIlH7cNbCNUIf1F/j/GX8XCr4Bmqwi hrox/s4+AvyQAq3ASZZCzOn6HRSRRnOJViec4oQPpSVDy1B/1f7bnXxr3pOnW/h4 NVUId30p+/65eJd6OQzlxE8s3eOTCRO/ypLC3bBqvGsmU0tJmxnUhAOEjOW5mer5 Fkx38EuuXNLpra2prJVQDz6ItlMQJerGPEq5KhSsP5pFiRlBfJFVGdPCXhr0e374 YDmUDVJrfwJOp08ArJ3lEmtysa5fSRsqga0uwZokVIQZXYUrHwTDR+HzgANuIbJD 6q2kk6ubgHA3k8hZv1HLVOuUwBIS4FOmqbM6Zdkz/dOZ3wI/cHI=
    =On3U
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Grant Edwards@21:1/5 to Francisco Ares on Sun Jun 19 19:30:01 2022
    On 2022-06-19, Francisco Ares <frares@gmail.com> wrote:

    Just for the sake of preventing a future failure, besides personal
    files (minimum and obvious) the "world" file and the binary packages,
    built along with the package installation, what else should I backup
    so that I would be able to quickly restore the same full working
    Gentoo in a new hardware without having to work from stage3 up? The
    portage tree is one of those items, for sure. But what else?

    Make a backup copy of everything under /etc.

    I used to try to backup individual /etc/... files that I would need,
    but I always forgot something.

    --
    Grant

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Francisco Ares@21:1/5 to All on Sun Jun 19 20:10:01 2022
    Em dom., 19 de jun. de 2022 às 14:22, Grant Edwards <grant.b.edwards@gmail.com> escreveu:

    On 2022-06-19, Francisco Ares <frares@gmail.com> wrote:

    Just for the sake of preventing a future failure, besides personal
    files (minimum and obvious) the "world" file and the binary packages,
    built along with the package installation, what else should I backup
    so that I would be able to quickly restore the same full working
    Gentoo in a new hardware without having to work from stage3 up? The
    portage tree is one of those items, for sure. But what else?

    Make a backup copy of everything under /etc.

    I used to try to backup individual /etc/... files that I would need,
    but I always forgot something.

    --
    Grant





    Good point, thanks!

    Francisco

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Francisco Ares@21:1/5 to All on Sun Jun 19 20:30:01 2022
    Em dom., 19 de jun. de 2022 às 14:33, Michael
    <confabulate@kintzios.com> escreveu:

    On Sunday, 19 June 2022 18:22:34 BST Grant Edwards wrote:
    On 2022-06-19, Francisco Ares <frares@gmail.com> wrote:
    Just for the sake of preventing a future failure, besides personal
    files (minimum and obvious) the "world" file and the binary packages, built along with the package installation, what else should I backup
    so that I would be able to quickly restore the same full working
    Gentoo in a new hardware without having to work from stage3 up? The portage tree is one of those items, for sure. But what else?

    Make a backup copy of everything under /etc.

    I used to try to backup individual /etc/... files that I would need,
    but I always forgot something.

    --
    Grant

    Yes, besides /var/lib/portage/world and /etc/ you may also want to back up your /boot and kernel config, assuming the hardware (MoBo & peripherals) is the
    same (same drivers). I wouldn't bother backing up portage, a resync will download it afresh. You might want to save /distfiles if you're on a slow Internet link, but it has to be a copy of the current versions, otherwise the latest version of each package source will have to be downloaded anyway.

    If you're running databases you'll also want to keep a backup of the respective /var/lib/*sql directory and if you're running a webserver /var/www/
    * - but you would be aware of the need to keep a fresh backup of all this data
    anyway.

    Also good point, one can always do a "make oldconfig" on a new kernel
    to recover specific tweaks.

    Regarding backing up the portage tree, the binary packages won't do
    much if the last sync is, say, one or two months old or even worse if
    older. To use "emerge -K" one must have the same package version built
    in the binary package as the one present in portage. That's what I'm
    facing right now, it seems my binary packages won't be so helpful
    after all - I'm beginning to think I'll have to go back to stage-3...

    Thanks!
    Francisco

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Bill Kenworthy@21:1/5 to Francisco Ares on Mon Jun 20 07:10:01 2022
    ------75B5N5J7EB9FCRUXYPMJJGKZAPQH9G
    Content-Type: text/plain;
    charset=utf-8
    Content-Transfer-Encoding: quoted-printable

    I suggest either taking a full dd|bzip2 style backup of the hardisk to removable media for the simplest reinstall. Compliment with borgbackup or dervish for space efficient backups to capture more recent changes. Reinstall is the reverse .. lay down
    the dd image update from the backups with rsync. No need to get caught in messy install routines that will take a lot longer with an uncertain outcome. I have a few arm systems and seem to be doing it at least once a month as the sdcards reach their
    end of life.
    BillK


    On 20 June 2022 2:26:27 am AWST, Francisco Ares <frares@gmail.com> wrote:
    Em dom., 19 de jun. de 2022 às 14:33, Michael
    <confabulate@kintzios.com> escreveu:

    On Sunday, 19 June 2022 18:22:34 BST Grant Edwards wrote:
    On 2022-06-19, Francisco Ares <frares@gmail.com> wrote:
    Just for the sake of preventing a future failure, besides personal
    files (minimum and obvious) the "world" file and the binary packages,
    built along with the package installation, what else should I backup
    so that I would be able to quickly restore the same full working
    Gentoo in a new hardware without having to work from stage3 up? The
    portage tree is one of those items, for sure. But what else?

    Make a backup copy of everything under /etc.

    I used to try to backup individual /etc/... files that I would need,
    but I always forgot something.

    --
    Grant

    Yes, besides /var/lib/portage/world and /etc/ you may also want to back up >> your /boot and kernel config, assuming the hardware (MoBo & peripherals) is the
    same (same drivers). I wouldn't bother backing up portage, a resync will
    download it afresh. You might want to save /distfiles if you're on a slow >> Internet link, but it has to be a copy of the current versions, otherwise the
    latest version of each package source will have to be downloaded anyway.

    If you're running databases you'll also want to keep a backup of the
    respective /var/lib/*sql directory and if you're running a webserver /var/www/
    * - but you would be aware of the need to keep a fresh backup of all this data
    anyway.

    Also good point, one can always do a "make oldconfig" on a new kernel
    to recover specific tweaks.

    Regarding backing up the portage tree, the binary packages won't do
    much if the last sync is, say, one or two months old or even worse if
    older. To use "emerge -K" one must have the same package version built
    in the binary package as the one present in portage. That's what I'm
    facing right now, it seems my binary packages won't be so helpful
    after all - I'm beginning to think I'll have to go back to stage-3...

    Thanks!
    Francisco


    --
    Sent from my Android device with K-9 Mail. Please excuse my brevity. ------75B5N5J7EB9FCRUXYPMJJGKZAPQH9G
    Content-Type: text/html;
    charset=utf-8
    Content-Transfer-Encoding: quoted-printable

    <html><head></head><body>I suggest either taking a full dd|bzip2 style backup of the hardisk to removable media for the simplest reinstall. Compliment with borgbackup or dervish for space efficient backups to capture more recent changes. Reinstall is
    the reverse .. lay down the dd image update from the backups with rsync. No need to get caught in messy install routines that will take a lot longer with an uncertain outcome. I have a few arm systems and seem to be doing it at least once a month as
    the sdcards reach their end of life. <br>BillK<br><br><br><div class="gmail_quote">On 20 June 2022 2:26:27 am AWST, Francisco Ares &lt;frares@gmail.com&gt; wrote:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(
    204, 204, 204); padding-left: 1ex;">
    <pre dir="auto" c