Saving backups is always a good choice, whether it is to keep data safe or to share with others.
Faraday configuration and evidence backup¶
Faraday server stores configuration, processed reports and saves evidence in the directory
Remember to do a backup of this directory of the user running faraday-server.
In order to create a backup for your database, follow these steps:
Stop Faraday Server.
sudo service faraday-service stop
In order to backup your Faraday database, execute the PostgreSQL tool:
sudo pg_dump faraday > backup_file
Where faraday is the default name of Faraday's database and backup_file is the file where the pg_dump will save your data.
Start the Faraday Server
sudo service faraday-service start
To restore a previously created backup turn again Faraday Server off and execute:
sudo service faraday-service stop sudo psql faraday < backup_file sudo service faraday-service start
To restore the backup you need to have the database empty.
For more information about PostgreSQL Backup follow this link