sftp-push-sync 1.0.17 → 1.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +19 -14
- package/images/example-output-001.png +0 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -19,7 +19,7 @@ Features:
|
|
|
19
19
|
- Hashes are cached in .sync-cache.json to save space.
|
|
20
20
|
- Parallel uploads/deletions via worker pool
|
|
21
21
|
- include/exclude patterns
|
|
22
|
-
-
|
|
22
|
+
- Sidecar uploads / downloads - Bypassing the sync process
|
|
23
23
|
|
|
24
24
|
The file `sftp-push-sync.mjs` is pure JavaScript (ESM), not TypeScript. Node.js can execute it directly as long as "type": "module" is specified in package.json or the file has the extension .mjs.
|
|
25
25
|
|
|
@@ -124,8 +124,7 @@ If you have stored the scripts in `package.json` as follows:
|
|
|
124
124
|
|
|
125
125
|
The dry run is a great way to compare files and fill the cache.
|
|
126
126
|
|
|
127
|
-
|
|
128
|
-
### special uploads / downloads
|
|
127
|
+
### Sidecar uploads / downloads
|
|
129
128
|
|
|
130
129
|
A list of files that are excluded from the sync comparison and can be downloaded or uploaded separately.
|
|
131
130
|
|
|
@@ -148,6 +147,12 @@ sftp-push-sync prod --download-list --dry-run # view first
|
|
|
148
147
|
sftp-push-sync prod --download-list # then do
|
|
149
148
|
```
|
|
150
149
|
|
|
150
|
+
Das `sidecar ` wird immer zusammen mit `sync` ausgeführt. Mit `--skip-sync` kann man den sync prozess aber aus ausklammern und nur das sidecar verarbeiten:
|
|
151
|
+
|
|
152
|
+
```bash
|
|
153
|
+
sftp-push-sync prod --download-list --skip-sync
|
|
154
|
+
```
|
|
155
|
+
|
|
151
156
|
### Logging Progress
|
|
152
157
|
|
|
153
158
|
Logging can also be configured.
|
|
@@ -163,18 +168,18 @@ For >100k files, use analyzeChunk = 10 or 50, otherwise the TTY output itself is
|
|
|
163
168
|
|
|
164
169
|
Examples for Wirdcards for `include`, `exclude`, `uploadList` and `downloadList`:
|
|
165
170
|
|
|
166
|
-
- `"content/**"` -
|
|
167
|
-
- `".html", ".htm", ".md", ".txt", ".json"`-
|
|
168
|
-
- `"**/*.html"` -
|
|
169
|
-
- `"**/*.md"`-
|
|
170
|
-
- `"content/**/*.md"` -
|
|
171
|
+
- `"content/**"` -EVERYTHING below `content/`
|
|
172
|
+
- `".html", ".htm", ".md", ".txt", ".json"`- Only certain file extensions
|
|
173
|
+
- `"**/*.html"` - all HTML files
|
|
174
|
+
- `"**/*.md"`- all Markdown files
|
|
175
|
+
- `"content/**/*.md"` - only Markdown in `content/`
|
|
171
176
|
- `"static/images/**/*.jpg"`
|
|
172
|
-
- `"**/thumb-*.*"` - thumb
|
|
173
|
-
- `"**/*-draft.*"` -
|
|
174
|
-
- `"content/**/*.md"` -
|
|
175
|
-
- `"config/**"` -
|
|
176
|
-
- `"static/images/covers/**"`-
|
|
177
|
-
- `"logs/**/*.log"` -
|
|
177
|
+
- `"**/thumb-*.*"` - thumb images everywhere
|
|
178
|
+
- `"**/*-draft.*"` -Files with -draft before the extension
|
|
179
|
+
- `"content/**/*.md"` - all Markdown files
|
|
180
|
+
- `"config/**"` - complete configuration
|
|
181
|
+
- `"static/images/covers/**"`- cover images only
|
|
182
|
+
- `"logs/**/*.log"` - all logs from logs/
|
|
178
183
|
- `"reports/**/*.xlsx"`
|
|
179
184
|
|
|
180
185
|
practical excludes:
|
|
Binary file
|