Rsync Module
Helpers for running rsync tool
Under windows you will need to add it yourself to your system or use something like cygwin/babun
Example
let result =
Rsync.exec
(Rsync.Options.WithActions
[
Rsync.Compress
Rsync.Archive
Rsync.Verbose
Rsync.NoOption Rsync.Perms
Rsync.Delete
Rsync.Exclude ".keep"
]
>> Rsync.Options.WithSources
[ FleetMapping.server </> "build"
FleetMapping.server </> "package.json"
FleetMapping.server </> "yarn.lock" ]
>> Rsync.Options.WithDestination "[email protected]:deploy")
""
if not result.OK then failwithf "Rsync failed with code %i" result.ExitCode
Functions and values
Function or value | Description |
Full Usage:
Rsync.exec buildOptions args
Parameters:
Options -> Options
-
A function to configure actions/options, sources, and destination.
args : string
-
String arguments to pass to rsync
Returns: ProcessResult
|
Run rsync tool with the provided actions/options list of directories/files sources to given the destination.
Example
|