Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [root@quan home]# rclone
- Usage:
- rclone [flags]
- rclone [command]
- Available Commands:
- authorize Remote authorization.
- cat Concatenates any files and sends them to stdout.
- check Checks the files in the source and destination match.
- cleanup Clean up the remote if possible
- config Enter an interactive configuration session.
- copy Copy files from source to dest, skipping already copied
- copyto Copy files from source to dest, skipping already copied
- cryptcheck Cryptcheck checks the integritity of a crypted remote.
- dedupe Interactively find duplicate files delete/rename them.
- delete Remove the contents of path.
- genautocomplete Output bash completion script for rclone.
- gendocs Output markdown docs for rclone to the directory supplied.
- listremotes List all the remotes in the config file.
- ls List all the objects in the path with size and path.
- lsd List all directories/containers/buckets in the path.
- lsl List all the objects path with modification time, size and pat h.
- md5sum Produces an md5sum file for all the objects in the path.
- mkdir Make the path if it doesn't already exist.
- mount Mount the remote as a mountpoint. **EXPERIMENTAL**
- move Move files from source to dest.
- moveto Move file or directory from source to dest.
- obscure Obscure password for use in the rclone.conf
- purge Remove the path and all of its contents.
- rmdir Remove the path if empty.
- rmdirs Remove any empty directoryies under the path.
- sha1sum Produces an sha1sum file for all the objects in the path.
- size Prints the total size and number of objects in remote:path.
- sync Make source and dest identical, modifying destination only.
- version Show the version number.
- Flags:
- --acd-templink-threshold int Files >= this size will be downloaded via their tempLink. (default 9G)
- --acd-upload-wait-per-gb duration Additional time per GB to wait after a failed complete upload to see if it appears. (default 3m0s)
- --ask-password Allow prompt for password for encrypte d configuration. (default true)
- --b2-chunk-size int Upload chunk size. Must fit in memory. (default 96M)
- --b2-test-mode string A flag string for X-Bz-Test-Mode heade r.
- --b2-upload-cutoff int Cutoff for switching to chunked upload (default 190.735M)
- --b2-versions Include old versions in directory list ings.
- --backup-dir string Make backups into hierarchy based in D IR.
- --buffer-size int Buffer size when copying files. (defau lt 16M)
- --bwlimit BwTimetable Bandwidth limit in kBytes/s, or use su ffix b|k|M|G or a full timetable.
- --checkers int Number of checkers to run in parallel. (default 8)
- -c, --checksum Skip based on checksum & size, not mod -time & size
- --config string Config file. (default "/root/.config/r clone/rclone.conf")
- --contimeout duration Connect timeout (default 1m0s)
- -L, --copy-links Follow symlinks and copy the pointed t o item.
- --cpuprofile string Write cpu profile to file
- --crypt-show-mapping For all files listed show how the name s encrypt.
- --delete-after When synchronizing, delete files on de stination after transfering
- --delete-before When synchronizing, delete files on de stination before transfering
- --delete-during When synchronizing, delete files durin g transfer (default)
- --delete-excluded Delete files on dest excluded from syn c
- --drive-auth-owner-only Only consider files owned by the authe nticated user. Requires drive-full-list.
- --drive-chunk-size int Upload chunk size. Must a power of 2 > = 256k. (default 8M)
- --drive-formats string Comma separated list of preferred form ats for downloading Google docs. (default "docx,xlsx,pptx,svg")
- --drive-full-list Use a full listing for directory list. More data but usually quicker. (obsolete)
- --drive-list-chunk int Size of listing chunk 100-1000. 0 to d isable. (default 1000)
- --drive-skip-gdocs Skip google documents in all listings.
- --drive-upload-cutoff int Cutoff for switching to chunked upload (default 8M)
- --drive-use-trash Send files to the trash instead of del eting permanently.
- --dropbox-chunk-size int Upload chunk size. Max 150M. (default 128M)
- -n, --dry-run Do a trial run with no permanent chang es
- --dump-auth Dump HTTP headers with auth info
- --dump-bodies Dump HTTP headers and bodies - may con tain sensitive info
- --dump-filters Dump the filters to the output
- --dump-headers Dump HTTP headers - may contain sensit ive info
- --exclude stringArray Exclude files matching pattern
- --exclude-from stringArray Read exclude patterns from file
- --files-from stringArray Read list of source-file names from fi le
- -f, --filter stringArray Add a file-filtering rule
- --filter-from stringArray Read filtering patterns from a file
- --ignore-checksum Skip post copy check of checksums.
- --ignore-existing Skip all files that exist on destinati on
- --ignore-size Ignore size when skipping use mod-time or checksum.
- -I, --ignore-times Don't skip files that match size and t ime - transfer all files
- --include stringArray Include files matching pattern
- --include-from stringArray Read include patterns from file
- --log-file string Log everything to this file
- --log-level string Log level DEBUG|INFO|NOTICE|ERROR (def ault "INFO")
- --low-level-retries int Number of low level retries to do. (de fault 10)
- --max-age string Don't transfer any file older than thi s in s or suffix ms|s|m|h|d|w|M|y
- --max-depth int If set limits the recursion depth to t his. (default -1)
- --max-size int Don't transfer any file larger than th is in k or suffix b|k|M|G (default off)
- --memprofile string Write memory profile to file
- --min-age string Don't transfer any file younger than t his in s or suffix ms|s|m|h|d|w|M|y
- --min-size int Don't transfer any file smaller than t his in k or suffix b|k|M|G (default off)
- --modify-window duration Max time diff to be considered the sam e (default 1ns)
- --no-check-certificate Do not verify the server SSL certifica te. Insecure.
- --no-gzip-encoding Don't set Accept-Encoding: gzip.
- --no-traverse Don't traverse destination file system on copy.
- --no-update-modtime Don't update destination mod-time if f iles identical.
- --old-sync-method Temporary flag to select old sync meth od
- -x, --one-file-system Don't cross filesystem boundaries.
- --onedrive-chunk-size int Above this size files will be chunked - must be multiple of 320k. (default 10M)
- --onedrive-upload-cutoff int Cutoff for switching to chunked upload - must be <= 100MB (default 10M)
- -q, --quiet Print as little stuff as possible
- --retries int Retry operations this many times if th ey fail (default 3)
- --s3-acl string Canned ACL used when creating buckets and/or storing objects in S3
- --s3-storage-class string Storage class to use when uploading S3 objects (STANDARD|REDUCED_REDUNDANCY|STANDARD_IA)
- --size-only Skip based on size only, not mod-time or checksum
- --stats duration Interval between printing stats, e.g 5 00ms, 60s, 5m. (0 to disable) (default 1m0s)
- --stats-unit string Show data rate in stats as either 'bit s' or 'bytes'/s (default "bytes")
- --suffix string Suffix for use with --backup-dir.
- --swift-chunk-size int Above this size files will be chunked into a _segments container. (default 5G)
- --syslog Use Syslog for logging
- --syslog-facility string Facility for syslog, eg KERN,USER,... (default "DAEMON")
- --timeout duration IO idle timeout (default 5m0s)
- --track-renames When synchronizing, track file renames and do a server side move if possible
- --transfers int Number of file transfers to run in par allel. (default 4)
- -u, --update Skip files that are newer on the desti nation.
- -v, --verbose count[=-1] Print lots more stuff (repeat for more )
- -V, --version Print the version number
- Use "rclone [command] --help" for more information about a command.
- Command not found.
- [root@quan home]# rclone lsd remoate
- 2017/07/10 12:16:56 directory not found
- [root@quan home]# reclone config
- -bash: reclone: command not found
- [root@quan home]# rclone config
- No remotes found - make a new one
- n) New remote
- r) Rename remote
- c) Copy remote
- s) Set configuration password
- q) Quit config
- n/r/c/s/q> n
- name> remote
- Type of storage to configure.
- Choose a number from below, or type in your own value
- 1 / Amazon Drive
- \ "amazon cloud drive"
- 2 / Amazon S3 (also Dreamhost, Ceph, Minio)
- \ "s3"
- 3 / Backblaze B2
- \ "b2"
- 4 / Dropbox
- \ "dropbox"
- 5 / Encrypt/Decrypt a remote
- \ "crypt"
- 6 / Google Cloud Storage (this is not Google Drive)
- \ "google cloud storage"
- 7 / Google Drive
- \ "drive"
- 8 / Hubic
- \ "hubic"
- 9 / Local Disk
- \ "local"
- 10 / Microsoft OneDrive
- \ "onedrive"
- 11 / Openstack Swift (Rackspace Cloud Files, Memset Memstore, OVH)
- \ "swift"
- 12 / SSH/SFTP Connection
- \ "sftp"
- 13 / Yandex Disk
- \ "yandex"
- Storage> 7
- Google Application Client Id - leave blank normally.
- client_id>
- Google Application Client Secret - leave blank normally.
- client_secret>
- Remote config
- Use auto config?
- * Say Y if not sure
- * Say N if you are working on a remote or headless machine or Y didn't work
- y) Yes
- n) No
- y/n> n
- 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
- Log in and authorize rclone for access
- Enter verification code> 4/ScPJA0GQwxGYF3uOApM8hQmNXM_MSMrz-1ESWSx9vgY
- 2017/07/10 12:17:46 ERROR : Failed to save new token in config file: section 're mote' not found
- --------------------
- [remote]
- client_id =
- client_secret =
- 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"}
- --------------------
- y) Yes this is OK
- e) Edit this remote
- d) Delete this remote
- y/e/d> y
- Current remotes:
- Name Type
- ==== ====
- remote drive
- e) Edit existing remote
- n) New remote
- d) Delete remote
- r) Rename remote
- c) Copy remote
- s) Set configuration password
- q) Quit config
- e/n/d/r/c/s/q>
- e/n/d/r/c/s/q> q
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement