sftp-push-sync 2.1.3 → 2.1.4
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 +14 -1
- package/bin/sftp-push-sync.mjs +126 -1443
- package/directory-structure.txt +14 -0
- package/package.json +2 -2
- package/src/core/ScanProgressController.mjs +124 -0
- package/src/core/SftpPushSyncApp.mjs +1060 -0
- package/src/core/SyncLogger.mjs +52 -0
- package/src/helpers/compare.mjs +122 -0
- package/src/helpers/directory.mjs +29 -0
- package/src/helpers/hashing.mjs +201 -0
- package/src/helpers/progress-constants.mjs +28 -0
- package/src/helpers/sidecar.mjs +185 -0
- package/src/helpers/walkers.mjs +218 -0
package/README.md
CHANGED
|
@@ -88,10 +88,11 @@ Create a `sync.config.json` in the root folder of your project:
|
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
90
|
},
|
|
91
|
+
"parallelScan": true,
|
|
91
92
|
"cleanupEmptyDirs": true,
|
|
92
93
|
"include": [],
|
|
93
94
|
"exclude": ["**/.DS_Store", "**/.git/**", "**/node_modules/**"],
|
|
94
|
-
"textExtensions": [".
|
|
95
|
+
"textExtensions": [".shtml",".xml",".txt",".json",".js",".css",".md",".svg"],
|
|
95
96
|
"mediaExtensions": [".jpg",".jpeg",".png",".webp",".gif",".avif",".tif",".tiff",".mp4",".mov",".m4v","mp3",".wav",".flac"],
|
|
96
97
|
"progress": {
|
|
97
98
|
"scanChunk": 10,
|
|
@@ -150,6 +151,18 @@ If you have stored the scripts in `package.json` as follows:
|
|
|
150
151
|
|
|
151
152
|
The dry run is a great way to compare files and fill the cache.
|
|
152
153
|
|
|
154
|
+
### How ist works
|
|
155
|
+
|
|
156
|
+
Es werden 5 SChritten abgearbeitet:
|
|
157
|
+
|
|
158
|
+
- Phase 1: Scan local files
|
|
159
|
+
- Phase 2: Scan remote files
|
|
160
|
+
- Phase 3: Compare & decide
|
|
161
|
+
- Phase 4: Removing orphaned remote files
|
|
162
|
+
- Preparing remote directories
|
|
163
|
+
- Phase 5: Apply changes
|
|
164
|
+
- Cleaning up empty remote directories
|
|
165
|
+
|
|
153
166
|
### Sidecar uploads / downloads
|
|
154
167
|
|
|
155
168
|
A list of files that are excluded from the sync comparison and can be downloaded or uploaded separately.
|