Nixpkgs: snapper: Doesn't take snapshots

Created on 4 Feb 2018  路  4Comments  路  Source: NixOS/nixpkgs

Issue description

I'm using snapper on btrfs and it doesn't seem to take automatic snapshots, even though the services seem to be running and the timer is working. I'm not sure what other info I can give you.

It does, however, take snapshots manually.

Steps to reproduce

Install snapper, add configuration to whatever.nix.

Technical details

  • system: "x86_64-linux"
  • host os: Linux 4.9.78, NixOS, 17.09.2905.c1d9aff56e0 (Hummingbird)
  • multi-user?: yes
  • sandbox: no
  • version: nix-env (Nix) 1.11.16
  • channels(root): "nixos-17.09.2905.c1d9aff56e0"
  • nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs

Most helpful comment

Try adding the following to your config:

services.snapper.configs.root.extraConfig = ''
  TIMELINE_CREATE="yes"
'';

According to the man page (snapper-configs) the default is no for time line snapshots.

All 4 comments

Can you post your config (the part with the snapper config)?

services.snapper.configs."root".subvolume = "/";

Try adding the following to your config:

services.snapper.configs.root.extraConfig = ''
  TIMELINE_CREATE="yes"
'';

According to the man page (snapper-configs) the default is no for time line snapshots.

That did it, thanks.

Was this page helpful?
0 / 5 - 0 ratings