package b0
Software construction and deployment kit
Install
dune-project
Dependency
Authors
Maintainers
Sources
b0-0.0.6.tbz
sha512=e9aa779e66c08fc763019f16d4706f465d16c05d6400b58fbd0313317ef33ddea51952e2b058db28e65f7ddb7012f328c8bf02d8f1da17bb543348541a2587f0
doc/b0.std/B0_rsync/index.html
Module B0_rsync
Source
rsync
support.
The type for rsync clients.
get ~search ~cmd ()
looks for the rsync command cmd
(defaults to Cmd.tool "rsync"
) in search
(defaults to Os.Cmd.get search
).
Source
val copy :
t ->
?opts:B0_std.Cmd.t ->
?stats:bool ->
?progress:bool ->
delete:bool ->
?src_host:string ->
?dst_host:string ->
B0_std.Fpath.t ->
dst:B0_std.Fpath.t ->
(unit, string) result
copy src ~dst
copies the contents of directory src
to dst
with rsync
. As per rsync
semantics, directoryness of src
is important and dst
's one is not:
- If
src
has a trailing directory separator, the contentssrc/*
is copied todst/*
. - If
src
has no trailing directory separator, the contents ofsrc/*
is copied todst/$(basename src)/*
.
src_host
and dst_host
specify the host for source and destination directory (e.g. "myhost:"
). They default to ""
. The rest of the arguments are:
- If
delete
istrue
, deletes files at destination that do not exist insrc
using the--delete
flag. Defaults tofalse
. - If
stats
istrue
outputs statistics about the transfer using the--stats
flag. Defaults tofalse
. - If
progress
istrue
(default) outputs progress about the transfer using--info=progress2
. opts
are other options for rsync. It defaults to-azh
which means transfer in archive mode which preserves symlinks and file attributes and compression is enabled.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>