Sign inSign up

defnotgustavom/rclone

By defnotgustavom

•Updated over 3 years ago

Rclone is a cli program to sync files and directories to and from different cloud storage providers.

Image
0

3.8K

defnotgustavom/rclone repository overview

  • Running:

docker run -it --name rclone defnotgustavom/rclone

If you are having trouble with permissions, try changing user to root with "-u root" or to your current user with "-u $(id -un)".

For more info, check https://rclone.org/docs/⁠


  • Usage:

rclone [flags]

rclone [command]

  • Available Commands:

about Get quota information from the remote.

authorize Remote authorization.

backend Run a backend-specific command.

bisync Perform bidirectional synchronization between two paths.

cat Concatenates any files and sends them to stdout.

check Checks the files in the source and destination match.

checksum Checks the files in the source against a SUM file.

cleanup Clean up the remote if possible.

completion Output completion script for a given shell.

config Enter an interactive configuration session.

copy Copy files from source to dest, skipping identical files.

copyto Copy files from source to dest, skipping identical files.

copyurl Copy url content to dest.

cryptcheck Cryptcheck checks the integrity of an encrypted remote.

cryptdecode Cryptdecode returns unencrypted file names.

dedupe Interactively find duplicate filenames and delete/rename them.

delete Remove the files in path.

deletefile Remove a single file from remote.

gendocs Output markdown docs for rclone to the directory supplied.

hashsum Produces a hashsum file for all the objects in the path.

help Show help for rclone commands, flags and backends.

link Generate public link to file/folder.

listremotes List all the remotes in the config file and defined in environment variables.

ls List the objects in the path with size and path.

lsd List all directories/containers/buckets in the path.

lsf List directories and objects in remote:path formatted for parsing.

lsjson List directories and objects in the path in JSON format.

lsl List the objects in path with modification time, size and path.

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 file system on a mountpoint.

move Move files from source to dest.

moveto Move file or directory from source to dest.

ncdu Explore a remote with a text based user interface.

obscure Obscure password for use in the rclone config file.

purge Remove the path and all of its contents.

rc Run a command against a running rclone.

rcat Copies standard input to file on remote.

rcd Run rclone listening to remote control commands only.

rmdir Remove the empty directory at path.

rmdirs Remove empty directories under the path.

selfupdate Update the rclone binary.

serve Serve a remote over a protocol.

settier Changes storage class/tier of objects in remote.

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.

test Run a test command

touch Create new file or change file modification time.

tree List the contents of the remote in a tree like fashion.

version Show the version number.


       * Configuring rclone

        rclone config

        n/s/q> n         # New

        name>gdrive      # Gdrive is an example name

        Storage>         # Select the number shown for Google Drive

        client_id>       # Can be left blank

        client_secret>   # Can be left blank

        scope>           # Select your scope, 1 for example

         root_folder_id>  # Can be left blank

         service_account_file> /home/foo/myJSONfile.json # This is where the JSON file goes!

         y/n>             # Auto config, n

 Verifying that it's working

 rclone -v --drive-impersonate [email protected] lsf gdrive:backup

 The arguments do:

  -v - verbose logging

 --drive-impersonate [email protected] - this is what does the magic, pretending to be user foo.

 lsf - list files in a parsing friendly way

 gdrive:backup - use the remote called gdrive, work in the folder named backup.

Tag summary

Content type

Image

Digest

sha256:f97e8f983…

Size

13.2 MB

Last updated

over 3 years ago

docker pull defnotgustavom/rclone