🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

backer

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

backer

Distributed backup / file mirroring tool

latest
Source
npmnpm
Version
0.0.0
Version published
Maintainers
1
Created
Source

backer

wip distributed backup / file mirroring tool

Support via Gittip

Idea

Mirror your files between all your computers and servers, so when a harddrive breaks or a computer gets stolen you don't lose anything.

Like bittorrent sync, but open source and in node.js, so it runs on SmartOS too.

Like dropbox, but stores your data only on your machines. No third party - except possibly internet providers - involved.

Associated projects

  • backer-menubar

Possible features

  • revisions
  • webgui
  • public sharing
  • collaborative live editing? maybe just using the file system limits too much

Data structure

The filesystem is represented as a merkle tree, so backer can efficiently figure out what files changed.

Replication

On connection sync using merkle trees, then maybe use scuttlebutt and only send file diffs.

Problem: efficient tree diffing

Encryption

Since backer is only used for transferring data and never stores it on any server/computer but the user's, only transfor needs to be encrypted.

Encrypting your own harddrive is out of scope and there's plenty of tools that do this, one popular being truecrypt.

  • Maybe public/private key cryptography?

JS api

For maximum composability the transport part of the api will just be a duplex stream that is to be piped to another backer's duplex stream. This way it works over tcp, websockets, in memory, or over any another network or streaming interface.

var a = backer(__dirname + '/a').createStream();
var b = backer(__dirname + '/b').createStream();
a.pipe(b).pipe(a);

Over tcp it would look like this:

// computer A
var backer = require('backer');

var back = backer(__dirname);
net.createServer(function(con) {
  con.pipe(back.createStream()).pipe(con);
}).listen(PORT);

// computer B
var backer = require('backer');
var reconnect = require('reconnect');

var back = backer(__dirname);
reconnect(function(con) {
  con.pipe(back.createStream()).pipe(con);
}).listen(PORT);

There will be events emitted on the backer instance, which can then for example be fed to a web frontend.

Resources

Possible dependencies

Collaborators

There's a lot still to be figured out, so if you either are a mad scientist that juggles chainsaws while writing distributed systems, or want to be come one, this is the right place for you!

Plus, there's going to be need for designs, blog posts, a public facing website, etc.!

License

MIT

Keywords

distributed

FAQs

Package last updated on 17 Sep 2013

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