0.6.0 • Published 1 year ago

quick-restore v0.6.0

Weekly downloads
2
License
MIT
Repository
github
Last release
1 year ago

quick-restore

quick-restore is a cli tool which speeds up the tedious task of restoring backups.

Currently supports:

Sources:

  • Local files
  • S3
  • Google Cloud Storage

Targets:

  • MSSQL

Usage

Install

npm install quick-restore -g

Restore a workspace

quick-restore

Restore a local file

quick-restore <filepath>

Setup workspace

  • Create config file at <working-dir>/quick-restore/config.json

Example S3:

{
  "source": {
    "client": "s3",
    "connection": {
      "secretAccessKey": "1234",
      "accessKeyId": "1234",
      "bucket": "my-bucket"
    },
    "prefix": "sqlbackup/"
  },
  "target": {
    "client": "mssql",
    "connection": {
      "server": "127.0.0.1",
      "username": "sa",
      "password": "1234",
      "database": "northwind"
    },
    "script": "./scrub.sql"
  }
}

Example GCS:

{
  "source": {
    "client": "gcs",
    "connection": {
      "bucket": "my-bucket",
      "keyFilePath": "/path/to/keyFile.json"
    },
    "prefix": "sqlbackup/"
  },
  "target": {
    "client": "mssql",
    "connection": {
      "server": "127.0.0.1",
      "username": "sa",
      "password": "1234",
      "database": "northwind"
    },
    "script": "./scrub.sql"
  }
}

Setup and download your project's key file by following the instructions here: https://cloud.google.com/docs/authentication/getting-started

Troubleshooting

Connection refused

When using MSSQL, the TCP/IP connection must be enabled. See this link on how to enable it:

Set file system permissions

The restoring process might be failing due to insufficient file system permissions for the database engine. Permissons must be granted to the folder where the database file is downloaded and read from. See this link on how to resolve it:

0.5.0

1 year ago

0.6.0

1 year ago

0.4.0

4 years ago

0.3.0

5 years ago

0.2.0

5 years ago

0.1.0

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago