Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 964 Bytes

README.md

File metadata and controls

25 lines (16 loc) · 964 Bytes

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