github.com/rclone/rclone@v1.66.1-0.20240517100346-7b89735ae726/docs/content/sharefile.md (about)

     1  ---
     2  title: "Citrix ShareFile"
     3  description: "Rclone docs for Citrix ShareFile"
     4  versionIntroduced: "v1.50"
     5  ---
     6  
     7  # {{< icon "fas fa-share-square" >}} Citrix ShareFile
     8  
     9  [Citrix ShareFile](https://sharefile.com) is a secure file sharing and transfer service aimed as business.
    10  
    11  ## Configuration
    12  
    13  The initial setup for Citrix ShareFile involves getting a token from
    14  Citrix ShareFile which you can in your browser.  `rclone config` walks you
    15  through it.
    16  
    17  Here is an example of how to make a remote called `remote`.  First run:
    18  
    19       rclone config
    20  
    21  This will guide you through an interactive setup process:
    22  
    23  ```
    24  No remotes found, make a new one?
    25  n) New remote
    26  s) Set configuration password
    27  q) Quit config
    28  n/s/q> n
    29  name> remote
    30  Type of storage to configure.
    31  Enter a string value. Press Enter for the default ("").
    32  Choose a number from below, or type in your own value
    33  XX / Citrix Sharefile
    34     \ "sharefile"
    35  Storage> sharefile
    36  ** See help for sharefile backend at: https://rclone.org/sharefile/ **
    37  
    38  ID of the root folder
    39  
    40  Leave blank to access "Personal Folders".  You can use one of the
    41  standard values here or any folder ID (long hex number ID).
    42  Enter a string value. Press Enter for the default ("").
    43  Choose a number from below, or type in your own value
    44   1 / Access the Personal Folders. (Default)
    45     \ ""
    46   2 / Access the Favorites folder.
    47     \ "favorites"
    48   3 / Access all the shared folders.
    49     \ "allshared"
    50   4 / Access all the individual connectors.
    51     \ "connectors"
    52   5 / Access the home, favorites, and shared folders as well as the connectors.
    53     \ "top"
    54  root_folder_id> 
    55  Edit advanced config? (y/n)
    56  y) Yes
    57  n) No
    58  y/n> n
    59  Remote config
    60  Use web browser to automatically authenticate rclone with remote?
    61   * Say Y if the machine running rclone has a web browser you can use
    62   * Say N if running rclone on a (remote) machine without web browser access
    63  If not sure try Y. If Y failed, try N.
    64  y) Yes
    65  n) No
    66  y/n> y
    67  If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth?state=XXX
    68  Log in and authorize rclone for access
    69  Waiting for code...
    70  Got code
    71  --------------------
    72  [remote]
    73  type = sharefile
    74  endpoint = https://XXX.sharefile.com
    75  token = {"access_token":"XXX","token_type":"bearer","refresh_token":"XXX","expiry":"2019-09-30T19:41:45.878561877+01:00"}
    76  --------------------
    77  y) Yes this is OK
    78  e) Edit this remote
    79  d) Delete this remote
    80  y/e/d> y
    81  ```
    82  
    83  See the [remote setup docs](/remote_setup/) for how to set it up on a
    84  machine with no Internet browser available.
    85  
    86  Note that rclone runs a webserver on your local machine to collect the
    87  token as returned from Citrix ShareFile. This only runs from the moment it opens
    88  your browser to the moment you get back the verification code.  This
    89  is on `http://127.0.0.1:53682/` and this it may require you to unblock
    90  it temporarily if you are running a host firewall.
    91  
    92  Once configured you can then use `rclone` like this,
    93  
    94  List directories in top level of your ShareFile
    95  
    96      rclone lsd remote:
    97  
    98  List all the files in your ShareFile
    99  
   100      rclone ls remote:
   101  
   102  To copy a local directory to an ShareFile directory called backup
   103  
   104      rclone copy /home/source remote:backup
   105  
   106  Paths may be as deep as required, e.g. `remote:directory/subdirectory`.
   107  
   108  ### Modification times and hashes
   109  
   110  ShareFile allows modification times to be set on objects accurate to 1
   111  second.  These will be used to detect whether objects need syncing or
   112  not.
   113  
   114  ShareFile supports MD5 type hashes, so you can use the `--checksum`
   115  flag.
   116  
   117  ### Transfers
   118  
   119  For files above 128 MiB rclone will use a chunked transfer.  Rclone will
   120  upload up to `--transfers` chunks at the same time (shared among all
   121  the multipart uploads).  Chunks are buffered in memory and are
   122  normally 64 MiB so increasing `--transfers` will increase memory use.
   123  
   124  ### Restricted filename characters
   125  
   126  In addition to the [default restricted characters set](/overview/#restricted-characters)
   127  the following characters are also replaced:
   128  
   129  | Character | Value | Replacement |
   130  | --------- |:-----:|:-----------:|
   131  | \\        | 0x5C  | \           |
   132  | *         | 0x2A  | *           |
   133  | <         | 0x3C  | <           |
   134  | >         | 0x3E  | >           |
   135  | ?         | 0x3F  | ?           |
   136  | :         | 0x3A  | :           |
   137  | \|        | 0x7C  | |           |
   138  | "         | 0x22  | "           |
   139  
   140  File names can also not start or end with the following characters.
   141  These only get replaced if they are the first or last character in the
   142  name:
   143  
   144  | Character | Value | Replacement |
   145  | --------- |:-----:|:-----------:|
   146  | SP        | 0x20  | ␠           |
   147  | .         | 0x2E  | .           |
   148  
   149  Invalid UTF-8 bytes will also be [replaced](/overview/#invalid-utf8),
   150  as they can't be used in JSON strings.
   151  
   152  {{< rem autogenerated options start" - DO NOT EDIT - instead edit fs.RegInfo in backend/sharefile/sharefile.go then run make backenddocs" >}}
   153  ### Standard options
   154  
   155  Here are the Standard options specific to sharefile (Citrix Sharefile).
   156  
   157  #### --sharefile-client-id
   158  
   159  OAuth Client Id.
   160  
   161  Leave blank normally.
   162  
   163  Properties:
   164  
   165  - Config:      client_id
   166  - Env Var:     RCLONE_SHAREFILE_CLIENT_ID
   167  - Type:        string
   168  - Required:    false
   169  
   170  #### --sharefile-client-secret
   171  
   172  OAuth Client Secret.
   173  
   174  Leave blank normally.
   175  
   176  Properties:
   177  
   178  - Config:      client_secret
   179  - Env Var:     RCLONE_SHAREFILE_CLIENT_SECRET
   180  - Type:        string
   181  - Required:    false
   182  
   183  #### --sharefile-root-folder-id
   184  
   185  ID of the root folder.
   186  
   187  Leave blank to access "Personal Folders".  You can use one of the
   188  standard values here or any folder ID (long hex number ID).
   189  
   190  Properties:
   191  
   192  - Config:      root_folder_id
   193  - Env Var:     RCLONE_SHAREFILE_ROOT_FOLDER_ID
   194  - Type:        string
   195  - Required:    false
   196  - Examples:
   197      - ""
   198          - Access the Personal Folders (default).
   199      - "favorites"
   200          - Access the Favorites folder.
   201      - "allshared"
   202          - Access all the shared folders.
   203      - "connectors"
   204          - Access all the individual connectors.
   205      - "top"
   206          - Access the home, favorites, and shared folders as well as the connectors.
   207  
   208  ### Advanced options
   209  
   210  Here are the Advanced options specific to sharefile (Citrix Sharefile).
   211  
   212  #### --sharefile-token
   213  
   214  OAuth Access Token as a JSON blob.
   215  
   216  Properties:
   217  
   218  - Config:      token
   219  - Env Var:     RCLONE_SHAREFILE_TOKEN
   220  - Type:        string
   221  - Required:    false
   222  
   223  #### --sharefile-auth-url
   224  
   225  Auth server URL.
   226  
   227  Leave blank to use the provider defaults.
   228  
   229  Properties:
   230  
   231  - Config:      auth_url
   232  - Env Var:     RCLONE_SHAREFILE_AUTH_URL
   233  - Type:        string
   234  - Required:    false
   235  
   236  #### --sharefile-token-url
   237  
   238  Token server url.
   239  
   240  Leave blank to use the provider defaults.
   241  
   242  Properties:
   243  
   244  - Config:      token_url
   245  - Env Var:     RCLONE_SHAREFILE_TOKEN_URL
   246  - Type:        string
   247  - Required:    false
   248  
   249  #### --sharefile-upload-cutoff
   250  
   251  Cutoff for switching to multipart upload.
   252  
   253  Properties:
   254  
   255  - Config:      upload_cutoff
   256  - Env Var:     RCLONE_SHAREFILE_UPLOAD_CUTOFF
   257  - Type:        SizeSuffix
   258  - Default:     128Mi
   259  
   260  #### --sharefile-chunk-size
   261  
   262  Upload chunk size.
   263  
   264  Must a power of 2 >= 256k.
   265  
   266  Making this larger will improve performance, but note that each chunk
   267  is buffered in memory one per transfer.
   268  
   269  Reducing this will reduce memory usage but decrease performance.
   270  
   271  Properties:
   272  
   273  - Config:      chunk_size
   274  - Env Var:     RCLONE_SHAREFILE_CHUNK_SIZE
   275  - Type:        SizeSuffix
   276  - Default:     64Mi
   277  
   278  #### --sharefile-endpoint
   279  
   280  Endpoint for API calls.
   281  
   282  This is usually auto discovered as part of the oauth process, but can
   283  be set manually to something like: https://XXX.sharefile.com
   284  
   285  
   286  Properties:
   287  
   288  - Config:      endpoint
   289  - Env Var:     RCLONE_SHAREFILE_ENDPOINT
   290  - Type:        string
   291  - Required:    false
   292  
   293  #### --sharefile-encoding
   294  
   295  The encoding for the backend.
   296  
   297  See the [encoding section in the overview](/overview/#encoding) for more info.
   298  
   299  Properties:
   300  
   301  - Config:      encoding
   302  - Env Var:     RCLONE_SHAREFILE_ENCODING
   303  - Type:        Encoding
   304  - Default:     Slash,LtGt,DoubleQuote,Colon,Question,Asterisk,Pipe,BackSlash,Ctl,LeftSpace,LeftPeriod,RightSpace,RightPeriod,InvalidUtf8,Dot
   305  
   306  #### --sharefile-description
   307  
   308  Description of the remote
   309  
   310  Properties:
   311  
   312  - Config:      description
   313  - Env Var:     RCLONE_SHAREFILE_DESCRIPTION
   314  - Type:        string
   315  - Required:    false
   316  
   317  {{< rem autogenerated options stop >}}
   318  ## Limitations
   319  
   320  Note that ShareFile is case insensitive so you can't have a file called
   321  "Hello.doc" and one called "hello.doc".
   322  
   323  ShareFile only supports filenames up to 256 characters in length.
   324  
   325  `rclone about` is not supported by the Citrix ShareFile backend. Backends without
   326  this capability cannot determine free space for an rclone mount or
   327  use policy `mfs` (most free space) as a member of an rclone union
   328  remote.
   329  
   330  See [List of backends that do not support rclone about](https://rclone.org/overview/#optional-features) and [rclone about](https://rclone.org/commands/rclone_about/)
   331