ubuntu:backups:rdiff_backup
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
ubuntu:backups:rdiff_backup [2019/11/26 20:38] – peter | ubuntu:backups:rdiff_backup [2020/07/15 09:30] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 42: | Line 42: | ||
* The script to launch the backup has to be on host1, which will connect to host2 by SSH and retrieves data from it. | * The script to launch the backup has to be on host1, which will connect to host2 by SSH and retrieves data from it. | ||
* Both computers must have the rdiff-backup script installed, preferably at the same version. | * Both computers must have the rdiff-backup script installed, preferably at the same version. | ||
- | |||
- | On the host1 (the command is performed using the root account): | ||
---- | ---- | ||
===== Create a key pair to log in via SSH ===== | ===== Create a key pair to log in via SSH ===== | ||
+ | |||
+ | On the host1 (the command is performed using the root account): | ||
<code bash> | <code bash> | ||
- | ssh-keygen -t rsa | + | sudo ssh-keygen -t rsa |
</ | </ | ||
Line 63: | Line 63: | ||
</ | </ | ||
+ | ---- | ||
+ | |||
+ | ===== Configure host2 ===== | ||
- | On host2 (command is performed using the root account): | + | On host2 (command is performed using the root account) |
We create (if there is no .ssh directory already) and set it appropriate permissions: | We create (if there is no .ssh directory already) and set it appropriate permissions: | ||
Line 106: | Line 109: | ||
===== Restart SSHD ===== | ===== Restart SSHD ===== | ||
- | |||
<code bash> | <code bash> |
ubuntu/backups/rdiff_backup.1574800722.txt.gz · Last modified: 2020/07/15 09:30 (external edit)