You are not logged in.

#1 2024-03-16 23:04:44

dulhaver
Member
Registered: 2023-08-17
Posts: 14

snapper config for /home

I want to create a snapshot for my home subvol (which I haven't worked with much)

what is a little weird is the below

sudo snapper list-configs
Config | Subvolume
-------+----------
root   | /  
sudo snapper create-config /home
Creating config failed (config already exists).
sudo ls -la /home/.snapshots
total 0
drwxr-xr-x 1 root root 32 Jan 22 18:27 1
sudo ls -l /etc/snapper/configs/
total 4
-rw-r----- 1 root root 1506 Jan 22 15:57 root

So there seems to be a config known to snapper, even though no config file in etc/snapper/configs  exists

1. what am I missing here?
2. I do not care about the content of the 1 existing snapshot for /home, so is it safe to just delete the config for home and re-creating it?

or can I just copy the /root config and adjust it to fit my needs for /home?

Last edited by dulhaver (2024-03-16 23:08:21)

Offline

#2 2024-04-16 06:47:15

lebotdufutur
Member
Registered: 2024-04-16
Posts: 2

Re: snapper config for /home

Hello dulhaver.
In reality, you have no home configuration.
Your root configuration is snapper's default config and if you don't specify a config with snapper, it will take root. To create a config for home, you need to specify the config name.

sudo snapper -c home create-config /home

Then, as soon as you want to use snapper for home, you have to specify it, for example to create a snapshot:

sudo snapper -c home create --type single --cleanup-algorithm number --description 'backup_home'

Then your snapshots will be created in /home and not in the root. I recently tried all this, but unfortunately I couldn't get back to a previous snapshot for the home config.

Offline

Board footer

Powered by FluxBB