For the embedded PGSQL database, include a (default) option to keep x days of backups on the local appliance, and schedule this during installation. This should be backed up to some default 'backup' folder on the unit, and the scheduled backup should be configured as part of this process.
We can then (using tools like rsync) copy off these backups for further resilience.