forked from third-party-mirrors/zfs_autobackup
Updated README
This commit is contained in:
parent
2a300bbcba
commit
3a45951361
32
README.md
32
README.md
@ -17,6 +17,7 @@
|
|||||||
* More robust error handling.
|
* More robust error handling.
|
||||||
* Prepared for future enhanchements.
|
* Prepared for future enhanchements.
|
||||||
* Supports raw backups for encryption.
|
* Supports raw backups for encryption.
|
||||||
|
* Custom SSH client config.
|
||||||
|
|
||||||
## Introduction
|
## Introduction
|
||||||
|
|
||||||
@ -226,7 +227,8 @@ Here you find all the options:
|
|||||||
|
|
||||||
```console
|
```console
|
||||||
[root@server ~]# zfs-autobackup --help
|
[root@server ~]# zfs-autobackup --help
|
||||||
usage: zfs-autobackup [-h] [--ssh-source SSH_SOURCE] [--ssh-target SSH_TARGET]
|
usage: zfs-autobackup [-h] [--ssh-config SSH_CONFIG]
|
||||||
|
[--ssh-source SSH_SOURCE] [--ssh-target SSH_TARGET]
|
||||||
[--keep-source KEEP_SOURCE] [--keep-target KEEP_TARGET]
|
[--keep-source KEEP_SOURCE] [--keep-target KEEP_TARGET]
|
||||||
[--no-snapshot] [--allow-empty] [--ignore-replicated]
|
[--no-snapshot] [--allow-empty] [--ignore-replicated]
|
||||||
[--no-holds] [--resume] [--strip-path STRIP_PATH]
|
[--no-holds] [--resume] [--strip-path STRIP_PATH]
|
||||||
@ -248,6 +250,8 @@ positional arguments:
|
|||||||
|
|
||||||
optional arguments:
|
optional arguments:
|
||||||
-h, --help show this help message and exit
|
-h, --help show this help message and exit
|
||||||
|
--ssh-config SSH_COFNIG
|
||||||
|
Custom SSH client config
|
||||||
--ssh-source SSH_SOURCE
|
--ssh-source SSH_SOURCE
|
||||||
Source host to get backup from. (user@hostname)
|
Source host to get backup from. (user@hostname)
|
||||||
Default None.
|
Default None.
|
||||||
@ -325,6 +329,32 @@ Host *
|
|||||||
ControlPersist 3600
|
ControlPersist 3600
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Or more advanced
|
||||||
|
```console
|
||||||
|
Host *
|
||||||
|
StrictHostKeyChecking yes
|
||||||
|
UpdateHostKeys ask
|
||||||
|
GSSAPIAuthentication no
|
||||||
|
ForwardAgent no
|
||||||
|
HashKnownHosts no
|
||||||
|
CheckHostIP yes
|
||||||
|
ConnectionAttempts 3
|
||||||
|
ExitOnForwardFailure yes
|
||||||
|
Compression yes
|
||||||
|
ServerAliveCountMax 4
|
||||||
|
ServerAliveInterval 5
|
||||||
|
TCPKeepAlive yes
|
||||||
|
ControlMaster auto
|
||||||
|
ControlPath ~/.ssh/control-master-%r@%h:%p
|
||||||
|
ControlPersist 3600
|
||||||
|
AddKeysToAgent no
|
||||||
|
IdentityFile ~/.ssh/id_ed25519-backup
|
||||||
|
IdentityFile ~/.ssh/id_rsa-backup
|
||||||
|
User root
|
||||||
|
SendEnv LANG LC_*
|
||||||
|
LogLevel INFO
|
||||||
|
```
|
||||||
|
|
||||||
This will make all your ssh connections persistent and greatly speed up zfs-autobackup for jobs with short intervals.
|
This will make all your ssh connections persistent and greatly speed up zfs-autobackup for jobs with short intervals.
|
||||||
|
|
||||||
Thanks @mariusvw :)
|
Thanks @mariusvw :)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user