github.com/10XDev/rclone@v1.52.3-0.20200626220027-16af9ab76b2a/docs/content/sharefile.md (about)

     1  ---
     2  title: "Citrix ShareFile"
     3  description: "Rclone docs for Citrix ShareFile"
     4  ---
     5  
     6  ## {{< icon "fas fa-share-square" >}} Citrix ShareFile
     7  
     8  [Citrix ShareFile](https://sharefile.com) is a secure file sharing and transfer service aimed as business.
     9  
    10  The initial setup for Citrix ShareFile involves getting a token from
    11  Citrix ShareFile which you can in your browser.  `rclone config` walks you
    12  through it.
    13  
    14  Here is an example of how to make a remote called `remote`.  First run:
    15  
    16       rclone config
    17  
    18  This will guide you through an interactive setup process:
    19  
    20  ```
    21  No remotes found - make a new one
    22  n) New remote
    23  s) Set configuration password
    24  q) Quit config
    25  n/s/q> n
    26  name> remote
    27  Type of storage to configure.
    28  Enter a string value. Press Enter for the default ("").
    29  Choose a number from below, or type in your own value
    30  XX / Citrix Sharefile
    31     \ "sharefile"
    32  Storage> sharefile
    33  ** See help for sharefile backend at: https://rclone.org/sharefile/ **
    34  
    35  ID of the root folder
    36  
    37  Leave blank to access "Personal Folders".  You can use one of the
    38  standard values here or any folder ID (long hex number ID).
    39  Enter a string value. Press Enter for the default ("").
    40  Choose a number from below, or type in your own value
    41   1 / Access the Personal Folders. (Default)
    42     \ ""
    43   2 / Access the Favorites folder.
    44     \ "favorites"
    45   3 / Access all the shared folders.
    46     \ "allshared"
    47   4 / Access all the individual connectors.
    48     \ "connectors"
    49   5 / Access the home, favorites, and shared folders as well as the connectors.
    50     \ "top"
    51  root_folder_id> 
    52  Edit advanced config? (y/n)
    53  y) Yes
    54  n) No
    55  y/n> n
    56  Remote config
    57  Use auto config?
    58   * Say Y if not sure
    59   * Say N if you are working on a remote or headless machine
    60  y) Yes
    61  n) No
    62  y/n> y
    63  If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth?state=XXX
    64  Log in and authorize rclone for access
    65  Waiting for code...
    66  Got code
    67  --------------------
    68  [remote]
    69  type = sharefile
    70  endpoint = https://XXX.sharefile.com
    71  token = {"access_token":"XXX","token_type":"bearer","refresh_token":"XXX","expiry":"2019-09-30T19:41:45.878561877+01:00"}
    72  --------------------
    73  y) Yes this is OK
    74  e) Edit this remote
    75  d) Delete this remote
    76  y/e/d> y
    77  ```
    78  
    79  See the [remote setup docs](/remote_setup/) for how to set it up on a
    80  machine with no Internet browser available.
    81  
    82  Note that rclone runs a webserver on your local machine to collect the
    83  token as returned from Citrix ShareFile. This only runs from the moment it opens
    84  your browser to the moment you get back the verification code.  This
    85  is on `http://127.0.0.1:53682/` and this it may require you to unblock
    86  it temporarily if you are running a host firewall.
    87  
    88  Once configured you can then use `rclone` like this,
    89  
    90  List directories in top level of your ShareFile
    91  
    92      rclone lsd remote:
    93  
    94  List all the files in your ShareFile
    95  
    96      rclone ls remote:
    97  
    98  To copy a local directory to an ShareFile directory called backup
    99  
   100      rclone copy /home/source remote:backup
   101  
   102  Paths may be as deep as required, eg `remote:directory/subdirectory`.
   103  
   104  ### Modified time and hashes ###
   105  
   106  ShareFile allows modification times to be set on objects accurate to 1
   107  second.  These will be used to detect whether objects need syncing or
   108  not.
   109  
   110  ShareFile supports MD5 type hashes, so you can use the `--checksum`
   111  flag.
   112  
   113  ### Transfers ###
   114  
   115  For files above 128MB rclone will use a chunked transfer.  Rclone will
   116  upload up to `--transfers` chunks at the same time (shared among all
   117  the multipart uploads).  Chunks are buffered in memory and are
   118  normally 64MB so increasing `--transfers` will increase memory use.
   119  
   120  ### Limitations ###
   121  
   122  Note that ShareFile is case insensitive so you can't have a file called
   123  "Hello.doc" and one called "hello.doc".
   124  
   125  ShareFile only supports filenames up to 256 characters in length.
   126  
   127  #### Restricted filename characters
   128  
   129  In addition to the [default restricted characters set](/overview/#restricted-characters)
   130  the following characters are also replaced:
   131  
   132  | Character | Value | Replacement |
   133  | --------- |:-----:|:-----------:|
   134  | \\        | 0x5C  | \           |
   135  | *         | 0x2A  | *           |
   136  | <         | 0x3C  | <           |
   137  | >         | 0x3E  | >           |
   138  | ?         | 0x3F  | ?           |
   139  | :         | 0x3A  | :           |
   140  | \|        | 0x7C  | |           |
   141  | "         | 0x22  | "           |
   142  
   143  File names can also not start or end with the following characters.
   144  These only get replaced if they are the first or last character in the
   145  name:
   146  
   147  | Character | Value | Replacement |
   148  | --------- |:-----:|:-----------:|
   149  | SP        | 0x20  | ␠           |
   150  | .         | 0x2E  | .           |
   151  
   152  Invalid UTF-8 bytes will also be [replaced](/overview/#invalid-utf8),
   153  as they can't be used in JSON strings.
   154  
   155  {{< rem autogenerated options start" - DO NOT EDIT - instead edit fs.RegInfo in backend/sharefile/sharefile.go then run make backenddocs" >}}
   156  ### Standard Options
   157  
   158  Here are the standard options specific to sharefile (Citrix Sharefile).
   159  
   160  #### --sharefile-root-folder-id
   161  
   162  ID of the root folder
   163  
   164  Leave blank to access "Personal Folders".  You can use one of the
   165  standard values here or any folder ID (long hex number ID).
   166  
   167  - Config:      root_folder_id
   168  - Env Var:     RCLONE_SHAREFILE_ROOT_FOLDER_ID
   169  - Type:        string
   170  - Default:     ""
   171  - Examples:
   172      - ""
   173          - Access the Personal Folders. (Default)
   174      - "favorites"
   175          - Access the Favorites folder.
   176      - "allshared"
   177          - Access all the shared folders.
   178      - "connectors"
   179          - Access all the individual connectors.
   180      - "top"
   181          - Access the home, favorites, and shared folders as well as the connectors.
   182  
   183  ### Advanced Options
   184  
   185  Here are the advanced options specific to sharefile (Citrix Sharefile).
   186  
   187  #### --sharefile-upload-cutoff
   188  
   189  Cutoff for switching to multipart upload.
   190  
   191  - Config:      upload_cutoff
   192  - Env Var:     RCLONE_SHAREFILE_UPLOAD_CUTOFF
   193  - Type:        SizeSuffix
   194  - Default:     128M
   195  
   196  #### --sharefile-chunk-size
   197  
   198  Upload chunk size. Must a power of 2 >= 256k.
   199  
   200  Making this larger will improve performance, but note that each chunk
   201  is buffered in memory one per transfer.
   202  
   203  Reducing this will reduce memory usage but decrease performance.
   204  
   205  - Config:      chunk_size
   206  - Env Var:     RCLONE_SHAREFILE_CHUNK_SIZE
   207  - Type:        SizeSuffix
   208  - Default:     64M
   209  
   210  #### --sharefile-endpoint
   211  
   212  Endpoint for API calls.
   213  
   214  This is usually auto discovered as part of the oauth process, but can
   215  be set manually to something like: https://XXX.sharefile.com
   216  
   217  
   218  - Config:      endpoint
   219  - Env Var:     RCLONE_SHAREFILE_ENDPOINT
   220  - Type:        string
   221  - Default:     ""
   222  
   223  #### --sharefile-encoding
   224  
   225  This sets the encoding for the backend.
   226  
   227  See: the [encoding section in the overview](/overview/#encoding) for more info.
   228  
   229  - Config:      encoding
   230  - Env Var:     RCLONE_SHAREFILE_ENCODING
   231  - Type:        MultiEncoder
   232  - Default:     Slash,LtGt,DoubleQuote,Colon,Question,Asterisk,Pipe,BackSlash,Ctl,LeftSpace,LeftPeriod,RightSpace,RightPeriod,InvalidUtf8,Dot
   233  
   234  {{< rem autogenerated options stop >}}