Updated Backup to rsync.net via ZFS (markdown)
@ -4,19 +4,41 @@ This tutorial will show you how to use it.
|
|||||||
|
|
||||||
## Setup ssh keys
|
## Setup ssh keys
|
||||||
|
|
||||||
|
To make sure your server can login via ssh automaticly:
|
||||||
|
|
||||||
```console
|
```console
|
||||||
/usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "/root/.ssh/id_rsa.pub"
|
[root@pve1 ~]# ssh-copy-id root@xxxxx.rsync.net
|
||||||
/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
|
|
||||||
Password for root@xxxxx.rsync.net:
|
Password for root@xxxxx.rsync.net:
|
||||||
|
|
||||||
Number of key(s) added: 1
|
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 filesystems
|
||||||
|
|
||||||
|
Select the filesystems that your want to backup:
|
||||||
|
|
||||||
```console
|
```console
|
||||||
[root@pve1 ~]# zfs set autobackup:rsync=true rpool/data/subvol-111-disk-0
|
[root@pve1 ~]# zfs set autobackup:rsync=true rpool/data/subvol-111-disk-0
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user