Mirrordrive
Last updated
Last updated
Mirrors a or a into another one.
Install with :
const mirror = new MirrorDrive(src, dst, [options])
Creates a mirror instance to move src
drive into dst
drive.
options
include:
prefix
String
'/'
dryRun
Boolean
false
prune
Boolean
true
includeEquals
Boolean
false
filter
Function
(key) => true
metadataEquals
Function
(srcMetadata, dstMetadata) => { ... }
batch
Boolean
false
entries
Array
null
mirror.count
It counts the total files processed, added, removed, and changed.
Default: { files: 0, add: 0, remove: 0, change: 0 }
await mirror.done()
It starts processing all the diffing until it is done.