When backing up the Foreman database using "foreman-rake db:dump" is it
possible to specify a destination folder for the backup file ?
Thanks
Adrian
When backing up the Foreman database using "foreman-rake db:dump" is it
possible to specify a destination folder for the backup file ?
Thanks
Adrian
I've answered by own question Did the sensible thing and looked at the
source for the backup task (/usr/share/foreman/lib/tasks/backup.rake) and
found it has a "destination" parameter.
Thanks
Adrian
Add "destination=/path/to/dump.sql" to the end of the command. Note that
when using foreman-rake, the command executes as the 'foreman' user
rather than your current login, so it will need permission to write to
the destination.
–
Dominic Cleal
dominic@cleal.org