diff --git a/Backup-to-rsync.net-via-ZFS.md b/Backup-to-rsync.net-via-ZFS.md index 6b1ee5e..392a6ef 100644 --- a/Backup-to-rsync.net-via-ZFS.md +++ b/Backup-to-rsync.net-via-ZFS.md @@ -2,7 +2,11 @@ rsync.net has accounts with actual full ZFS support. Since its basically a VM wi This tutorial will show you how to use it. -## Setup ssh keys +## Basic backup + +We start with the basics and then show talk about security considerations and encryption. + +### Setup ssh keys To make sure your server can login via ssh automaticly: @@ -15,7 +19,7 @@ Number of key(s) added: 1 ... ``` -## Find your target +### Find your target Login to findout the name of the pool you want to use. (rsync.net created it for you) @@ -35,7 +39,7 @@ data1 480K 1.04T 96K /mnt/data1 So your target could be data1. (or you can create a dataset like data1/pve1 if you like) -## Select filesystems +### Select filesystems Select the filesystems that your want to backup: @@ -43,3 +47,39 @@ Select the filesystems that your want to backup: [root@pve1 ~]# zfs set autobackup:rsync=true rpool/data/subvol-111-disk-0 ``` +### Start actual backup + +[root@pve1 ~]# zfs-autobackup -v --ssh-target root@xxxxx.rsync.net rsyncnet data1 + zfs-autobackup v3.1.1 - (c)2021 E.H.Eefting (edwin@datux.nl) + + Selecting dataset property : autobackup:rsyncnet + Snapshot format : rsyncnet-%Y%m%d%H%M%S + Hold name : zfs_autobackup:rsyncnet + + #### Source settings + [Source] Datasets are local + [Source] Keep the last 10 snapshots. + [Source] Keep every 1 day, delete after 1 week. + [Source] Keep every 1 week, delete after 1 month. + [Source] Keep every 1 month, delete after 1 year. + + #### Selecting + [Source] rpool/data/subvol-111-disk-0: Selected + + #### Snapshotting + [Source] Creating snapshots rsyncnet-20220114000822 in pool rpool + + #### Target settings + [Target] Datasets on: root@xxxxx.rsync.net + [Target] Keep the last 10 snapshots. + [Target] Keep every 1 day, delete after 1 week. + [Target] Keep every 1 week, delete after 1 month. + [Target] Keep every 1 month, delete after 1 year. + [Target] Receive datasets under: data1 + + #### Synchronising + [Target] data1/rpool/data: Creating filesystem and parents + [Target] data1/rpool/data/subvol-111-disk-0@rsyncnet-20220114000822: receiving full +>>> Transfer 6% 16MB/s (total 2022MB, 1 minutes left) +``` +