Installation
curl https://rclone.org/install.sh | sudo bash
Configuration Location
By default, rclone stores its configuration in ~/.config/rclone/rclone.conf
, simply copying this file will transfer your configuration to another system.
To check the configuration file location, you can run:
rclone config file
Usage
- Run the configuration command:
rclone config
- Choose
n
for a new remote. - Enter a name (e.g.,
gdrive
). - Select
google drive
as the storage type. - Follow the prompts to authenticate with your Google account.
- When finished, list your remotes:
rclone listremotes
To list files in your Google Drive:
rclone ls gdrive:
To sync a local folder to Google Drive:
rclone sync /path/to/local/folder gdrive:/destination-folder
Mounting rclone as a Local Drive
You can mount a remote as a local filesystem using rclone mount
. This requires FUSE.
Example command:
rclone mount gdrive: /mnt/gdrive
- Replace
gdrive:
with your remote name. - Replace
/mnt/gdrive
with your desired mount point.
To unmount:
- On Linux/macOS:
fusermount -u /mnt/gdrive
For background mounting, add --daemon
(Linux/macOS):
rclone mount gdrive: /mnt/gdrive --daemon
See rclone mount documentation for advanced options.