-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsync.example.json
More file actions
38 lines (34 loc) · 2.28 KB
/
Copy pathsync.example.json
File metadata and controls
38 lines (34 loc) · 2.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{
// EXAMPLE: copy your main folders to a new PC.
// 1) edit the paths below (replace YourName)
// 2) on the OLD pc run: folder-transfer.bat sync.json
// 3) copy the generated download-scripts file to the NEW pc and run it
// Paths: forward slashes "C:/path" OR doubled backslashes "C:\\path". Comments (// and /* */) are allowed.
"folders": [ // folders to copy; each arrives under its own name on the receiver
"C:/Users/YourName/Documents",
"C:/Users/YourName/Pictures",
"C:/Users/YourName/Desktop",
"C:/Users/YourName/Downloads"
],
"ignore": [ // skip these. name (no /) = any depth; * = within one name; ** = any depth; trailing / = folders only
"*.tmp", // temp files
"~$*", // Office lock files
"Thumbs.db", // Explorer thumbnail cache
"desktop.ini", // per-folder Explorer settings
"**/node_modules/", // node_modules folder, at any depth
"**/cache/" // any "cache" folder, at any depth
],
"compress": true, // compress on the fly (already-compressed types are skipped); false to disable
"streams": 4, // parallel connections - big speed-up on high-latency links (1 = classic single-stream).
// Work is split into fine-grained units (bundles / large files), so even one
// giant folder spreads across all streams, and the mirror stays exact.
"cutover": false, // true = two-phase mode for a LIVE database (implies once; forces streams:1)
"once": true, // exit after one successful transfer
"allowIp": "", // only this client IP may connect (empty = any)
"serverHost": "", // address baked into the client (empty = auto-detect this PC's IPv4)
"clientOut": "", // where to write the client .bat (empty = .\download-scripts\...)
"port": 8722, // TCP port
"idleSeconds": 600, // auto-close after N seconds with no client connected
"stallTimeout": 300, // abort a connected client silent for N seconds (raise to ~1200 for big files over WAN)
"noFirewall": false // true = do NOT open the firewall port (opening needs admin)
}