vault backup: 2026-05-14 14:26:46

This commit is contained in:
2026-05-14 14:26:47 +01:00
parent d6d4d2d345
commit 009ad75f3f
3 changed files with 75 additions and 30 deletions
+15
View File
@@ -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
```
+38 -22
View File
@@ -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
```