1.0.8 • Published 11 months ago

gdrive-backup-cron v1.0.8

Weekly downloads
-
License
ISC
Repository
github
Last release
11 months ago

gdrive-backup-cron

const BackupService = require("gdrive-backup-cron");

let service = new BackupService({
  drive: {
    auth: {
      /* google service account configuration here*/
    },
    folder: "google drive shared folder id here",
    keep: 1,
  },
  sourceFolder: "source folder here",
  auto: {
    cron: "00 00 00 * * *",
    timezone: "Turkey",
  },
});

service.on("backup", (name, id) => {});
service.on("restore", (name, id) => {});

// local disk
service.backup({ saveTo: "./test.zip" }).then(() => {
  service.restore({ backupPath: "./test.zip" }).then(() => {});
});

// google drive
service.backup({ backupName: "test.zip" }).then(() => {
  service.restore({ backupName: "test.zip" }).then(() => {});
});
1.0.8

11 months ago

1.0.7

11 months ago

1.0.6

11 months ago

1.0.5

11 months ago

1.0.4

11 months ago

1.0.3

11 months ago

1.0.2

11 months ago

1.0.1

11 months ago