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

leancloud-backup-data-module

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

leancloud-backup-data-module

Module for leancloud auto backup script, using cronjob & leancloud restful api

  • 2.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

leancloud-backup-data-module

export leancloud data using cronJob

NPM

Install

$ npm install --save leancloud-backup-data-module

Usage

const backupModule = require('leancloud-backup-data-module');

const CronStatement = '* * 7 * * *' 
// CronJob expression, for example, it will run at AM7:00

const config = {
  leancloudId: 'leancloudId',
  leancloudKey: 'leancloud_master_key' + ',master',
  email: 'yourEmail'
}
// leancloudId: leancloud app id,
// leancloudKey: leancloud master key, NOTICE: ',master' CANNOT be removed

const DOWNLOAD_PATH = './backup/folder/'
// download backup file path

const isUS = true // is leancloud application in us node or not 
// if using leancloud US : true

backupModule(CronStatement, config, DOWNLOAD_PATH, isUS)

Keywords

FAQs

Package last updated on 19 Apr 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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