View source: R/gcloud-storage.R
The gs_rsync
function makes the contents under destination
the same
as the contents under source
, by copying any missing files/objects (or
those whose data has changed), and (if the delete
option is specified)
deleting any extra files/objects. source
must specify a directory, bucket,
or bucket subdirectory.
1 2 |
source |
The file to be copied. This can be either a path on the local
filesystem, or a Google Storage URI (e.g. |
destination |
The location where the |
delete |
Delete extra files under |
recursive |
Causes directories, buckets, and bucket subdirectories to
be synchronized recursively. If you neglect to use this option
|
parallel |
Causes synchronization to run in parallel. This can significantly improve performance if you are performing operations on a large number of files over a reasonably fast network connection. |
dry_run |
Causes rsync to run in "dry run" mode, i.e., just outputting what would be copied or deleted without actually doing any copying/deleting. |
options |
Character vector of additional command line options to the gsutil rsync command (as specified at https://cloud.google.com/storage/docs/gsutil/commands/rsync). |
echo |
Echo command output to console. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.