cc restore

Restores a PostgreSQL database from its CC copy (<db_name>-CC-COPY). The original database is dropped and recreated from the copy.

Usage

cc restore [DB_NAME]

If no database name is given, CC reads it from the active project's launch.json.

Example

cc restore my_project_v17
# → Drops my_project_v17, restores from my_project_v17-CC-COPY

cc restore
# → Detects DB from launch.json and restores it

You must run cc copy first. If no copy exists, the command will abort.

  • cc copy — create a copy of the database

Last updated

Was this helpful?