1. Backup the database by running the below command :
    • pg_dump -O -U restya -W restyaboard > "/usr/share/nginx/html/restyaboard_database.sql"
  2. Backup the user uploaded files by creating the zip file from the media folder of your Restyaboard files which is in the path /usr/share/nginx/html/restyaboard by running the below command:
    • cd /usr/share/nginx/html/restyaboard
    • zip -r media.zip media/
  3. For restoring the database, please run the following command:
    • psql -h localhost -d restyaboard -U restya -W < "/usr/share/nginx/html/restyaboard_database.sql"
  4. For restoring the user uploaded files, please unzip the media zip file in /usr/share/nginx/html/restyaboard by running the below command:
    • cd /usr/share/nginx/html/restyaboard
    • unzip media.zip