Please follow the steps below to take the local backup that can be imported into the NeetoDeploy addon.
PostgreSQL
We use the pg_restore command to import the backup. We can use the pg_dump command to take the backup locally. However, we cannot import a plain SQL text file in NeetoDeploy.
Please use the following command to take the backup:
pg_dump -Fc -v -h <HOST_NAME> -U <USERNAME> -a <PASSWORD> -d <DB_NAME> -f backup.dump
Redis
We use Riot for importing and exporting data for Redis addon. We only support .json
file for importing data. Please refer riot installation steps and install the tool.
Please use the following command to take the backup:
riot -a $REDIS_PASSWORD -h $REDIS_HOSTNAME file-export backup.json