Как изменить ssh_args в конфигурации rsnapshot?

Используйте Опцию-H, чтобы сохранить Hardlinks и прочитать страницу справочника.

2
задан 4 January 2013 в 20:28
3 ответа

The rsnapshot man page seems to imply that you add the per-backup-point arguments as a comma separated list after the destination, the example they give is

backup /var/ localhost/ one_fs=1

This is the same as the other examples, but notice the fourth column. This is how you specify per-backup-point options to over-ride global settings. This extra parameter can take several options, separated by commas.

so I guess you would use

backup /var/ localhost/ ssh_args=-p456
6
ответ дан 3 December 2019 в 09:18

Portu da həmin istifadəçi üçün qlobal olaraq uyğun ~ / .ssh / config daxilində qura bilərsiniz:

Host example.com
Port 1234

Bu şəkildə SSH ilə əlaqəli hər yerdən alınacaq və bunu hər dəfə əl ilə təyin etmək məcburiyyətində qalmayacaqsınız.

Bunun daha yaxşı bir həll olduğunu söyləmək, sadəcə alternativdir.

0
ответ дан 3 December 2019 в 09:18

rsnapshot.conf — это файл, разделенный TAB, поэтому ssh_args может даже содержать пробелы. Мой выглядит так:

backup  root@HOSTNAME:/ HOSTNAME/   ssh_args=-p 2220 -i /ssh-id -o StrictHostKeychecking=no
0
ответ дан 13 May 2020 в 18:37

Теги

Похожие вопросы