Socket
Socket
Sign inDemoInstall

backup-daemon

Package Overview
Dependencies
63
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    backup-daemon

A realtime differential backup daemon in nodejs.


Version published
Maintainers
1
Install size
2.93 MB
Created

Changelog

Source

v1.0.2

Changes

  • Migrated to typescript.

Readme

Source

backup-daemon

A realtime differential backup daemon in nodejs.

Installation

npm install backup-daemon -g

Usage

Local backup
# Create a realtime backup of Pictures into PicturesBackup:
backup-daemon Pictures/ PicturesBackup/

# Create a realtime backup of the file important.txt into important-backup.txt
backup-daemon important.txt important-backup.txt
Remote backup

For remove backup, a valid ssh destination have to be provided. In order to avoid the prompt asking for your password in every synchronization, you can create a passphraseless SSH key and copy it into your remote machine, this process is described in the section generate a SSH key.

# Create a realtime backup of Pictures into Pictures in a different machine using ssh
backup-daemon ~/Pictures/ pi@192.168.1.27:/home/pi/Pictures/

Generate a SSH key

This is an optional step to remove the password prompt asking for your password in remote backup.

# Leave all fields empty
$ ssh-keygen -t rsa -b 2048

$ ssh-copy-id user@server

Options

$ backup-daemon -h
Usage: backup-daemon source destination [options]

Options:
      --help     Show help                                             [boolean]
      --version  Show version number                                   [boolean]
  -w, --wait     Delay to do the backup in milliseconds after changes
                                                                 [default: 5000]
  -d, --delete   Deletes will be replicated in backup                  [boolean]
  -q, --quiet    Disable rsync logs                                    [boolean]
  -i, --ignore   Exclude a pattern from transfer                         [array]
  -l, --log      Log level
          [string] [choices: "debug", "info", "warn", "error"] [default: "info"]

Examples

Execute the backup 500 ms after changes, replicate deletes, ignore "folder1/", "My Text.txt" and hidden elements (files or folders that start by the character dot) and using log level debug:
$ backup-daemon source/ destination/ -w 500 -d -i folder1/ My\ Text.txt ".*" -l debug

FAQs

Last updated on 15 Mar 2023

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc