🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

lisk-plugin-backup

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lisk-plugin-backup

Backup your chain data periodically

latest
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

Lisk Plugin Backup

npm

Installation

npm install lisk-plugin-backup
# or
yarn add lisk-plugin-backup

Getting started

// src/application/index.js

import { BackupPlugin } from 'lisk-plugin-backup';

app.registerPlugin(BackupPlugin);

Usage

Once configured, the plugin will backup the data when appropriate. Currently, only forger-info are supported, and they will be backup'ed every time you forge a block.

Configuration

The plugin is designed to support a number of ways to backup the data. So far only the s3 adapter is available.

// src/application/index.js

const appConfig = utils.objects.mergeDeep({}, configDevnet, {
  plugins:  {
      "backup": {
          "forgerInfo": {
              "enable": true,
              "adapter": "s3",
              "adapterParams": {
                  "accessKey": "YOUR_ACCESS_KEY",
                  "privateKey": "YOUR_PRIVATE_KEY",
                  "region": "YOUR_REGION",
                  "endpoint": "YOUR_BUCK_HOSTNAME_WITHOUT_SCHEME",
                  "objectPath": "DESTINATION_PATH"
              }
          }
      }
  },
});

const app = Application.defaultApplication(genesisBlockDevnet, appConfig); 

Keywords

lisk

FAQs

Package last updated on 30 Apr 2021

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