Actions
Bug #19281
closedWhile running online backup tasks as a root user via cron fails with error " sh: runuser: command not found "
Status:
Closed
Priority:
Normal
Assignee:
Category:
Backup & Restore
Target version:
Difficulty:
Triaged:
Bugzilla link:
Description
Description of problem:
Online backup does not work via cronjob.
Backup log:
Creating backup folder /shared/data/satellite-backup/Backing up config files...
tar: Removing leading `/' from member names
Done.
Backing up postgres db...
sh: runuser: command not found
sh: runuser: command not found
Done.
Backing up mongo db...
Done.
Backing up Pulp data...
tar: Removing leading `/' from member names
Done.
- BACKUP Complete, contents can be found in: /shared/data/satellite-backup/ **
Steps to Reproduce:
1. Setup a cronjob for online backup using below steps:
As a root user
- crontab -e
Add the cron entry as below:
00 23 * * * /usr/bin/katello-backup --online-backup /backup/ >> /backup/backup.log 2>&1
2. Monitor the backup.log file.
Actual results:
While backing up foreman and candlepin database fail with errors:
Backing up postgres db...
sh: runuser: command not found
sh: runuser: command not found
Done.
Expected results:
The katello-backup script should work via cron job too.
Actions