From 386dc0fd743255ccb4a2048b2057aaac3c6235bb Mon Sep 17 00:00:00 2001 From: DatuX Date: Fri, 14 Jan 2022 00:06:14 +0100 Subject: [PATCH] Updated Backup to rsync.net via ZFS (markdown) --- Backup-to-rsync.net-via-ZFS.md | 34 ++++++++++++++++++++++++++++------ 1 file changed, 28 insertions(+), 6 deletions(-) diff --git a/Backup-to-rsync.net-via-ZFS.md b/Backup-to-rsync.net-via-ZFS.md index 9b80b11..6b1ee5e 100644 --- a/Backup-to-rsync.net-via-ZFS.md +++ b/Backup-to-rsync.net-via-ZFS.md @@ -4,19 +4,41 @@ This tutorial will show you how to use it. ## Setup ssh keys +To make sure your server can login via ssh automaticly: + ```console -/usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "/root/.ssh/id_rsa.pub" -/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed -/usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys +[root@pve1 ~]# ssh-copy-id root@xxxxx.rsync.net +... Password for root@xxxxx.rsync.net: Number of key(s) added: 1 - -Now try logging into the machine, with: "ssh 'root@xxxxx.rsync.net'" -and check to make sure that only the key(s) you wanted were added. +... ``` +## Find your target + +Login to findout the name of the pool you want to use. (rsync.net created it for you) + +```console +[root@pve1 ~]# ssh root@xxxxx.rsync.net +Last login: Thu Jan 13 23:25:48 2022 from .... +FreeBSD 12.2-RELEASE-p3 GENERIC + +Welcome to FreeBSD! + +... +root@zh2040b:~ # zfs list +NAME USED AVAIL REFER MOUNTPOINT +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 the filesystems that your want to backup: + ```console [root@pve1 ~]# zfs set autobackup:rsync=true rpool/data/subvol-111-disk-0 ```