You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+24-8Lines changed: 24 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,13 +37,19 @@ This tool will *probably* work on any of the Supernote devices running the most
37
37
38
38
5. There are three main ways to run the `snbackup` tool from your terminal or command line:
39
39
- This will first look for the required **_config.json_** from step **3** in the _.config_ folder (if you ran --setup) and then fallback to looking for the file in your current working directory:
40
-
`snbackup`
40
+
```bash
41
+
snbackup
42
+
```
41
43
42
44
- Use the `-c` or `--config` flag to optionally specify the location of your **_config.json_** file:
43
-
`snbackup -c /the/path/to/config.json`
45
+
```bash
46
+
snbackup -c /the/path/to/config.json
47
+
```
44
48
45
49
- You can also set the environment variable `SNBACKUP_CONF` which points to the location of the **_config.json_**. This allows you to run `snbackup` from anywhere without needing to specify the config file location. The exact command to set environment variables will depend on your operating system and terminal shell.
46
-
`export SNBACKUP_CONF="/path/to/config.json"`
50
+
```bash
51
+
export SNBACKUP_CONF="/path/to/config.json"
52
+
```
47
53
48
54
---
49
55
@@ -89,19 +95,29 @@ If no destination is specified after the `-d` flag the device Document folder is
89
95
90
96
## Additional Options:
91
97
- Show all available command line options:
92
-
`snbackup -h`
98
+
```bash
99
+
snbackup -h
100
+
```
93
101
94
102
- Inspect new files to be downloaded from device but do not download:
95
-
`snbackup -i`
103
+
```bash
104
+
snbackup -i
105
+
```
96
106
97
107
- List out date and size information for backups found locally:
98
-
`snbackup -ls`
108
+
```bash
109
+
snbackup -ls
110
+
```
99
111
100
112
- The full backup flag will ignore previously saved backups and force the tool to redownload everything from device:
101
-
`snbackup -f`
113
+
```bash
114
+
snbackup -f
115
+
```
102
116
103
117
- Remove all but the specified number of backups from your local backup directory. This example will keep only the 5 most recent backups and delete any older ones:
104
-
`snbackup --cleanup 5`
118
+
```bash
119
+
snbackup --cleanup 5
120
+
```
105
121
106
122
---
107
123
### Additional configuration options can be set in the config.json file.
0 commit comments