docs: Add notes on reclaiming disk space after pruning

Change-Id: I3eab885ac76a420296c72396dcb5b12e4b5acb53
This commit is contained in:
David Moreau Simard 2020-10-26 10:47:58 -04:00
parent c635b34b69
commit f3db07dfdf
No known key found for this signature in database
GPG Key ID: 7D4729EC4E64E8B7
1 changed files with 7 additions and 0 deletions

View File

@ -89,6 +89,13 @@ ara playbook prune
------------------
Pruning keeps the database size in check and the performance optimal by deleting older playbooks.
Unused disk space can be reclaimed after pruning depending on your database backend, for example:
- `sqlite <https://sqlite.org/lang_vacuum.html>`_: ``sqlite3 ~/.ara/server/ansible.sqlite vacuum``
- `mysql/mariadb <https://mariadb.com/kb/en/optimize-table/>`_: ``mysqlcheck --optimize --databases ara``
- `postgresql <https://www.postgresql.org/docs/current/app-vacuumdb.html>`_: ``vacuumdb --dbname=ara``
It is recommended to run this command inside a task scheduler (such as cron) since the server does not run this command
automatically.