Server for archiving files via Dat. Upload files with dat-push.
npm install -g dat-archiver
On a server run:
dat-archiver my-backup-server --dir=archive_directory
Creates a dat-archiver server with name, with the server key
my-backup-server. If key is not set, a 16 digit string will be generated. Dats files are saved to the current directory or
On your local computer with Dat files:
dat-push my-backup-server --dir=directory_to_backup
This will push the files to your server over peer to peer networks.
Create an archiver, options include:
dir: 'dats' // directory to store hypercore archives
Create a new peer-network server with name,
serverKey can be any string. It will be used to tell where dat-push should connect to.
New connection on
Key received from
dat-push. Emitted immediately before
getArchive(key) is called.
Archive replication starting for
Archive replication ended for
archiveKey. Note: this could be a successful replication, or the client may have disconnected.