Advertisement
Guest User

Untitled

a guest
Jul 10th, 2017
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.11 KB | None | 0 0
  1. [root@quan home]# rclone
  2. Usage:
  3. rclone [flags]
  4. rclone [command]
  5.  
  6. Available Commands:
  7. authorize Remote authorization.
  8. cat Concatenates any files and sends them to stdout.
  9. check Checks the files in the source and destination match.
  10. cleanup Clean up the remote if possible
  11. config Enter an interactive configuration session.
  12. copy Copy files from source to dest, skipping already copied
  13. copyto Copy files from source to dest, skipping already copied
  14. cryptcheck Cryptcheck checks the integritity of a crypted remote.
  15. dedupe Interactively find duplicate files delete/rename them.
  16. delete Remove the contents of path.
  17. genautocomplete Output bash completion script for rclone.
  18. gendocs Output markdown docs for rclone to the directory supplied.
  19. listremotes List all the remotes in the config file.
  20. ls List all the objects in the path with size and path.
  21. lsd List all directories/containers/buckets in the path.
  22. lsl List all the objects path with modification time, size and pat h.
  23. md5sum Produces an md5sum file for all the objects in the path.
  24. mkdir Make the path if it doesn't already exist.
  25. mount Mount the remote as a mountpoint. **EXPERIMENTAL**
  26. move Move files from source to dest.
  27. moveto Move file or directory from source to dest.
  28. obscure Obscure password for use in the rclone.conf
  29. purge Remove the path and all of its contents.
  30. rmdir Remove the path if empty.
  31. rmdirs Remove any empty directoryies under the path.
  32. sha1sum Produces an sha1sum file for all the objects in the path.
  33. size Prints the total size and number of objects in remote:path.
  34. sync Make source and dest identical, modifying destination only.
  35. version Show the version number.
  36.  
  37. Flags:
  38. --acd-templink-threshold int Files >= this size will be downloaded via their tempLink. (default 9G)
  39. --acd-upload-wait-per-gb duration Additional time per GB to wait after a failed complete upload to see if it appears. (default 3m0s)
  40. --ask-password Allow prompt for password for encrypte d configuration. (default true)
  41. --b2-chunk-size int Upload chunk size. Must fit in memory. (default 96M)
  42. --b2-test-mode string A flag string for X-Bz-Test-Mode heade r.
  43. --b2-upload-cutoff int Cutoff for switching to chunked upload (default 190.735M)
  44. --b2-versions Include old versions in directory list ings.
  45. --backup-dir string Make backups into hierarchy based in D IR.
  46. --buffer-size int Buffer size when copying files. (defau lt 16M)
  47. --bwlimit BwTimetable Bandwidth limit in kBytes/s, or use su ffix b|k|M|G or a full timetable.
  48. --checkers int Number of checkers to run in parallel. (default 8)
  49. -c, --checksum Skip based on checksum & size, not mod -time & size
  50. --config string Config file. (default "/root/.config/r clone/rclone.conf")
  51. --contimeout duration Connect timeout (default 1m0s)
  52. -L, --copy-links Follow symlinks and copy the pointed t o item.
  53. --cpuprofile string Write cpu profile to file
  54. --crypt-show-mapping For all files listed show how the name s encrypt.
  55. --delete-after When synchronizing, delete files on de stination after transfering
  56. --delete-before When synchronizing, delete files on de stination before transfering
  57. --delete-during When synchronizing, delete files durin g transfer (default)
  58. --delete-excluded Delete files on dest excluded from syn c
  59. --drive-auth-owner-only Only consider files owned by the authe nticated user. Requires drive-full-list.
  60. --drive-chunk-size int Upload chunk size. Must a power of 2 > = 256k. (default 8M)
  61. --drive-formats string Comma separated list of preferred form ats for downloading Google docs. (default "docx,xlsx,pptx,svg")
  62. --drive-full-list Use a full listing for directory list. More data but usually quicker. (obsolete)
  63. --drive-list-chunk int Size of listing chunk 100-1000. 0 to d isable. (default 1000)
  64. --drive-skip-gdocs Skip google documents in all listings.
  65. --drive-upload-cutoff int Cutoff for switching to chunked upload (default 8M)
  66. --drive-use-trash Send files to the trash instead of del eting permanently.
  67. --dropbox-chunk-size int Upload chunk size. Max 150M. (default 128M)
  68. -n, --dry-run Do a trial run with no permanent chang es
  69. --dump-auth Dump HTTP headers with auth info
  70. --dump-bodies Dump HTTP headers and bodies - may con tain sensitive info
  71. --dump-filters Dump the filters to the output
  72. --dump-headers Dump HTTP headers - may contain sensit ive info
  73. --exclude stringArray Exclude files matching pattern
  74. --exclude-from stringArray Read exclude patterns from file
  75. --files-from stringArray Read list of source-file names from fi le
  76. -f, --filter stringArray Add a file-filtering rule
  77. --filter-from stringArray Read filtering patterns from a file
  78. --ignore-checksum Skip post copy check of checksums.
  79. --ignore-existing Skip all files that exist on destinati on
  80. --ignore-size Ignore size when skipping use mod-time or checksum.
  81. -I, --ignore-times Don't skip files that match size and t ime - transfer all files
  82. --include stringArray Include files matching pattern
  83. --include-from stringArray Read include patterns from file
  84. --log-file string Log everything to this file
  85. --log-level string Log level DEBUG|INFO|NOTICE|ERROR (def ault "INFO")
  86. --low-level-retries int Number of low level retries to do. (de fault 10)
  87. --max-age string Don't transfer any file older than thi s in s or suffix ms|s|m|h|d|w|M|y
  88. --max-depth int If set limits the recursion depth to t his. (default -1)
  89. --max-size int Don't transfer any file larger than th is in k or suffix b|k|M|G (default off)
  90. --memprofile string Write memory profile to file
  91. --min-age string Don't transfer any file younger than t his in s or suffix ms|s|m|h|d|w|M|y
  92. --min-size int Don't transfer any file smaller than t his in k or suffix b|k|M|G (default off)
  93. --modify-window duration Max time diff to be considered the sam e (default 1ns)
  94. --no-check-certificate Do not verify the server SSL certifica te. Insecure.
  95. --no-gzip-encoding Don't set Accept-Encoding: gzip.
  96. --no-traverse Don't traverse destination file system on copy.
  97. --no-update-modtime Don't update destination mod-time if f iles identical.
  98. --old-sync-method Temporary flag to select old sync meth od
  99. -x, --one-file-system Don't cross filesystem boundaries.
  100. --onedrive-chunk-size int Above this size files will be chunked - must be multiple of 320k. (default 10M)
  101. --onedrive-upload-cutoff int Cutoff for switching to chunked upload - must be <= 100MB (default 10M)
  102. -q, --quiet Print as little stuff as possible
  103. --retries int Retry operations this many times if th ey fail (default 3)
  104. --s3-acl string Canned ACL used when creating buckets and/or storing objects in S3
  105. --s3-storage-class string Storage class to use when uploading S3 objects (STANDARD|REDUCED_REDUNDANCY|STANDARD_IA)
  106. --size-only Skip based on size only, not mod-time or checksum
  107. --stats duration Interval between printing stats, e.g 5 00ms, 60s, 5m. (0 to disable) (default 1m0s)
  108. --stats-unit string Show data rate in stats as either 'bit s' or 'bytes'/s (default "bytes")
  109. --suffix string Suffix for use with --backup-dir.
  110. --swift-chunk-size int Above this size files will be chunked into a _segments container. (default 5G)
  111. --syslog Use Syslog for logging
  112. --syslog-facility string Facility for syslog, eg KERN,USER,... (default "DAEMON")
  113. --timeout duration IO idle timeout (default 5m0s)
  114. --track-renames When synchronizing, track file renames and do a server side move if possible
  115. --transfers int Number of file transfers to run in par allel. (default 4)
  116. -u, --update Skip files that are newer on the desti nation.
  117. -v, --verbose count[=-1] Print lots more stuff (repeat for more )
  118. -V, --version Print the version number
  119.  
  120. Use "rclone [command] --help" for more information about a command.
  121. Command not found.
  122. [root@quan home]# rclone lsd remoate
  123. 2017/07/10 12:16:56 directory not found
  124. [root@quan home]# reclone config
  125. -bash: reclone: command not found
  126. [root@quan home]# rclone config
  127. No remotes found - make a new one
  128. n) New remote
  129. r) Rename remote
  130. c) Copy remote
  131. s) Set configuration password
  132. q) Quit config
  133. n/r/c/s/q> n
  134. name> remote
  135. Type of storage to configure.
  136. Choose a number from below, or type in your own value
  137. 1 / Amazon Drive
  138. \ "amazon cloud drive"
  139. 2 / Amazon S3 (also Dreamhost, Ceph, Minio)
  140. \ "s3"
  141. 3 / Backblaze B2
  142. \ "b2"
  143. 4 / Dropbox
  144. \ "dropbox"
  145. 5 / Encrypt/Decrypt a remote
  146. \ "crypt"
  147. 6 / Google Cloud Storage (this is not Google Drive)
  148. \ "google cloud storage"
  149. 7 / Google Drive
  150. \ "drive"
  151. 8 / Hubic
  152. \ "hubic"
  153. 9 / Local Disk
  154. \ "local"
  155. 10 / Microsoft OneDrive
  156. \ "onedrive"
  157. 11 / Openstack Swift (Rackspace Cloud Files, Memset Memstore, OVH)
  158. \ "swift"
  159. 12 / SSH/SFTP Connection
  160. \ "sftp"
  161. 13 / Yandex Disk
  162. \ "yandex"
  163. Storage> 7
  164. Google Application Client Id - leave blank normally.
  165. client_id>
  166. Google Application Client Secret - leave blank normally.
  167. client_secret>
  168. Remote config
  169. Use auto config?
  170. * Say Y if not sure
  171. * Say N if you are working on a remote or headless machine or Y didn't work
  172. y) Yes
  173. n) No
  174. y/n> n
  175. If your browser doesn't open automatically go to the following link: https://acc ounts.google.com/o/oauth2/auth?client_id=202264815644.apps.googleusercontent.com &redirect_uri=urn%3Aietf%3Awg%3Aoauth%3A2.0%3Aoob&response_type=code&scope=https %3A%2F%2Fwww.googleapis.com%2Fauth%2Fdrive&state=5accff8692fe6478fa3bb8126b52156 0
  176. Log in and authorize rclone for access
  177. Enter verification code> 4/ScPJA0GQwxGYF3uOApM8hQmNXM_MSMrz-1ESWSx9vgY
  178. 2017/07/10 12:17:46 ERROR : Failed to save new token in config file: section 're mote' not found
  179. --------------------
  180. [remote]
  181. client_id =
  182. client_secret =
  183. token = {"access_token":"ya29.GluDBP0a4w44pN5AfebvIiYZlsQczNAkgcMYlbanYJjlDUk4iv 73KnxZwaU73F7oWDmm9pL4q18DYXGDjElUvet0Y566mJ6tI6cbLZhA3iN_sDKM-BnE0Cf43LYf","tok en_type":"Bearer","refresh_token":"1/QI5fwVorIsmuJ2IRh8c7Ri3vCSCMq-3jRdoBPTHw-HY tN7mbwK8yCwAVhoh1bs7c","expiry":"2017-07-10T13:17:46.933364283+07:00"}
  184. --------------------
  185. y) Yes this is OK
  186. e) Edit this remote
  187. d) Delete this remote
  188. y/e/d> y
  189. Current remotes:
  190.  
  191. Name Type
  192. ==== ====
  193. remote drive
  194.  
  195. e) Edit existing remote
  196. n) New remote
  197. d) Delete remote
  198. r) Rename remote
  199. c) Copy remote
  200. s) Set configuration password
  201. q) Quit config
  202. e/n/d/r/c/s/q>
  203. e/n/d/r/c/s/q> q
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement