From 009ad75f3f7df3f4d238385ffb82d946f22b7687 Mon Sep 17 00:00:00 2001 From: bobbie Date: Thu, 14 May 2026 14:26:47 +0100 Subject: [PATCH] vault backup: 2026-05-14 14:26:46 --- .obsidian/workspace.json | 30 +++++++++++---- _Inbox/OpenZFS.md | 15 ++++++++ _Inbox/Sanoid and Syncoid Setup.md | 60 +++++++++++++++++++----------- 3 files changed, 75 insertions(+), 30 deletions(-) create mode 100644 _Inbox/OpenZFS.md diff --git a/.obsidian/workspace.json b/.obsidian/workspace.json index 6196b03..5c6d0be 100644 --- a/.obsidian/workspace.json +++ b/.obsidian/workspace.json @@ -63,6 +63,20 @@ "title": "Sanoid and Syncoid Setup" } }, + { + "id": "eac10c8aff866288", + "type": "leaf", + "state": { + "type": "markdown", + "state": { + "file": "_Inbox/OpenZFS.md", + "mode": "source", + "source": false + }, + "icon": "lucide-file", + "title": "OpenZFS" + } + }, { "id": "1d04d001d23741ea", "type": "leaf", @@ -78,7 +92,7 @@ } } ], - "currentTab": 3 + "currentTab": 4 } ], "direction": "vertical" @@ -153,7 +167,7 @@ "state": { "type": "backlink", "state": { - "file": "_Inbox/Sanoid and Syncoid Setup.md", + "file": "_Inbox/OpenZFS.md", "collapseAll": true, "extraContext": false, "sortOrder": "byCreatedTime", @@ -163,7 +177,7 @@ "unlinkedCollapsed": true }, "icon": "links-coming-in", - "title": "Backlinks for Sanoid and Syncoid Setup" + "title": "Backlinks for OpenZFS" } }, { @@ -286,8 +300,12 @@ "obsidian-git:Open Git source control": false } }, - "active": "42ec6713b28b032b", + "active": "eac10c8aff866288", "lastOpenFiles": [ + "_Inbox/Sanoid and Syncoid Setup.md", + "_Inbox/OpenZFS.md", + "_Inbox/2026-05-14 0946 HDD SMART report.md", + "_Inbox/HGST Ultrastar 7K6000 Series 4TB SAS HDD (x10).md", "Categories/Products.md", "_Inbox/2026-05-14 1311 pve-shug9 hdd smart tests.md", "References/Western Digital 2.0 TB HDD WD20EARX 889.md", @@ -298,9 +316,6 @@ "References/Margret Dianne Hodgetts.md", "Daily Notes/2025-12-25.md", "References/Dell XPS 8920 Desktop PC.md", - "_Inbox/Sanoid and Syncoid Setup.md", - "_Inbox/HGST Ultrastar 7K6000 Series 4TB SAS HDD (x10).md", - "_Inbox/2026-05-14 0946 HDD SMART report.md", "References/Toshiba 3TB HDD Low-Energy E300.md", "References/Toshiba 3TB HDD High-Performance P300.md", "_Inbox/2026-05-14 0949 hdd smart report.md", @@ -314,7 +329,6 @@ "Attachments/ThinkCentre_M720_Tiny_Spec.pdf", "References/Lenovo ThinkCentre M720Q Tiny.md", "_Inbox/Corsair Force 120GB SSD 103.md", - "_Inbox/Seagate 250GB Laptop HDD E03.md", "Attachments/PXL_20260512_135458828.jpg", "Attachments/PXL_20260512_130415266.jpg", "Attachments/PXL_20260512_130430108.jpeg", diff --git a/_Inbox/OpenZFS.md b/_Inbox/OpenZFS.md new file mode 100644 index 0000000..8937139 --- /dev/null +++ b/_Inbox/OpenZFS.md @@ -0,0 +1,15 @@ +--- +category: + - "[[Note]]" +type: +title: +created: 2026-05-14T14:17:36 +tags: +--- +## zfs commands + +list dataset snapshots +``` +zfs list -t snapshot pool-name/dataset-name +``` + diff --git a/_Inbox/Sanoid and Syncoid Setup.md b/_Inbox/Sanoid and Syncoid Setup.md index 180b769..762ba57 100644 --- a/_Inbox/Sanoid and Syncoid Setup.md +++ b/_Inbox/Sanoid and Syncoid Setup.md @@ -2,35 +2,51 @@ category: - "[[Note]]" type: - - "[[Log]]" title: " Sanoid and Syncoid Setup" created: 2026-05-12T21:09:25 -date: 2026-05-12 tags: --- -I've set this up on on a [[Proxmox]] backup machine, it creates the zfs snapshots on the remote machine and them pulls them into it;s own zfs pool. +I've set this up on on a [[Proxmox]] backup machine, it creates the [[OpenZFS|zfs]] snapshots on the remote machine and them pulls them into it's own zfs pool. -### the setup +## initial setup -- install sanoid on backup and source host (not strictly required on both, but sanoid uses tools on both machine for fast and reliable connection) - `apt install sanoid` -- if you don't run sanoid on one machine, ensure the following folders are created on it - `mkdir -p /var/cache/sanoid /var/run/sanoid` -- use root accounts for ssh connections, the zfs commands need root access (tried to get it to work without and it was turtles all the way down) -- add conf files from github to - `/etc/sanoid/` and setup -- run manual backup (add `--debug` flag for more info) - `syncoid -r --use-hold --preserve-recordsize --preserve-properties root@192.168.1.43:noggapool/music stanleypool/music` -- config files are found here: - `/etc/sanoid/sanoid.conf` - `/etc/sanoid/sanoid.defaults.conf` - `/usr/local/bin/zfs-nightly-backup.sh` +install Sanoid on backup and source host (not strictly required on both, but Sanoid uses tools on both machine for fast and reliable connection) +``` +apt install sanoid +``` -### scheduled snapshots and prune +if you don't run Sanoid on one machine, ensure the following folders are created on it +``` +mkdir -p /var/cache/sanoid /var/run/sanoid +``` + +use root accounts for ssh connections, the zfs commands need root access (tried to get it to work without and it was turtles all the way down) + +add conf files and populate from [github](https://github.com/jimsalterjrs/sanoid) +``` +/etc/sanoid/sanoid.conf +/etc/sanoid/sanoid.defaults.conf +/usr/local/bin/zfs-nightly-backup.sh +``` + +run manual backup (add `--debug` flag for more info) +``` +syncoid -r --use-hold --preserve-recordsize --preserve-properties root@192.168.1.43:noggapool/music stanleypool/music +``` + +commands for nightly script +``` +/usr/sbin/syncoid -r --use-hold --preserve-recordsize --preserve-properties root@pve-thinkstation:noggapool/dataset stanleypool/dataset +``` +``` +/usr/sbin/syncoid -r --no-sync-snap --create-bookmark --use-hold --preserve-recordsize --preserve-properties stanleypool/dataset root@pve-shug9:bathpool/dataset +``` + +## scheduled snapshots and prune by default, when installing via `apt` it starts a timer service that executes every 15minutes. for my requirements i need to disable this for now - `systemctl stop timer.sanoid.service` - `systemctl disable time.sanoid.service` - - +``` +systemctl stop timer.sanoid.service +systemctl disable time.sanoid.service +```