NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.32k stars 13.56k forks source link

Timeshift request #139659

Closed meisme-dev closed 2 years ago

meisme-dev commented 2 years ago

Project description Timeshift is a utility to create BTRFS or rsync snapshots. It'd be really cool to have on NixOS.

Metadata

wamserma commented 2 years ago

I don't really see the benefits for NixOS. Why snapshot your system when you can rebuild it any time (or roll back to it), which is less fragile than using a non NixOS-aware tool for the snapshotting. A more reasonable use case would be to use this from nixpkgs on a non-NixOS distro. You can try running nix-shell -p nixpkgs-review --run "nixpkgs-review pr 139738" to evaluate the CLI. The GUI version needs some more patching of hardcoded paths (config in /etc,...).

jansol commented 2 years ago

I think this is meant more for backing up user data in your home or some other directory, which can be on its own dedicated btrfs subvolume.

wamserma commented 2 years ago

@jansol The README states:

It is designed to protect only system files and settings. User files such as documents, pictures and music are excluded.

jansol commented 2 years ago

Ah, so it does, nvm then.

...But why does it get compared to userdata backup solutions right before that...

Artturin commented 2 years ago

when i switched to nixos i switched from timeshift to borgbackup

wamserma commented 2 years ago

@meisme-dev Any further comments on this? If your use case is backing up user data/server state I can also recommend borgbackup. NixOS has excellent support for borgbackup.

wamserma commented 2 years ago

Closing this due to lack of feedback.