[{"data":1,"prerenderedAt":1160},["ShallowReactive",2],{"article-20210806-zfs-destroy-snapshots":3},{"article":4,"surround":1149},{"id":5,"title":6,"authorKey":7,"body":8,"codeLinks":1118,"createdAt":1121,"description":1122,"excerpt":1123,"extension":1136,"image":1137,"meta":1138,"navigation":93,"path":1139,"published":1140,"readingTime":84,"revisedAt":1141,"seo":1142,"stem":1143,"tags":1144,"__hash__":1148},"articles\u002Farticles\u002F20210806-zfs-destroy-snapshots.md","Cleanup helper script to destroy old ZFS snapshots","philip",{"type":9,"value":10,"toc":1116},"minimark",[11,15,35,38,270,277,314,321,324,367,373,382,1082,1085,1112],[12,13,14],"p",{},"For years now, I am using this little helper script written in Python, which solves a very basic task: Destroy legacy ZFS snapshots. We all know ZFS snapshots are so lightweight and we tend to create so many snapshots, either manually (e.g. before a major system upgrade) or automated (e.g. by our replication or backup jobs). It can somtimes be cumbersome to destroy legacy ZFS snapshots that are no longer needed.",[12,16,17,18,22,23,26,27,34],{},"So, here comes help with ",[19,20,21],"code",{},"zfs-destroy-snapshots.py"," which you could deploy to ",[19,24,25],{},"\u002Fusr\u002Flocal\u002Fsbin"," to have that handy script ready. I know, this is like a really small snipped I could just post to Github Gist (ok, here you go: ",[28,29,33],"a",{"href":30,"rel":31},"https:\u002F\u002Fgist.github.com\u002Fonlime\u002F530c27b71056efd6edd7a38b7369457d",[32],"nofollow","onlime\u002Fzfs-destroy-snapshots.py",") or Pastebin, but I think it still deserves a full blown blog post.",[12,36,37],{},"Below script supports the following options:",[39,40,45],"pre",{"className":41,"code":42,"language":43,"meta":44,"style":44},"language-bash shiki shiki-themes github-light-default github-light-default github-dark-default","$ zfs-destroy-snapshots.py -h\nusage: zfs-destroy-snapshots.py [-h] [--prefix PREFIX] [--exclude EXCLUDE]\n                                [--dataset DATASET] [--destroy]\n                                age\n\npositional arguments:\n  age                List snapshots that are older than age (hours).\n\noptional arguments:\n  -h, --help         show this help message and exit\n  --prefix PREFIX    Only list snapshot with this prefix.\n  --exclude EXCLUDE  Exclude snapshots that contain this string.\n  --dataset DATASET  Limit to a specific dataset.\n  --destroy          Destroy snapshots that are older than age.\n","bash","",[19,46,47,64,76,82,88,95,104,134,139,147,174,200,224,248],{"__ignoreMap":44},[48,49,52,56,60],"span",{"class":50,"line":51},"line",1,[48,53,55],{"class":54},"sQJ0q","$",[48,57,59],{"class":58},"s-BGO"," zfs-destroy-snapshots.py",[48,61,63],{"class":62},"sDkKp"," -h\n",[48,65,67,70,72],{"class":50,"line":66},2,[48,68,69],{"class":54},"usage:",[48,71,59],{"class":58},[48,73,75],{"class":74},"s_bOF"," [-h] [--prefix PREFIX] [--exclude EXCLUDE]\n",[48,77,79],{"class":50,"line":78},3,[48,80,81],{"class":74},"                                [--dataset DATASET] [--destroy]\n",[48,83,85],{"class":50,"line":84},4,[48,86,87],{"class":54},"                                age\n",[48,89,91],{"class":50,"line":90},5,[48,92,94],{"emptyLinePlaceholder":93},true,"\n",[48,96,98,101],{"class":50,"line":97},6,[48,99,100],{"class":54},"positional",[48,102,103],{"class":58}," arguments:\n",[48,105,107,110,113,116,119,122,125,128,131],{"class":50,"line":106},7,[48,108,109],{"class":54},"  age",[48,111,112],{"class":58},"                List",[48,114,115],{"class":58}," snapshots",[48,117,118],{"class":58}," that",[48,120,121],{"class":58}," are",[48,123,124],{"class":58}," older",[48,126,127],{"class":58}," than",[48,129,130],{"class":58}," age",[48,132,133],{"class":74}," (hours).\n",[48,135,137],{"class":50,"line":136},8,[48,138,94],{"emptyLinePlaceholder":93},[48,140,142,145],{"class":50,"line":141},9,[48,143,144],{"class":54},"optional",[48,146,103],{"class":58},[48,148,150,153,156,159,162,165,168,171],{"class":50,"line":149},10,[48,151,152],{"class":54},"  -h,",[48,154,155],{"class":62}," --help",[48,157,158],{"class":58},"         show",[48,160,161],{"class":58}," this",[48,163,164],{"class":58}," help",[48,166,167],{"class":58}," message",[48,169,170],{"class":58}," and",[48,172,173],{"class":58}," exit\n",[48,175,177,180,183,186,189,192,195,197],{"class":50,"line":176},11,[48,178,179],{"class":54},"  --prefix",[48,181,182],{"class":58}," PREFIX",[48,184,185],{"class":58},"    Only",[48,187,188],{"class":58}," list",[48,190,191],{"class":58}," snapshot",[48,193,194],{"class":58}," with",[48,196,161],{"class":58},[48,198,199],{"class":58}," prefix.\n",[48,201,203,206,209,212,214,216,219,221],{"class":50,"line":202},12,[48,204,205],{"class":54},"  --exclude",[48,207,208],{"class":58}," EXCLUDE",[48,210,211],{"class":58},"  Exclude",[48,213,115],{"class":58},[48,215,118],{"class":58},[48,217,218],{"class":58}," contain",[48,220,161],{"class":58},[48,222,223],{"class":58}," string.\n",[48,225,227,230,233,236,239,242,245],{"class":50,"line":226},13,[48,228,229],{"class":54},"  --dataset",[48,231,232],{"class":58}," DATASET",[48,234,235],{"class":58},"  Limit",[48,237,238],{"class":58}," to",[48,240,241],{"class":58}," a",[48,243,244],{"class":58}," specific",[48,246,247],{"class":58}," dataset.\n",[48,249,251,254,257,259,261,263,265,267],{"class":50,"line":250},14,[48,252,253],{"class":54},"  --destroy",[48,255,256],{"class":58},"          Destroy",[48,258,115],{"class":58},[48,260,118],{"class":58},[48,262,121],{"class":58},[48,264,124],{"class":58},[48,266,127],{"class":58},[48,268,269],{"class":58}," age.\n",[12,271,272,273,276],{},"So, basic use would be (run this as ",[19,274,275],{},"root","):",[39,278,280],{"className":41,"code":279,"language":43,"meta":44,"style":44},"# list all snapshots that are older than 48hrs\n$ zfs-destroy-snapshots.py 48\n# destroy them for good\n$ zfs-destroy-snapshots.py 48 --destroy\n",[19,281,282,288,297,302],{"__ignoreMap":44},[48,283,284],{"class":50,"line":51},[48,285,287],{"class":286},"s9BHP","# list all snapshots that are older than 48hrs\n",[48,289,290,292,294],{"class":50,"line":66},[48,291,55],{"class":54},[48,293,59],{"class":58},[48,295,296],{"class":62}," 48\n",[48,298,299],{"class":50,"line":78},[48,300,301],{"class":286},"# destroy them for good\n",[48,303,304,306,308,311],{"class":50,"line":84},[48,305,55],{"class":54},[48,307,59],{"class":58},[48,309,310],{"class":62}," 48",[48,312,313],{"class":62}," --destroy\n",[12,315,316,317,320],{},"By default, the script does a dry-run, only listing snapshots it is going to destroy. It will only actually destroy them, if you explicitely use the ",[19,318,319],{},"--destroy"," argument. For your safety, and your daughter's.",[12,322,323],{},"You could further limit the lookup of snapshots by the following:",[325,326,327,352,358],"ul",{},[328,329,330,333,334,337,338,343,344,337,347],"li",{},[19,331,332],{},"--prefix",": snapshot prefix like e.g. ",[19,335,336],{},"zrep_"," for ",[28,339,342],{"href":340,"rel":341},"https:\u002F\u002Fgithub.com\u002Fbolthole\u002Fzrep",[32],"zrep"," or ",[19,345,346],{},"rep_",[28,348,351],{"href":349,"rel":350},"https:\u002F\u002Fpve.proxmox.com\u002Fwiki\u002FPVE-zsync",[32],"pve-zsync (Proxmox VE replication manager \u002F backup tool)",[328,353,354,357],{},[19,355,356],{},"--exclude",": exclude snapshots that contain this string",[328,359,360,363,364],{},[19,361,362],{},"--dataset",": limit by a single dataset, e.g. ",[19,365,366],{},"rpool\u002Fzfsdisks\u002Fsubvol-123-disk-1",[12,368,369,370,372],{},"Remember to always run this script without ",[19,371,319],{}," first to verify the snapshots which are going to be deleted.",[12,374,375,376,378,379],{},"Here you go, ",[19,377,21],{}," \u002F Gist ",[28,380,33],{"href":30,"rel":381},[32],[39,383,387],{"className":384,"code":385,"filename":21,"language":386,"meta":44,"style":44},"language-python shiki shiki-themes github-light-default github-light-default github-dark-default","#!\u002Fusr\u002Fbin\u002Fenv python3\n\"\"\"\nHelper script to remove old ZFS snapshots\nCopyright (c) Onlime GmbH, https:\u002F\u002Fwww.onlime.ch\n\"\"\"\nimport argparse\nfrom re import compile\nfrom datetime import datetime, timedelta\nfrom subprocess import check_output\nimport sys\n\ndef list_snapshots(age: int, prefix: str = None, exclude: str = None, dataset: str = None, destroy: bool = False):\n    # List all snapshot names of a dataset sorted by creation date; sample command:\n    # $ zfs list -H -t snapshot -o name,creation -s creation [\u003Cdataset>]\n    cmd = ['zfs', 'list', '-H', '-t', 'snapshot', '-o', 'name,creation', '-s', 'creation']\n    if dataset:\n        cmd.append(dataset)\n    snap_list = check_output(cmd).decode(sys.stdout.encoding)\n    snap_lines = snap_list.splitlines()\n    # reverse sort order (`zfs list` only supports asc sort order), newest snapshots on top\n    snap_lines.reverse()\n\n    for line in snap_lines:\n        snapshot, creation = line.split('\\t')\n        if prefix and '@{}'.format(prefix) not in snapshot:\n            continue\n        if exclude and exclude in snapshot:\n            continue\n        snap_date = datetime.strptime(creation, '%a %b %d %H:%M %Y')\n        if snap_date \u003C datetime.now()-timedelta(hours=age):\n            print('{}{} {}'.format(\n                'DESTROYING ' if destroy else '',\n                snap_date.strftime('%Y-%m-%d %H:%M'), \n                snapshot\n            ))\n            if destroy:\n                check_output(['zfs', 'destroy', snapshot])\n\nif __name__ == \"__main__\": # Only use the argument parsing if the script was called as script and not imported\n    # argument parsing\n    parser = argparse.ArgumentParser()\n    parser.add_argument(\"age\", type=int, help=\"List snapshots that are older than age (hours).\")\n    parser.add_argument(\"--prefix\", help=\"Only list snapshot with this prefix.\")\n    parser.add_argument(\"--exclude\", help=\"Exclude snapshots that contain this string.\")\n    parser.add_argument(\"--dataset\", help=\"Limit to a specific dataset.\")\n    parser.add_argument(\"--destroy\", action='store_true', help=\"Destroy snapshots that are older than age.\")\n    args = parser.parse_args()\n\n    list_snapshots(args.age, args.prefix, args.exclude, args.dataset, args.destroy)\n","python",[19,388,389,394,399,404,409,413,422,435,447,459,466,470,529,534,539,598,607,613,624,635,641,647,652,667,689,721,727,743,748,775,803,825,846,864,870,876,885,901,906,927,933,944,974,993,1012,1031,1060,1071,1076],{"__ignoreMap":44},[48,390,391],{"class":50,"line":51},[48,392,393],{"class":286},"#!\u002Fusr\u002Fbin\u002Fenv python3\n",[48,395,396],{"class":50,"line":66},[48,397,398],{"class":58},"\"\"\"\n",[48,400,401],{"class":50,"line":78},[48,402,403],{"class":58},"Helper script to remove old ZFS snapshots\n",[48,405,406],{"class":50,"line":84},[48,407,408],{"class":58},"Copyright (c) Onlime GmbH, https:\u002F\u002Fwww.onlime.ch\n",[48,410,411],{"class":50,"line":90},[48,412,398],{"class":58},[48,414,415,419],{"class":50,"line":97},[48,416,418],{"class":417},"s5nWI","import",[48,420,421],{"class":74}," argparse\n",[48,423,424,427,430,432],{"class":50,"line":106},[48,425,426],{"class":417},"from",[48,428,429],{"class":74}," re ",[48,431,418],{"class":417},[48,433,434],{"class":62}," compile\n",[48,436,437,439,442,444],{"class":50,"line":136},[48,438,426],{"class":417},[48,440,441],{"class":74}," datetime ",[48,443,418],{"class":417},[48,445,446],{"class":74}," datetime, timedelta\n",[48,448,449,451,454,456],{"class":50,"line":141},[48,450,426],{"class":417},[48,452,453],{"class":74}," subprocess ",[48,455,418],{"class":417},[48,457,458],{"class":74}," check_output\n",[48,460,461,463],{"class":50,"line":149},[48,462,418],{"class":417},[48,464,465],{"class":74}," sys\n",[48,467,468],{"class":50,"line":176},[48,469,94],{"emptyLinePlaceholder":93},[48,471,472,475,479,482,485,488,491,494,497,500,502,504,506,509,511,513,515,518,521,523,526],{"class":50,"line":202},[48,473,474],{"class":417},"def",[48,476,478],{"class":477},"sd69k"," list_snapshots",[48,480,481],{"class":74},"(age: ",[48,483,484],{"class":62},"int",[48,486,487],{"class":74},", prefix: ",[48,489,490],{"class":62},"str",[48,492,493],{"class":417}," =",[48,495,496],{"class":62}," None",[48,498,499],{"class":74},", exclude: ",[48,501,490],{"class":62},[48,503,493],{"class":417},[48,505,496],{"class":62},[48,507,508],{"class":74},", dataset: ",[48,510,490],{"class":62},[48,512,493],{"class":417},[48,514,496],{"class":62},[48,516,517],{"class":74},", destroy: ",[48,519,520],{"class":62},"bool",[48,522,493],{"class":417},[48,524,525],{"class":62}," False",[48,527,528],{"class":74},"):\n",[48,530,531],{"class":50,"line":226},[48,532,533],{"class":286},"    # List all snapshot names of a dataset sorted by creation date; sample command:\n",[48,535,536],{"class":50,"line":250},[48,537,538],{"class":286},"    # $ zfs list -H -t snapshot -o name,creation -s creation [\u003Cdataset>]\n",[48,540,542,545,548,551,554,557,560,562,565,567,570,572,575,577,580,582,585,587,590,592,595],{"class":50,"line":541},15,[48,543,544],{"class":74},"    cmd ",[48,546,547],{"class":417},"=",[48,549,550],{"class":74}," [",[48,552,553],{"class":58},"'zfs'",[48,555,556],{"class":74},", ",[48,558,559],{"class":58},"'list'",[48,561,556],{"class":74},[48,563,564],{"class":58},"'-H'",[48,566,556],{"class":74},[48,568,569],{"class":58},"'-t'",[48,571,556],{"class":74},[48,573,574],{"class":58},"'snapshot'",[48,576,556],{"class":74},[48,578,579],{"class":58},"'-o'",[48,581,556],{"class":74},[48,583,584],{"class":58},"'name,creation'",[48,586,556],{"class":74},[48,588,589],{"class":58},"'-s'",[48,591,556],{"class":74},[48,593,594],{"class":58},"'creation'",[48,596,597],{"class":74},"]\n",[48,599,601,604],{"class":50,"line":600},16,[48,602,603],{"class":417},"    if",[48,605,606],{"class":74}," dataset:\n",[48,608,610],{"class":50,"line":609},17,[48,611,612],{"class":74},"        cmd.append(dataset)\n",[48,614,616,619,621],{"class":50,"line":615},18,[48,617,618],{"class":74},"    snap_list ",[48,620,547],{"class":417},[48,622,623],{"class":74}," check_output(cmd).decode(sys.stdout.encoding)\n",[48,625,627,630,632],{"class":50,"line":626},19,[48,628,629],{"class":74},"    snap_lines ",[48,631,547],{"class":417},[48,633,634],{"class":74}," snap_list.splitlines()\n",[48,636,638],{"class":50,"line":637},20,[48,639,640],{"class":286},"    # reverse sort order (`zfs list` only supports asc sort order), newest snapshots on top\n",[48,642,644],{"class":50,"line":643},21,[48,645,646],{"class":74},"    snap_lines.reverse()\n",[48,648,650],{"class":50,"line":649},22,[48,651,94],{"emptyLinePlaceholder":93},[48,653,655,658,661,664],{"class":50,"line":654},23,[48,656,657],{"class":417},"    for",[48,659,660],{"class":74}," line ",[48,662,663],{"class":417},"in",[48,665,666],{"class":74}," snap_lines:\n",[48,668,670,673,675,678,681,684,686],{"class":50,"line":669},24,[48,671,672],{"class":74},"        snapshot, creation ",[48,674,547],{"class":417},[48,676,677],{"class":74}," line.split(",[48,679,680],{"class":58},"'",[48,682,683],{"class":417},"\\t",[48,685,680],{"class":58},[48,687,688],{"class":74},")\n",[48,690,692,695,698,701,704,707,709,712,715,718],{"class":50,"line":691},25,[48,693,694],{"class":417},"        if",[48,696,697],{"class":74}," prefix ",[48,699,700],{"class":417},"and",[48,702,703],{"class":58}," '@",[48,705,706],{"class":417},"{}",[48,708,680],{"class":58},[48,710,711],{"class":74},".format(prefix) ",[48,713,714],{"class":417},"not",[48,716,717],{"class":417}," in",[48,719,720],{"class":74}," snapshot:\n",[48,722,724],{"class":50,"line":723},26,[48,725,726],{"class":417},"            continue\n",[48,728,730,732,735,737,739,741],{"class":50,"line":729},27,[48,731,694],{"class":417},[48,733,734],{"class":74}," exclude ",[48,736,700],{"class":417},[48,738,734],{"class":74},[48,740,663],{"class":417},[48,742,720],{"class":74},[48,744,746],{"class":50,"line":745},28,[48,747,726],{"class":417},[48,749,751,754,756,759,761,764,767,770,773],{"class":50,"line":750},29,[48,752,753],{"class":74},"        snap_date ",[48,755,547],{"class":417},[48,757,758],{"class":74}," datetime.strptime(creation, ",[48,760,680],{"class":58},[48,762,763],{"class":417},"%a",[48,765,766],{"class":417}," %b",[48,768,769],{"class":417}," %d",[48,771,772],{"class":58}," %H:%M %Y'",[48,774,688],{"class":74},[48,776,778,780,783,786,789,792,795,798,800],{"class":50,"line":777},30,[48,779,694],{"class":417},[48,781,782],{"class":74}," snap_date ",[48,784,785],{"class":417},"\u003C",[48,787,788],{"class":74}," datetime.now()",[48,790,791],{"class":417},"-",[48,793,794],{"class":74},"timedelta(",[48,796,797],{"class":54},"hours",[48,799,547],{"class":417},[48,801,802],{"class":74},"age):\n",[48,804,806,809,812,814,817,820,822],{"class":50,"line":805},31,[48,807,808],{"class":62},"            print",[48,810,811],{"class":74},"(",[48,813,680],{"class":58},[48,815,816],{"class":417},"{}{}",[48,818,819],{"class":417}," {}",[48,821,680],{"class":58},[48,823,824],{"class":74},".format(\n",[48,826,828,831,834,837,840,843],{"class":50,"line":827},32,[48,829,830],{"class":58},"                'DESTROYING '",[48,832,833],{"class":417}," if",[48,835,836],{"class":74}," destroy ",[48,838,839],{"class":417},"else",[48,841,842],{"class":58}," ''",[48,844,845],{"class":74},",\n",[48,847,849,852,855,858,861],{"class":50,"line":848},33,[48,850,851],{"class":74},"                snap_date.strftime(",[48,853,854],{"class":58},"'%Y-%m-",[48,856,857],{"class":417},"%d",[48,859,860],{"class":58}," %H:%M'",[48,862,863],{"class":74},"), \n",[48,865,867],{"class":50,"line":866},34,[48,868,869],{"class":74},"                snapshot\n",[48,871,873],{"class":50,"line":872},35,[48,874,875],{"class":74},"            ))\n",[48,877,879,882],{"class":50,"line":878},36,[48,880,881],{"class":417},"            if",[48,883,884],{"class":74}," destroy:\n",[48,886,888,891,893,895,898],{"class":50,"line":887},37,[48,889,890],{"class":74},"                check_output([",[48,892,553],{"class":58},[48,894,556],{"class":74},[48,896,897],{"class":58},"'destroy'",[48,899,900],{"class":74},", snapshot])\n",[48,902,904],{"class":50,"line":903},38,[48,905,94],{"emptyLinePlaceholder":93},[48,907,909,912,915,918,921,924],{"class":50,"line":908},39,[48,910,911],{"class":417},"if",[48,913,914],{"class":62}," __name__",[48,916,917],{"class":417}," ==",[48,919,920],{"class":58}," \"__main__\"",[48,922,923],{"class":74},": ",[48,925,926],{"class":286},"# Only use the argument parsing if the script was called as script and not imported\n",[48,928,930],{"class":50,"line":929},40,[48,931,932],{"class":286},"    # argument parsing\n",[48,934,936,939,941],{"class":50,"line":935},41,[48,937,938],{"class":74},"    parser ",[48,940,547],{"class":417},[48,942,943],{"class":74}," argparse.ArgumentParser()\n",[48,945,947,950,953,955,958,960,962,964,967,969,972],{"class":50,"line":946},42,[48,948,949],{"class":74},"    parser.add_argument(",[48,951,952],{"class":58},"\"age\"",[48,954,556],{"class":74},[48,956,957],{"class":54},"type",[48,959,547],{"class":417},[48,961,484],{"class":62},[48,963,556],{"class":74},[48,965,966],{"class":54},"help",[48,968,547],{"class":417},[48,970,971],{"class":58},"\"List snapshots that are older than age (hours).\"",[48,973,688],{"class":74},[48,975,977,979,982,984,986,988,991],{"class":50,"line":976},43,[48,978,949],{"class":74},[48,980,981],{"class":58},"\"--prefix\"",[48,983,556],{"class":74},[48,985,966],{"class":54},[48,987,547],{"class":417},[48,989,990],{"class":58},"\"Only list snapshot with this prefix.\"",[48,992,688],{"class":74},[48,994,996,998,1001,1003,1005,1007,1010],{"class":50,"line":995},44,[48,997,949],{"class":74},[48,999,1000],{"class":58},"\"--exclude\"",[48,1002,556],{"class":74},[48,1004,966],{"class":54},[48,1006,547],{"class":417},[48,1008,1009],{"class":58},"\"Exclude snapshots that contain this string.\"",[48,1011,688],{"class":74},[48,1013,1015,1017,1020,1022,1024,1026,1029],{"class":50,"line":1014},45,[48,1016,949],{"class":74},[48,1018,1019],{"class":58},"\"--dataset\"",[48,1021,556],{"class":74},[48,1023,966],{"class":54},[48,1025,547],{"class":417},[48,1027,1028],{"class":58},"\"Limit to a specific dataset.\"",[48,1030,688],{"class":74},[48,1032,1034,1036,1039,1041,1044,1046,1049,1051,1053,1055,1058],{"class":50,"line":1033},46,[48,1035,949],{"class":74},[48,1037,1038],{"class":58},"\"--destroy\"",[48,1040,556],{"class":74},[48,1042,1043],{"class":54},"action",[48,1045,547],{"class":417},[48,1047,1048],{"class":58},"'store_true'",[48,1050,556],{"class":74},[48,1052,966],{"class":54},[48,1054,547],{"class":417},[48,1056,1057],{"class":58},"\"Destroy snapshots that are older than age.\"",[48,1059,688],{"class":74},[48,1061,1063,1066,1068],{"class":50,"line":1062},47,[48,1064,1065],{"class":74},"    args ",[48,1067,547],{"class":417},[48,1069,1070],{"class":74}," parser.parse_args()\n",[48,1072,1074],{"class":50,"line":1073},48,[48,1075,94],{"emptyLinePlaceholder":93},[48,1077,1079],{"class":50,"line":1078},49,[48,1080,1081],{"class":74},"    list_snapshots(args.age, args.prefix, args.exclude, args.dataset, args.destroy)\n",[12,1083,1084],{},"some final thoughts...",[12,1086,1087,1088,1093,1094,1099,1100,1105,1106,1111],{},"Besides, ",[28,1089,1092],{"href":1090,"rel":1091},"https:\u002F\u002Fwww.onlime.ch\u002F",[32],"Onlime GmbH"," webhosting services run 100% on ",[28,1095,1098],{"href":1096,"rel":1097},"https:\u002F\u002Fwww.debian.org\u002F",[32],"Debian Linux",", mostly in LXC containers on ",[28,1101,1104],{"href":1102,"rel":1103},"https:\u002F\u002Fproxmox.com\u002Fen\u002Fproxmox-ve",[32],"Proxmox VE"," (PVE). If you don't know PVE yet - I can just strongly recommend it. They offer stunning support for ",[28,1107,1110],{"href":1108,"rel":1109},"https:\u002F\u002Fopenzfs.org",[32],"OpenZFS"," - formerly known as ZFS-on-Linux, which lately runs super robust (which was definitely not the case 4-5 yrs ago!). So really, if you're not into ZFS yet, look into it. It is so much more than just another file system. Enough promo for today. Cheers!",[1113,1114,1115],"style",{},"html pre.shiki code .sQJ0q, html code.shiki .sQJ0q{--shiki-light:#953800;--shiki-default:#953800;--shiki-dark:#FFA657}html pre.shiki code .s-BGO, html code.shiki .s-BGO{--shiki-light:#0A3069;--shiki-default:#0A3069;--shiki-dark:#A5D6FF}html pre.shiki code .sDkKp, html code.shiki .sDkKp{--shiki-light:#0550AE;--shiki-default:#0550AE;--shiki-dark:#79C0FF}html pre.shiki code .s_bOF, html code.shiki .s_bOF{--shiki-light:#1F2328;--shiki-default:#1F2328;--shiki-dark:#E6EDF3}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .s9BHP, html code.shiki .s9BHP{--shiki-light:#6E7781;--shiki-default:#6E7781;--shiki-dark:#8B949E}html pre.shiki code .s5nWI, html code.shiki .s5nWI{--shiki-light:#CF222E;--shiki-default:#CF222E;--shiki-dark:#FF7B72}html pre.shiki code .sd69k, html code.shiki .sd69k{--shiki-light:#8250DF;--shiki-default:#8250DF;--shiki-dark:#D2A8FF}",{"title":44,"searchDepth":66,"depth":78,"links":1117},[],[1119],{"link":30,"desc":1120},"Gist","2021-08-06 13:00","A small helper script written in Python to destroy legacy ZFS snapshots.",{"type":9,"value":1124},[1125,1127],[12,1126,14],{},[12,1128,17,1129,22,1131,26,1133,34],{},[19,1130,21],{},[19,1132,25],{},[28,1134,33],{"href":30,"rel":1135},[32],"md","\u002Fimages\u002Fcovers\u002Fopen-zfs-blueprint.jpg",{},"\u002Farticles\u002F20210806-zfs-destroy-snapshots",false,null,{"title":6,"description":1122},"articles\u002F20210806-zfs-destroy-snapshots",[1145,1146,1147,386],"sysadmin","linux","zfs","81Trkuh5FOm5o5ciLTM8cdrK0vUzxHDIEnYugdd4woE",[1150,1155],{"title":1151,"path":1152,"stem":1153,"createdAt":1154,"children":-1},"Configure ESLint and Prettier for Vue\u002FNuxt.js project in VS Code","\u002Farticles\u002F20210805-eslint-prettier-for-vscode","articles\u002F20210805-eslint-prettier-for-vscode","2021-08-05 17:48",{"title":1156,"path":1157,"stem":1158,"createdAt":1159,"children":-1},"GitLab CI\u002FCD of a Nuxt.js frontend over SSH\u002Frsync","\u002Farticles\u002F20210808-gitlab-cd-rsync-deployment","articles\u002F20210808-gitlab-cd-rsync-deployment","2021-08-08 12:10",1794961391284]