Skip to content

CLI utility to backup and restore a database from IPFS. Requires local instance of GO-IPFS running

Notifications You must be signed in to change notification settings

jtsmedley/ipfs-sqlite-cli

Repository files navigation

ipfs-sqlite

CLI utility to backup and restore a SQLite database from IPFS. Requires local instance of GO-IPFS running

Arguments:

  • [argName] = Optional
  • (argName) = Required

Encrypted Database Example

  • node index.js backup (sqlite db to backup) [existing backup CID] [secret encryption Key] [secret encryption IV]
  • node index.js restore (existing backup CID) [secret encryption Key] [secret encryption IV]

Unencrypted Database Example

  • node index.js backup --unencrypted (sqlite db to backup) [existing backup CID] [secret encryption Key] [secret encryption IV]
  • node index.js restore (existing backup CID) [secret encryption Key] [secret encryption IV]

Unencrypted Northwind_small.sqlite Database Example

  • ipfs-sqlite restore bafybeidlb5h4waumukod6lqoyqtuolettlim5xxwlqtgrq66l65kwqsrzu
  • ipfs-sqlite backup test_assets/Northwind_small.sqlite bafybeidlb5h4waumukod6lqoyqtuolettlim5xxwlqtgrq66l65kwqsrzu --unencrypted

About

CLI utility to backup and restore a database from IPFS. Requires local instance of GO-IPFS running

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published