Skip to content

Commit 0fe07f6

Browse files
committed
Progress Towards Live Replication
Utility will now watch and upload changes to IPFS. Need to work on unpinning previous version and using IPNS to track state.
1 parent 77f57cd commit 0fe07f6

File tree

6 files changed

+6506
-25178
lines changed

6 files changed

+6506
-25178
lines changed

README.md

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,25 @@
11
# ipfs-sqlite
2-
CLI utility to backup and restore a SQLite database from IPFS. Requires local instance of GO-IPFS running
2+
3+
CLI utility to backup and restore a SQLite database from IPFS. Requires local instance of GO-IPFS running
34

45
Arguments:
6+
57
- [argName] = Optional
68
- (argName) = Required
79

8-
- <h4>Encrypted Database Example</h4>
10+
<h4>Encrypted Database Example</h4>
11+
912
- node index.js backup (sqlite db to backup) [existing backup CID] [secret encryption Key] [secret encryption IV]
1013
- node index.js restore (existing backup CID) [secret encryption Key] [secret encryption IV]
11-
- <h4>Unencrypted Database Example</h4>
12-
- node index.js backup --unencrypted (sqlite db to backup) [existing backup CID] [secret encryption Key] [secret encryption IV]
13-
- node index.js restore --unencrypted (existing backup CID) [secret encryption Key] [secret encryption IV]
14+
15+
<h4>Unencrypted Database Example</h4>
16+
17+
- node index.js backup --unencrypted (sqlite db to
18+
backup) [existing backup CID] [secret encryption Key] [secret encryption IV]
19+
- node index.js restore (existing backup CID) [secret encryption Key] [secret encryption IV]
20+
21+
<h4>Unencrypted Northwind_small.sqlite Database Example</h4>
22+
23+
- ipfs-sqlite restore bafybeidlb5h4waumukod6lqoyqtuolettlim5xxwlqtgrq66l65kwqsrzu
24+
- ipfs-sqlite backup test_assets/Northwind_small.sqlite bafybeidlb5h4waumukod6lqoyqtuolettlim5xxwlqtgrq66l65kwqsrzu
25+
--unencrypted

0 commit comments

Comments
 (0)