Tuesday, April 30, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 664  / 2 Years ago, thu, july 21, 2022, 2:47:10

I think that autozsys destroys snapshots older than a month and I'm wondering if it's possible to extend this (make it for example persist 3 months worth of snapshots).


I couldn't find any configuration file for autozsys, only a cron job in /etc/apt/apt.conf.d/90_zsys_system_autosnapshot, but I hoped for more sophisticated means to control it.


More From » zfs

 Answers
1

To keep absolutely all automatic snapshots from the last 3 months, ensure gcStartAfter is set to 90 in /etc/zsys.conf. At minimum, the file would look as follows:


history:
gcstartafter: 90

Once the file is saved, effect the change via:


zsysctl service reload

Source: a blog post by the author of ZSys, which is linked to by the ZSys GitHub repository in lieu of proper documentation: https://didrocks.fr/2020/06/04/zfs-focus-on-ubuntu-20.04-lts-zsys-state-collection/


[#828] Thursday, July 21, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
neasinient

Total Points: 491
Total Questions: 120
Total Answers: 93

Location: The Bahamas
Member since Mon, Aug 2, 2021
3 Years ago
neasinient questions
Thu, Feb 16, 23, 10:28, 1 Year ago
Fri, Jun 4, 21, 08:14, 3 Years ago
Wed, Oct 13, 21, 21:37, 3 Years ago
Fri, Jun 17, 22, 01:12, 2 Years ago
;