vault backup: 2026-05-14 14:26:46
This commit is contained in:
Vendored
+22
-8
@@ -63,6 +63,20 @@
|
|||||||
"title": "Sanoid and Syncoid Setup"
|
"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",
|
"id": "1d04d001d23741ea",
|
||||||
"type": "leaf",
|
"type": "leaf",
|
||||||
@@ -78,7 +92,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"currentTab": 3
|
"currentTab": 4
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"direction": "vertical"
|
"direction": "vertical"
|
||||||
@@ -153,7 +167,7 @@
|
|||||||
"state": {
|
"state": {
|
||||||
"type": "backlink",
|
"type": "backlink",
|
||||||
"state": {
|
"state": {
|
||||||
"file": "_Inbox/Sanoid and Syncoid Setup.md",
|
"file": "_Inbox/OpenZFS.md",
|
||||||
"collapseAll": true,
|
"collapseAll": true,
|
||||||
"extraContext": false,
|
"extraContext": false,
|
||||||
"sortOrder": "byCreatedTime",
|
"sortOrder": "byCreatedTime",
|
||||||
@@ -163,7 +177,7 @@
|
|||||||
"unlinkedCollapsed": true
|
"unlinkedCollapsed": true
|
||||||
},
|
},
|
||||||
"icon": "links-coming-in",
|
"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
|
"obsidian-git:Open Git source control": false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"active": "42ec6713b28b032b",
|
"active": "eac10c8aff866288",
|
||||||
"lastOpenFiles": [
|
"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",
|
"Categories/Products.md",
|
||||||
"_Inbox/2026-05-14 1311 pve-shug9 hdd smart tests.md",
|
"_Inbox/2026-05-14 1311 pve-shug9 hdd smart tests.md",
|
||||||
"References/Western Digital 2.0 TB HDD WD20EARX 889.md",
|
"References/Western Digital 2.0 TB HDD WD20EARX 889.md",
|
||||||
@@ -298,9 +316,6 @@
|
|||||||
"References/Margret Dianne Hodgetts.md",
|
"References/Margret Dianne Hodgetts.md",
|
||||||
"Daily Notes/2025-12-25.md",
|
"Daily Notes/2025-12-25.md",
|
||||||
"References/Dell XPS 8920 Desktop PC.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 Low-Energy E300.md",
|
||||||
"References/Toshiba 3TB HDD High-Performance P300.md",
|
"References/Toshiba 3TB HDD High-Performance P300.md",
|
||||||
"_Inbox/2026-05-14 0949 hdd smart report.md",
|
"_Inbox/2026-05-14 0949 hdd smart report.md",
|
||||||
@@ -314,7 +329,6 @@
|
|||||||
"Attachments/ThinkCentre_M720_Tiny_Spec.pdf",
|
"Attachments/ThinkCentre_M720_Tiny_Spec.pdf",
|
||||||
"References/Lenovo ThinkCentre M720Q Tiny.md",
|
"References/Lenovo ThinkCentre M720Q Tiny.md",
|
||||||
"_Inbox/Corsair Force 120GB SSD 103.md",
|
"_Inbox/Corsair Force 120GB SSD 103.md",
|
||||||
"_Inbox/Seagate 250GB Laptop HDD E03.md",
|
|
||||||
"Attachments/PXL_20260512_135458828.jpg",
|
"Attachments/PXL_20260512_135458828.jpg",
|
||||||
"Attachments/PXL_20260512_130415266.jpg",
|
"Attachments/PXL_20260512_130415266.jpg",
|
||||||
"Attachments/PXL_20260512_130430108.jpeg",
|
"Attachments/PXL_20260512_130430108.jpeg",
|
||||||
|
|||||||
@@ -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
|
||||||
|
```
|
||||||
|
|
||||||
@@ -2,35 +2,51 @@
|
|||||||
category:
|
category:
|
||||||
- "[[Note]]"
|
- "[[Note]]"
|
||||||
type:
|
type:
|
||||||
- "[[Log]]"
|
|
||||||
title: " Sanoid and Syncoid Setup"
|
title: " Sanoid and Syncoid Setup"
|
||||||
created: 2026-05-12T21:09:25
|
created: 2026-05-12T21:09:25
|
||||||
date: 2026-05-12
|
|
||||||
tags:
|
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)
|
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
|
apt install sanoid
|
||||||
`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`
|
|
||||||
|
|
||||||
### 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
|
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
|
||||||
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user