You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With a remote system, it is not possible to run the first play without error.
If you run rsnapshot-remote-host first, it fails because the user has not yet been created by rsnapshot-backup-host.
If you run rsnapshot-backup-host first, it fails because the user has not yet been created by rsnapshot-remote-host.
The best you can do is run rsnapshot-backup-host, which creates the user on the host, but errors later fetching the remote user key, then rsnapshot-remote-host, which is then successful, and finally rsnapshot-backup-host again, which is then successful.
However, my play for rsnapshot-remote-host is the trivial:
Interesting question. While I am actively using both roles, I do not set new backup servers very often (mostly new nodes to be backed) up, so I don't think remember experiencing an issue with this.
The foolproof setup method is this:
Run rsnapshot-backup-host on the host pulling the backups, with no rsnapshot_backups configured
then, for each host you want to pull backups from (or all at once)
configure relevant rsnapshot_backups
Run rsnapshot-remote-host on the host you want to pull the backup from
Run rsnapshot-backup-host on the host pulling the backups
However, this rather complicated procedure is not really required (I'm not using it either). Instead, it should be possible to simply run rsnapshot-backup-host (with rsnapshot_backups configured) and then run rsnapshot-remote-host. In this case, you will see an error on the Check that ssh to hosts works task during the rsnapshot-backup-host run, but that is only of informative nature (totally makes sense since you haven't configured the host you are pulling backups frmo yet), and does not lead to failure.
With a remote system, it is not possible to run the first play without error.
rsnapshot-remote-host
first, it fails because the user has not yet been created byrsnapshot-backup-host
.rsnapshot-backup-host
first, it fails because the user has not yet been created byrsnapshot-remote-host
.The best you can do is run
rsnapshot-backup-host
, which creates the user on the host, but errors later fetching the remote user key, thenrsnapshot-remote-host
, which is then successful, and finallyrsnapshot-backup-host
again, which is then successful.However, my play for
rsnapshot-remote-host
is the trivial:The above could have been created automatically, given the
backup_host
variable(s) has all the info needed.Could the two roles not be combined, then it could all be carried out with one play, and without error?
The text was updated successfully, but these errors were encountered: