Files
research/building-tools/drive-mirror.md
T
2026-02-19 10:12:39 +00:00

409 B

Tutorial: Drive Mirroring

Sync Two Drives

const Hyperdrive = require('hyperdrive')
const mirror = require('mirror-drive')

const local = new Hyperdrive(corestore)
const remote = new Hyperdrive(corestore2)

const m = mirror(local, remote)
await m.done() // Full sync
m.destroy() // Pause

Diff Mirror: await mirror({start: local.version}, remote)

Use: Local fs <-> P2P, multi-device.