Problem:
Foreman-Maintain plugin throws error while taking backup from the foreman server. I am using the command : foreman-maintain backup offline /tmp/backup . Error comes like :
Backup config files:
/ Collecting config files to backup [FAIL]
undefined method `[]' for nil:NilClass
--------------------------------------------------------------------------------
Scenario [Backup] failed.
The following steps ended up in failing state:
[backup-config-files]
Resolve the failed steps and rerun
the command. In case the failures are false positives,
use --whitelist="backup-config-files"
Running Failed backup cleanup
Expected outcome:
The foreman-maintain plugin should complete the backup.
Foreman and Proxy versions:
1.23
Foreman and Proxy plugin versions:
1.23
Distribution and version:
1.23
Other relevant data:
I can see that the foreman-maintain plugin doesn’t works with standalone foreman as mentioned in the manual -
Backup and Restore in Foreman Maintain works on the following:
- Katello (>3.0)
- Foreman Proxy with Content (>3.0)
Backup and Restore support for standalone Foreman is currently in development.
Can you please let me know how much time will it take to be completed ?
Do we have any other strategy for the same currently ? I have to backup and restore foreman in 2 different servers (dev to prod environment).