This is part of the Fake.Tools.Rsync module.

Rsync

Helpers for running rsync tool

Under windows you will need to add it yourself to your system or use something like cygwin/babun

Sample

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 "remote@myserver.com:deploy") ""

if not result.OK then failwithf "Rsync failed with code %i" result.ExitCode

Nested types and modules

TypeDescription
Action
Options

Functions and values

Function or valueDescription
Rsync.exec buildOptions args
Signature: buildOptions:(Options -> Options) -> args:string -> ProcessResult