raucao / rs-backup

Backup/restore data from/to any remoteStorage account
https://www.npmjs.com/package/rs-backup
10 stars 4 forks source link
backup cli javascript npm-package remotestorage restore unhosted

npm

remoteStorage Backup/Restore

This program allows you to backup your data from a remoteStorage account to a local hard drive, and restore it either to the same account, or another account or server.

Install

With node.js and npm installed on your computer:

npm install -g rs-backup

Usage

rs-backup -o path_to_backup_dir
rs-restore -i path_to_backup_dir

Note that the backup directory will be emptied first, in order to prevent data inconsistencies that would break your apps. Thus, if you want to preserve older versions of your data, back them up to different directories (e.g. incl. the backup date).

You can optionally pass a user address and an authorization token via CLI arguments, for example when setting up a regular backup job. See rs-backup --help for info.