So i want to take manual snapshot of my Opensuse Leap and not use automatic ones. I usually take 1 snapshot after installing the OS and then 1 after installing everything and customising everything

Please help i just started using opensuse and don’t want to use timeshift as it takes to much space.

Did you have a look at the built in snapshot management of openSUSE? Doesn’t it fit your needs?

It’s kind of difficult for me
i did try to follow a tutorial but i think it automatically makes snapshots

Hi everyone. Hi @hui. Despite having Openseuse as the main Linux system for over 18 months I have always had difficulty managing snapper. I tried for a long time, even if in an occasional way, Linux Mint with BTRFS and Timeshift and the manual management of the snappers would be clearly preferable to me. I have never asked how to disable the automatic snapper and how to make manual snappers. I have avoided because it always seems to me, like noob, to be inappropriate. I tried to follow the guide (which for my skills is too complex) with the final result of compromising the OS. So I will continue to adapt to using the default settings and cleaning the snapper weekly …
sudo snapper cleanup number && snapper set-config SPACE_LIMIT=0.2 NUMBER_LIMIT=2-6 NUMBER_LIMIT_IMPORTANT=4

1 Like

so did your problem get solved?

Hi @rszdev
In the end with the cli commands I left the system in automatic…

1 Like

I am by no mean an expert, but I would do it as follows:

sudo snapper -c root create --description “default fresh install”

After the first boot or the first use of zypper update, and before setting things up.

And then I would use the same command later, after setting things up, but with another description.

–description

for example:

sudo snapper -c root create --description "fresh setup”

To check, wether snapper made the snapshots, you can either check when booting up, or use the command:

sudo snapper ls

edit: sorry for the weird formatting, am writing from my phone and haven’t figured out how to format correctly, buttons are missing.

1 Like

Hello @CopepodLover
thanks for the advice. But I can’t continually install new OS. For my limited possibilities I leave the standard configuration. Then periodically: sudo snapper cleanup number && sudo snapper set-config SPACE_LIMIT=0.2 NUMBER_LIMIT=2-6 NUMBER_LIMIT_IMPORTANT=4
Thanks again
mauro

I can understand that. I personally leave it as is too, it always worked fine.

For anything else, as far as I know, you can use following commands to disable snapshots on boot (if those are enabled).

sudo systemctl disable snapper-boot.timer

To set a limited number of snapshots (here 10), you can use:

sudo snapper -c root set-config “NUMBER_LIMIT=10”

sudo snapper -c root set-config “NUMBER_LIMIT_IMPORTANT=10”

2 Likes

You can also manually edit this file to change the cleanup frequency:

sudo nano /lib/systemd/system/snapper-timeline.timer

Say you want to have it run every five minutes, you could add:

[Timer]
OnCalendar=
OnCalendar=*:0/5

And you would have to change the following value in snapper-cleanup.timer to hours, instead of days:

[Timer]
OnUnitActiveSec=1h

@rszdev This is your first post! Welcome to the forum!

Don’t be scared to ask. I am also a bit intimidated, because I am no expert and do not know that much. But questions are what this forum is for. And it’s better to ask, than to break your system. I already asked some “dumb” questions here too… In the end, we have to start somwhere if we want to learn, don’t we?

Also, this is one of the reason, I felt really at home on the distro and in this community everyone is very friendly. :upside_down_face:

1 Like

Thanks so does this mean the auto updates are off or what?

Thanks :heart: Man

No, normally they aren’t. (You mean the auto-snapshots, right?)

If you want to verify, just list them all using:
sudo snapper ls and then you take note of the last one. Then install a package you wanted to install or update your packages, and if your system has anything changing in it’s package composition it should take a snapshot (or that’s at least what I think). You can check by running sudo snapper ls again and see if a new snapshot got created.

1 Like

Also if you follow my guide above, you should be able to take a manual snapshot. Just try it out and see if it works.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.