From eb81ce2f134a6c4c8319146a622582b1c59045e3 Mon Sep 17 00:00:00 2001 From: soleofthesea <35699509+soleofthesea@users.noreply.github.com> Date: Tue, 13 Feb 2024 20:50:15 +0800 Subject: [PATCH] rclone: update page (#12181) * rclone: update page --------- Co-authored-by: K.B.Dharun Krishna Co-authored-by: Vitor Henrique <87824454+vitorhcl@users.noreply.github.com> --- pages/common/rclone.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/pages/common/rclone.md b/pages/common/rclone.md index 8f59e63e9e..22f09991da 100644 --- a/pages/common/rclone.md +++ b/pages/common/rclone.md @@ -3,27 +3,27 @@ > Copy, synchronize or move files and directories to and from many cloud services. > More information: . +- Launch an interactive menu to setup rclone: + +`rclone config` + - List contents of a directory on an rclone remote: `rclone lsf {{remote_name}}:{{path/to/directory}}` -- Copy file or directory from local source to remote destination: +- Copy a file or directory from the local machine to the remote destination: -`rclone copy {{path/to/source_file_or_directory}} {{remote_name}}:{{path/to/destination_directory}}` +`rclone copy {{path/to/source_file_or_directory}} {{remote_name}}:{{path/to/directory}}` -- Copy file or directory from remote source to local destination: +- Copy files changed within the past 24 hours to a remote from the local machine, asking the user to confirm each file: -`rclone copy {{remote_name}}:{{path/to/source_file_or_directory}} {{path/to/destination_directory}}` +`rclone copy --interactive --max-age 24h {{remote_name}}:{{path/to/directory}} {{path/to/local_directory}} ` -- Sync local source to remote destination, changing the destination only: +- Mirror a specific file or directory (Note: Unlike copy, sync removes files from the remote if it does not exist locally): `rclone sync {{path/to/file_or_directory}} {{remote_name}}:{{path/to/directory}}` -- Move file or directory from local source to remote destination: - -`rclone move {{path/to/file_or_directory}} {{remote_name}}:{{path/to/directory}}` - -- Delete remote file or directory (use `--dry-run` to test, remove it to actually delete): +- Delete a remote file or directory (Note: `--dry-run` means test, remove it from the command to actually delete): `rclone --dry-run delete {{remote_name}}:{{path/to/file_or_directory}}`