-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Friday, 2016-03-25 at 00:39 +0100, Richard Brown wrote:
On 24 March 2016 at 22:32, Carlos E. R. <robin.listas@telefonica.net> wrote:
That's what I thought btrfs was for... on {home} it would be very useful. But snapshots are timed events, so they might not catch this.
...
snapper has a number of other options to trigger based on user activity.. such as pam_snapper http://snapper.io/manpages/pam_snapper.html to create a snapshot for each user login and with the non-root users you can easily set up snapper to do whatever you want with your home directory https://lizards.opensuse.org/2012/10/16/snapper-for-everyone/
Conceptually, it's a simple as setting up a subvolume in btrfs, creating a snapper config for that subvolume, and then telling snapper to do it's thing whenever you want it to take a snapshot
...
If you want to be particularly careful with a specific file, something like inotify could be used to make sure that snapper always takes a snapshot whenever a certain file is changed (note: If the file is changed a lot, you might need to tune snappers cleanup routines accordingly ;))
My idea is to have a snapshot taken each time a file in, say, ~/Documents/*, is fully saved, geting a behaviour equivalent to what the VAX/VMS did: file.txt;1, file.txt;2, file.txt;3... Not partially saved or temporary files, but an history of (binary) saved files. - -- Cheers, Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iEYEARECAAYFAlb0oi0ACgkQtTMYHG2NR9XkSQCfalseWgRe/NxPYiP/nFc/EUHd pOcAnivrNR83gmzYNYwegXy/RkodRntc =z4lI -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org