Antynea / grub-btrfs

Include btrfs snapshots at boot options. (Grub menu)
GNU General Public License v3.0
688 stars 73 forks source link

How do I delete the btrfs-grub I installed & configured for Timeshift? #304

Closed bmullan closed 5 months ago

bmullan commented 8 months ago

For using Timeshift with btrfs-grub on Ubuntu 22.04 I had to install from Source.

Now I am trying to switch from Timeshift & btrfs-grub to Snapper & btrfs-grub but to make this change how do I delete the btrfs-grub I installed & configured for Timeshift?

I've done quite a bit of searching with no results for doing this on Ubuntu. But is it as simple as:

cd grub-btrfs
sudo make uninstall

Thanks for any hints...

Schievel1 commented 8 months ago

Sorry I have a hard time figuring out what exactly you're up to.

You don't need to uninstall grub btrfs to configure it for snapper. You only need to change the config accordingly.

What did you configure in grub-btrfs to make it work with timeshift?

bmullan commented 8 months ago

On Tue, Oct 24, 2023, 10:36 AM Pascal J @.***> wrote:

Sorry I have a hard time figuring out what exactly you're up to.

You don't need to uninstall grub btrfs to configure it for snapper. You only need to change the config accordingly.

What did you configure in grub-btrfs to make it work with timeshift?

I got everything working.

The guide I was following advised that if you'd previously installed timeshift & btrfs.. there were additional config changes you had to make.

That guide's author recommended to uninstall grub-btrfs to remove the timeshift changes then reinstall for use with snapper.

Message ID: @.***>

Schievel1 commented 8 months ago

Can you link the guide? Then I can figure out what you need to change to make it work with snapper.

bmullan commented 8 months ago

First I did get all this working with snapper, snapper-gui, grub-btrfs!

Here are links to the 2 Guides I used. Both articles are by the same person.

================================================================

Note: The following Guide's steps are for install/config for an Ubuntu system and

I followed this Guide to install Timeshift, Grub-btrfs, and also auto-apt snapshot capability on my Ubuntu 22.04:

https://www.lorenzobettini.it/2022/10/timeshift-and-grub-btrfs-in-ubuntu/ https://www.lorenzobettini.it/2022/10/timeshift-and-grub-btrfs-in-ubuntu/

Also installed & configured/setup:

grub-btrfs https://github.com/Antynea/grub-btrfs timeshift-autosnap-apt https://github.com/wmutschl/timeshift-autosnap-apt

The Timeshift Solution worked really well snapshotting System Boot-ups, all "apt install some-app" actions and supported both scheduled & on-demand snapshots/restores.

Timeshift is now Maintained by the Linux Mint org.

================================================================= Note: The following Guide's steps are for installation/configuration on an Arch system

I first followed this similar Guide for Snapper etc https://www.lorenzobettini.it/2023/03/snapper-and-grub-btrfs-in-arch-linux/#comments and used his recommendations on removing the previous Timeshift, grub-btrfs & reversing a few changes made & then installation of Snapper, Snapper-gui, grub-btrfs etc

Note in this Snapper Guide where he says, concerning any previous install of Timeshift etc:

If you already have grub-btrfs because you use it with Timeshift (e.g., with the procedure described in one of my previous posts https://www.lorenzobettini.it/2022/07/timeshift-and-grub-btrfs-in-linux-arch/), it’s better to remove the package so that it will also remove possible enabled services and the custom configurations for timeshift:

sudo pacman -R grub-btrfs # note pacman because of Arch linux.

If you were using Timeshift, you also provided a custom configuration for grub-btrfsd, which is not automatically removed during the previous command. The files must be removed explicitly:

sudo rm /etc/systemd/system/grub-btrfsd.service sudo rm /etc/systemd/system/multi-user.target.wants/grub-btrfsd.service

Also, remove timeshift and timeshift-autosnap

sudo pacman -R timeshift timeshift-autosnap

If you don’t do that now, you will be asked to do that when installing the packages for snapper anyway.

Both of these Guides were well written IMHO. I wanted to try both the Timeshift & Snapper solutions so I could compare ease of use and implemented capabilities & features.

Brian

On Wed, Oct 25, 2023, 1:20 AM Pascal J @.***> wrote:

Can you link the guide? Then I can figure out what you need to change to make it work with snapper.

— Reply to this email directly, view it on GitHub https://github.com/Antynea/grub-btrfs/issues/304#issuecomment-1778532030, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAM23JZWHCYIJWJU7W4PZ2LYBCOQTAVCNFSM6AAAAAA6NVJLQ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONZYGUZTEMBTGA . You are receiving this because you authored the thread.Message ID: @.***>

Schievel1 commented 8 months ago

well if it works: no need to reinstall