File tree Expand file tree Collapse file tree 6 files changed +6506
-25178
lines changed Expand file tree Collapse file tree 6 files changed +6506
-25178
lines changed Original file line number Diff line number Diff line change 1
1
# 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
3
4
4
5
Arguments:
6
+
5
7
- [ argName] = Optional
6
8
- (argName) = Required
7
9
8
- - <h4 >Encrypted Database Example</h4 >
10
+ <h4 >Encrypted Database Example</h4 >
11
+
9
12
- node index.js backup (sqlite db to backup) [ existing backup CID] [ secret encryption Key] [ secret encryption IV]
10
13
- 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
You can’t perform that action at this time.
0 commit comments