Giter VIP home page Giter VIP logo

rs-backup's Introduction

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.

rs-backup's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

galfert rosano

rs-backup's Issues

Unable to backup files with pound signs in their filename

Follow-up from #11, this is on 1.6.0

I uploaded a file named Paranoïd #test.jpg using Sharesome to my account.

Here's the path from the server log:

/gregkare/public/shares/thumbnails/180412-1401-Paranoi%CC%88d%20%23test.jpg.png

When trying to backup my account using rs-backup I get a 404 on that file. Path from the log:

/gregkare/public/shares/thumbnails/180412-1401-Paranoi%CC%88d%20`

It cuts off right after the space, and before the #

Progress update for big files

With big files or a slow connection the download can easily seems stuck.
Would be nice have progress updates for each file.

Output could be silenced

I run this via node exec and it crashes with RangeError [ERR_CHILD_PROCESS_STDIO_MAXBUFFER]: stdout maxBuffer length exceeded, which I currently fix by setting its maxBuffer to 5 * 1024 * 1024, but I suppose a --silent flag could be generally useful as well.

fills screen with garbage, regardless of arguments passed

to reproduce
Under macOS 11.6.1, with node v14.16.1 installed:

  1. install with npm install -g rs-backup
  2. run with rs-backup

Expected outcome: console message: 'Please provide a backup directory path via the --backup-dir option'

Actual outcome: screen filled with garbage:
garbage from rs-backup

Add auth

Maybe. Not sure yet if it makes sense.

Improve console output

Was thinking about a few things:

  • Output on a single line, or at least not one per object write
  • Output for directory ops
  • Some kind of progress indicator or at least spinner
  • Final summary about number of objects and size backed up

Hash in directory name creates endless loop

I had a directory in my storage whose name began with a # character. At some point, it would get into a loop recursively creating directories with other directory names in its backup dir.

Add discovery

Storage base URL should be detected automatically.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.