Backing up the foreman database

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 :slight_smile: 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

··· On Tuesday, 26 July 2016 13:43:09 UTC+1, Adrian Cunnelly wrote: > > 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 > >

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.

··· On 26/07/16 13:43, Adrian Cunnelly wrote: > When backing up the Foreman database using "foreman-rake db:dump" is it > possible to specify a destination folder for the backup file ?


Dominic Cleal
dominic@cleal.org