Rclone: Difference between revisions
Line 73: | Line 73: | ||
Crypt creates fake remotes (Crypt remotes) which represent decrypted versions of paths in real remotes (e.g. Google Drive). | Crypt creates fake remotes (Crypt remotes) which represent decrypted versions of paths in real remotes (e.g. Google Drive). | ||
==Mount on Startup | ==Mount on Startup== | ||
You can mount on startup using a systemd service: | You can mount on startup using a systemd service: | ||
<pre> | <pre> |
Revision as of 12:36, 26 May 2020
rclone
rsync for cloud storage
https://rclone.org/
Install
You can download a deb or rpm from their website.
Or you can run the following script
curl https://rclone.org/install.sh | sudo bash
If you do not have sudo, you can download the binary and put it in your ~/bin
folder.
For Windows, rclone is also available on Chocolatey
choco install rclone
Usage
Setup Services
rclone config
Common Flags
-P, --progress
show progress (transferred, ETA, elapsed)-n, --dry-run
Mount
mkdir /path/to/local/mount rclone mount remote:path/to/files /path/to/local/mount
- Unmount
fusermount -u /path/to/local/mount
Sync
Make source and dest identical, modifying destination only.
Note: This is like copy but it will delete files in the destination.
rclone sync source:path dest:path [flags]
- Flags
--create-empty-src-dirs Create empty source dirs on destination after sync -h, --help help for sync
Copy
Copy files from source to dest, skipping already copied
rclone copy source:path dest:path [flags]
- Notes
- This will overwrite existing files which are different
- Use
--ignore-existing
to skip existing files - Use
--backup-dir <path>
to move existing files which would be modified to another folder
- Use
Crypt
https://rclone.org/crypt/
Crypt allows you to encrypt the files you backup in the cloud.
This is similar to Cryptomator but you don't need to store the encrypted files locally.
Crypt creates fake remotes (Crypt remotes) which represent decrypted versions of paths in real remotes (e.g. Google Drive).
Mount on Startup
You can mount on startup using a systemd service:
# /etc/systemd/system/terpmail.service [Unit] Description=rclone terpmail After=network.target [Service] Type=simple Restart=always User=david Group=david ExecStart=/usr/bin/rclone mount terpmail: ${HOME}/terpmail --vfs-cache-mode full ExecStop=/bin/fusermount -u ${HOME}/terpmail [Install] WantedBy=multi-user.target