1.3. Maintenance

1.3.1. Backup

All data in Cyclos is stored in the database. Making a backup of the database can be done using the pg_dump command. The only file that you need to back-up (only once) will be the cyclos.properties configuration file. The database can be backed up manually as follows (in this example the name of the database is cyclos4 the username cyclos and the command will prompt for the password cyclos):

pg_dump –username=cyclos –password -hlocalhost cyclos4 > cyclos4.sql

1.3.2. Restore

If you want to start using cyclos with the data from a backup. You can just import the backed up database. In this example the name of the database is cyclos4 the username cyclos and command will prompt for the password cyclos the name of the backup is cyclos4.sql make sure to specify the path if your not in the same directory as the file:

psql –username=cyclos –password -hlocalhost cyclos4 < cyclos4.sql