Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
vms:invoiceninja [2015/09/04 02:42] admin [Create a New Nginx Server Block] |
vms:invoiceninja [2015/09/04 02:58] (current) admin [Backup the Database] |
||
---|---|---|---|
Line 276: | Line 276: | ||
Directing a web browser to your VM's IP should now display the **Invoice Ninja Setup** page, enjoy ! | Directing a web browser to your VM's IP should now display the **Invoice Ninja Setup** page, enjoy ! | ||
+ | |||
+ | ---- | ||
+ | ==== Backup the Database ==== | ||
+ | |||
+ | For development purposes it might sometimes be usefull to make a backup of the database at a certain state. To do that, use the ''%%mysqldump%%'' command: | ||
+ | |||
+ | **backup**: | ||
+ | <code> | ||
+ | > mysqldump -uininja -p ininja > /path/to/ininja-state.sql | ||
+ | Enter password: | ||
+ | </code> | ||
+ | |||
+ | **restore**: | ||
+ | <code> | ||
+ | > mysql -uininja -p ininja < /path/to/ininja-state.sql | ||
+ | Enter password: | ||
+ | </code> |