Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More β†’
Socket
Sign inDemoInstall
Socket

datastore-backup

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

datastore-backup - npm Package Compare versions

Comparing version 1.0.0 to 1.0.2

CHANGELOG.md

99

build/main/bin/backup.js
#!/usr/bin/env ts-node
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
/*

@@ -9,65 +13,36 @@ * backup.ts

*/
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const meow_1 = __importDefault(require("meow"));
const cli = (0, meow_1.default)(`
Usage
$ foo
Options
--rainbow, -r Include a rainbow
--unicorn, -u Include a unicorn
--no-sparkles Exclude sparkles
Examples
$ foo
🌈 unicorns✨🌈
`, {
// importMeta: import.meta,
booleanDefault: undefined,
flags: {
projectId: {
type: 'string',
isRequired: true,
alias: 'p',
},
namespace: {
type: 'string',
alias: 'n',
},
bucket: {
type: 'string',
isRequired: true,
alias: 'b',
},
dir: {
type: 'string',
default: 'bak',
alias: 'd',
},
backupName: {
type: 'string',
},
},
const datastore_1 = require("@google-cloud/datastore");
const argparse_1 = require("argparse");
const ora_1 = __importDefault(require("ora"));
const datastore_backup_1 = require("../lib/datastore-backup");
// eslint-disable-next-line @typescript-eslint/no-var-requires
const { version } = require('../../package.json');
const parser = new argparse_1.ArgumentParser({
description: 'Backup Datastore.',
epilog: 'Please provide `GOOGLE_APPLICATION_CREDENTIALS` via the Environment!',
add_help: true,
});
/*
{
flags: {
rainbow: true,
unicorn: false,
sparkles: true
},
unnormalizedFlags: {
rainbow: true,
r: true,
unicorn: false,
u: false,
sparkles: true
},
…
parser.add_argument('-v', '--version', { action: 'version', version });
parser.add_argument('projectId', { help: 'Datastore project ID' });
parser.add_argument('bucket', { help: 'GCS bucket to store backup' });
parser.add_argument('-d', '--backupDir', {
default: 'bak',
help: 'prefix/dir within bucket (default: "%(default)s)"',
});
parser.add_argument('-n', '--backupName', {
help: 'name of backup (default: autogenerated)',
});
parser.add_argument('-s', '--namespace', { help: 'datastore namespace' });
const args = parser.parse_args();
async function main() {
const datastore = new datastore_1.Datastore({
projectId: args.projectId,
namespace: args.namespace,
}); //);
//
const spinner = (0, ora_1.default)().start('🌈 Unicorns! ✨🌈');
await (0, datastore_backup_1.dumpAllKinds)(datastore, args.bucket, args.backupName, args.backupDir, spinner);
return '';
}
*/
console.log(cli);
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFja3VwLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2Jpbi9iYWNrdXAudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFDQTs7Ozs7R0FLRzs7Ozs7QUFFSCxnREFBd0I7QUFFeEIsTUFBTSxHQUFHLEdBQUcsSUFBQSxjQUFJLEVBQ2Q7Ozs7Ozs7Ozs7OztDQVlELEVBQ0M7SUFDRSwyQkFBMkI7SUFDM0IsY0FBYyxFQUFFLFNBQVM7SUFDekIsS0FBSyxFQUFFO1FBQ0wsU0FBUyxFQUFFO1lBQ1QsSUFBSSxFQUFFLFFBQVE7WUFDZCxVQUFVLEVBQUUsSUFBSTtZQUNoQixLQUFLLEVBQUUsR0FBRztTQUNYO1FBQ0QsU0FBUyxFQUFFO1lBQ1QsSUFBSSxFQUFFLFFBQVE7WUFDZCxLQUFLLEVBQUUsR0FBRztTQUNYO1FBQ0QsTUFBTSxFQUFFO1lBQ04sSUFBSSxFQUFFLFFBQVE7WUFDZCxVQUFVLEVBQUUsSUFBSTtZQUNoQixLQUFLLEVBQUUsR0FBRztTQUNYO1FBQ0QsR0FBRyxFQUFFO1lBQ0gsSUFBSSxFQU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sS0FBSyxDQUFDLE9BQU8sQ0FBQyxLQUFLLENBQUMsQ0FBQyJ9

@@ -1,2 +0,1 @@

export * from './lib/async';
export * from './lib/number';
export * from './lib/datastore-backup';

@@ -13,4 +13,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
__exportStar(require("./lib/async"), exports);
__exportStar(require("./lib/number"), exports);
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7O0FBQUEsOENBQTRCO0FBQzVCLCtDQUE2QiJ9
__exportStar(require("./lib/datastore-backup"), exports);
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7O0FBQUEseURBQXVDIn0=
import { Datastore } from '@google-cloud/datastore';
import { Ora } from 'ora';
export declare function dumpAllKinds(datastore: Datastore, bucketName: string, backupName?: string | undefined, backupDir?: string, spinner?: Ora): Promise<string[]>;
export declare function dumpAllKinds(datastore: Datastore, bucketName: string, backupName?: string, backupDir?: string, spinner?: Ora): Promise<string[]>;
/** Returns a list of all Namespaces in a Datastore for the current namespace.
*/
export declare function getNamespaces(datastore: Datastore): Promise<string[]>;

@@ -30,21 +30,24 @@ "use strict";

const R = __importStar(require("ramda"));
async function dumpAllKinds(datastore, bucketName, backupName = undefined, backupDir = 'bak', spinner) {
async function dumpAllKinds(datastore, bucketName, backupName, backupDir = 'bak', spinner) {
spinner = spinner || (0, ora_1.default)({ isSilent: true });
spinner.start();
// spinner.text = 'Loading Namespaces';
// await runNamespaceQuery(datastore);
spinner.text =
`Loading Kinds for ${await datastore.getProjectId()}` +
(datastore.namespace ? `for namespace ${datastore.namespace}` : '');
const kindNames = await getKindNames(datastore);
spinner.succeed(`${kindNames.length} Kinds`).start();
const outputUrls = [];
backupName = backupName || (await getBackupDefaultName(datastore));
spinner.succeed(`backup to gs://${bucketName}/${backupDir}/${backupName}`);
const outputUrls = [];
for (const sublist of R.splitEvery(100, kindNames)) {
spinner.start();
const { outputUrl } = await dumpKinds(datastore, sublist, bucketName, backupDir, `${backupName}-${outputUrls.length}`, spinner);
outputUrls.push(outputUrl);
spinner.info(`backup to gs://${bucketName}/${backupDir}/${backupName}`);
spinner.info(`Dumping datastore ${await datastore.getProjectId()}` +
(datastore.namespace ? `for namespace ${datastore.namespace}` : ''));
try {
spinner.start(`Loading Kinds`);
const kindNames = await getKindNames(datastore);
spinner.succeed(`${kindNames.length} Kinds`).start();
for (const sublist of R.splitEvery(100, kindNames)) {
spinner.start();
const { outputUrl } = await dumpKinds(datastore, sublist, bucketName, backupDir, `${backupName}-${outputUrls.length}`, spinner);
outputUrls.push(outputUrl);
}
spinner.start().succeed(`written ${outputUrls}`);
}
spinner.start().succeed(`written ${outputUrls}`);
catch (error) {
spinner.fail(error.message);
throw error;
}
return outputUrls;

@@ -125,2 +128,2 @@ }

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0YXN0b3JlLWJhY2t1cC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9saWIvZGF0YXN0b3JlLWJhY2t1cC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQUEsZ0RBQXdCO0FBRXhCLDhDQUErQjtBQUMvQixnRUFBdUM7QUFDdkMseUNBQTJCO0FBRXBCLEtBQUssVUFBVSxZQUFZLENBQ2hDLFNBQW9CLEVBQ3BCLFVBQWtCLEVBQ2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QUFHLENBQUMsQ0FBQyxJQUFJLENBQUMsQ0FBQztJQUNuRSxPQUFPLEtBQUssQ0FBQyxNQUFNLENBQUMsQ0FBQyxDQUFDLEVBQUUsRUFBRSxDQUFDLENBQUMsQ0FBQyxDQUFDLFVBQVUsQ0FBQyxHQUFHLENBQUMsQ0FBQyxDQUFDO0FBQ2pELENBQUMifQ==

@@ -8,61 +8,36 @@ #!/usr/bin/env ts-node

*/
import meow from 'meow';
const cli = meow(`
Usage
$ foo
Options
--rainbow, -r Include a rainbow
--unicorn, -u Include a unicorn
--no-sparkles Exclude sparkles
Examples
$ foo
🌈 unicorns✨🌈
`, {
// importMeta: import.meta,
booleanDefault: undefined,
flags: {
projectId: {
type: 'string',
isRequired: true,
alias: 'p',
},
namespace: {
type: 'string',
alias: 'n',
},
bucket: {
type: 'string',
isRequired: true,
alias: 'b',
},
dir: {
type: 'string',
default: 'bak',
alias: 'd',
},
backupName: {
type: 'string',
},
},
import { Datastore } from '@google-cloud/datastore';
import { ArgumentParser } from 'argparse';
import ora from 'ora';
import { dumpAllKinds } from '../lib/datastore-backup';
// eslint-disable-next-line @typescript-eslint/no-var-requires
const { version } = require('../../package.json');
const parser = new ArgumentParser({
description: 'Backup Datastore.',
epilog: 'Please provide `GOOGLE_APPLICATION_CREDENTIALS` via the Environment!',
add_help: true,
});
/*
{
flags: {
rainbow: true,
unicorn: false,
sparkles: true
},
unnormalizedFlags: {
rainbow: true,
r: true,
unicorn: false,
u: false,
sparkles: true
},
…
parser.add_argument('-v', '--version', { action: 'version', version });
parser.add_argument('projectId', { help: 'Datastore project ID' });
parser.add_argument('bucket', { help: 'GCS bucket to store backup' });
parser.add_argument('-d', '--backupDir', {
default: 'bak',
help: 'prefix/dir within bucket (default: "%(default)s)"',
});
parser.add_argument('-n', '--backupName', {
help: 'name of backup (default: autogenerated)',
});
parser.add_argument('-s', '--namespace', { help: 'datastore namespace' });
const args = parser.parse_args();
async function main() {
const datastore = new Datastore({
projectId: args.projectId,
namespace: args.namespace,
}); //);
//
const spinner = ora().start('🌈 Unicorns! ✨🌈');
await dumpAllKinds(datastore, args.bucket, args.backupName, args.backupDir, spinner);
return '';
}
*/
console.log(cli);
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFja3VwLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2Jpbi9iYWNrdXAudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUNBOzs7OztHQUtHO0FBRUgsT0FBTyxJQUFJLE1BQU0sTUFBTSxDQUFDO0FBRXhCLE1BQU0sR0FBRyxHQUFHLElBQUksQ0FDZDs7Ozs7Ozs7Ozs7O0NBWUQsRUFDQztJQUNFLDJCQUEyQjtJQUMzQixjQUFjLEVBQUUsU0FBUztJQUN6QixLQUFLLEVBQUU7UUFDTCxTQUFTLEVBQUU7WUFDVCxJQUFJLEVBQUUsUUFBUTtZQUNkLFVBQVUsRUFBRSxJQUFJO1lBQ2hCLEtBQUssRUFBRSxHQUFHO1NBQ1g7UUFDRCxTQUFTLEVBQUU7WUFDVCxJQUFJLEVBQUUsUUFBUTtZQUNkLEtBQUssRUFBRSxHQUFHO1NBQ1g7UUFDRCxNQUFNLEVBQUU7WUFDTixJQUFJLEVBQUUsUUFBUTtZQUNkLFVBQVUsRUFBRSxJQUFJO1lBQ2hCLEtBQUssRUFBRSxHQUFHO1NBQ1g7UUFDRCxHQUFHLEVBQUU7WUFDSCxJQUFJLEVBQUUsUUFBUTtZQUNkLE9BQU8sRUFBRSxLQUFLO1lBQ2QsS0FBSyxFQUFFLEdBQUc7U0FDWDtRQUNELFVBQVUsRUFBRTtZQUNWLElBQUksRUFBRSxRQUFRO1NBQ2Y7S0FDRjtDQUNGLENBQ0YsQ0FBQztBQUNGOzs7Ozs7Ozs7Ozs7Ozs7O0VBZ0JFO0FBQ0YsT0FBTyxDQUFDLEdBQUcsQ0FBQyxHQUFHLENBQUMs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@@

export * from './lib/async';
export * from './lib/number';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxhQUFhLENBQUM7QUFDNUIsY0FBYyxjQUFjLENBQUMifQ==
export * from './lib/datastore-backup';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyx3QkFBd0IsQ0FBQyJ9
import { Datastore } from '@google-cloud/datastore';
import { Ora } from 'ora';
export declare function dumpAllKinds(datastore: Datastore, bucketName: string, backupName?: string | undefined, backupDir?: string, spinner?: Ora): Promise<string[]>;
export declare function dumpAllKinds(datastore: Datastore, bucketName: string, backupName?: string, backupDir?: string, spinner?: Ora): Promise<string[]>;
/** Returns a list of all Namespaces in a Datastore for the current namespace.
*/
export declare function getNamespaces(datastore: Datastore): Promise<string[]>;

@@ -5,21 +5,24 @@ import path from 'path';

import * as R from 'ramda';
export async function dumpAllKinds(datastore, bucketName, backupName = undefined, backupDir = 'bak', spinner) {
export async function dumpAllKinds(datastore, bucketName, backupName, backupDir = 'bak', spinner) {
spinner = spinner || ora({ isSilent: true });
spinner.start();
// spinner.text = 'Loading Namespaces';
// await runNamespaceQuery(datastore);
spinner.text =
`Loading Kinds for ${await datastore.getProjectId()}` +
(datastore.namespace ? `for namespace ${datastore.namespace}` : '');
const kindNames = await getKindNames(datastore);
spinner.succeed(`${kindNames.length} Kinds`).start();
const outputUrls = [];
backupName = backupName || (await getBackupDefaultName(datastore));
spinner.succeed(`backup to gs://${bucketName}/${backupDir}/${backupName}`);
const outputUrls = [];
for (const sublist of R.splitEvery(100, kindNames)) {
spinner.start();
const { outputUrl } = await dumpKinds(datastore, sublist, bucketName, backupDir, `${backupName}-${outputUrls.length}`, spinner);
outputUrls.push(outputUrl);
spinner.info(`backup to gs://${bucketName}/${backupDir}/${backupName}`);
spinner.info(`Dumping datastore ${await datastore.getProjectId()}` +
(datastore.namespace ? `for namespace ${datastore.namespace}` : ''));
try {
spinner.start(`Loading Kinds`);
const kindNames = await getKindNames(datastore);
spinner.succeed(`${kindNames.length} Kinds`).start();
for (const sublist of R.splitEvery(100, kindNames)) {
spinner.start();
const { outputUrl } = await dumpKinds(datastore, sublist, bucketName, backupDir, `${backupName}-${outputUrls.length}`, spinner);
outputUrls.push(outputUrl);
}
spinner.start().succeed(`written ${outputUrls}`);
}
spinner.start().succeed(`written ${outputUrls}`);
catch (error) {
spinner.fail(error.message);
throw error;
}
return outputUrls;

@@ -97,2 +100,2 @@ }

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0YXN0b3JlLWJhY2t1cC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9saWIvZGF0YXN0b3JlLWJhY2t1cC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLElBQUksTUFBTSxNQUFNLENBQUM7QUFFeEIsT0FBTyxHQUFZLE1BQU0sS0FBSyxDQUFDO0FBQy9CLE9BQU8sV0FBVyxNQUFNLGNBQWMsQ0FBQztBQUN2QyxPQUFPLEtBQUssQ0FBQyxNQUFNLE9BQU8sQ0FBQztBQUUzQixNQUFNLENBQUMsS0FBSyxVQUFVLFlBQVksQ0FDaEMsU0FBb0IsRUFDcEIsVUFBa0IsRUFDbEIsYUFBaUMsU0FBUyxFQUMxQyxTQUFTLEdBQUcsS0FBSyxFQUNqQixPQUFhO0lBRWIsT0FBTyxHQUFHLE9BQU8sSUFBSSxHQUFHLENBQUMsRUFBRSx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UFDLENBQUMsTUFBTSxDQUFDLFNBQVMsQ0FBQyxDQUFDO0lBQ3ZFLE1BQU0sQ0FBQyxRQUFRLENBQUMsR0FBRyxNQUFNLFNBQVMsQ0FBQyxRQUFRLENBQUMsS0FBSyxDQUFDLENBQUM7SUFDbkQsTUFBTSxVQUFVLEdBQUcsUUFBUSxDQUFDLEdBQUcsQ0FBQyxDQUFDLE1BQU0sRUFBRSxFQUFFLENBQUMsTUFBTSxDQUFDLFNBQVMsQ0FBQyxHQUFHLENBQUMsQ0FBQyxJQUFJLENBQUMsQ0FBQztJQUN4RSxPQUFPLFVBQVUsQ0FBQztBQUNwQixDQUFDO0FBQ0Q7OztHQUdHO0FBQ0gsS0FBSyxVQUFVLFlBQVksQ0FBQyxTQUFvQjtJQUM5QyxNQUFNLEtBQUssR0FBRyxTQUFTLENBQUMsV0FBVyxDQUFDLFVBQVUsQ0FBQyxDQUFDLE1BQU0sQ0FBQyxTQUFTLENBQUMsQ0FBQztJQUNsRSxNQUFNLENBQUMsUUFBUSxDQUFDLEdBQUcsTUFBTSxTQUFTLENBQUMsUUFBUSxDQUFDLEtBQUssQ0FBQyxDQUFDO0lBQ25ELE1BQU0sS0FBSyxHQUFHLFFBQVEsQ0FBQyxHQUFHLENBQUMsQ0FBQyxNQUFNLEVBQUUsRUFBRSxDQUFDLE1BQU0sQ0FBQyxTQUFTLENBQUMsR0FBRyxDQUFDLENBQUMsSUFBSSxDQUFDLENBQUM7SUFDbkUsT0FBTyxLQUFLLENBQUMsTUFBTSxDQUFDLENBQUMsQ0FBQyxFQUFFLEVBQUUsQ0FBQyxDQUFDLENBQUMsQ0FBQyxVQUFVLENBQUMsR0FBRyxDQUFDLENBQUMsQ0FBQztBQUNqRCxDQUFDIn0=
{
"name": "datastore-backup",
"bin": "build/main/bin/backup.js",
"version": "1.0.0",
"version": "1.0.2",
"description": "Programatic Backup of Google Cloud Datastore",

@@ -6,0 +6,0 @@ "main": "build/main/index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚑️ by Socket Inc