diff --git a/rclone.md b/rclone.md new file mode 100644 index 0000000000..54eaee7d4c --- /dev/null +++ b/rclone.md @@ -0,0 +1,71 @@ +--- +title: rclone +category: CLI +--- + +### Basic configuration + +```bash +rclone config # Start the interactive configuration wizard to add new remotes +rclone config show # Display the current configuration +rclone listremotes # List the names of all configured remotes +``` + +### Listing files & directories + +```bash +rclone ls : # List files and file sizes +rclone lsl : # List files, sizes, and modification times +rclone lsd : # List directories only +rclone tree : # List contents in a tree-like structure +``` + +### Copying & syncing + +#### Copy + +```bash +rclone copy # Copy new/changed files +rclone copy --dry-run # Test the copy operation without making changes +``` + +#### Sync + +```bash +rclone sync # Sync source to destination +rclone sync --dry-run # Test the sync operation (recommended before actual sync) +``` + +### Deleting & moving + +```bash +rclone move # Move files (copy and then delete the source) +rclone delete : # Delete the files in the path +rclone purge : # Delete the path and all of its contents (Irrecoverable!) +rclone rmdir : # Remove an empty directory +``` + +### File manipulation + +```bash +rclone mkdir : # Create a new directory +rclone touch :/file.txt # Create a new file with the current time +rclone cat :/file.txt # Output the file content to standard output +rclone check # Check if the files in source and dest are identical +``` + +### Important flags (general) + +```bash +--dry-run # Show what would be transferred without doing it +-P or --progress # Show progress during transfer +--transfers=N # Set number of file transfers to run in parallel (default 4) +--checkers=N # Set number of checkers to run in parallel (default 8) +--max-age