cc_staff
292
edits
No edit summary |
|||
Line 85: | Line 85: | ||
Unline [https://curl.haxx.se/ curl], [https://rclone.org rclone] lets you create a configuration once for each remote and use it repeatedly without having to enter the remote host details and your password every time. The password will be stored encrypted on your computer in ~/.config/rclone/rclone.conf. | Unline [https://curl.haxx.se/ curl], [https://rclone.org rclone] lets you create a configuration once for each remote and use it repeatedly without having to enter the remote host details and your password every time. The password will be stored encrypted on your computer in ~/.config/rclone/rclone.conf. | ||
First, install rclone on your computer via your favourite, e.g. via brew on MacOS. | First, install rclone on your computer via your favourite, e.g. via [https://brew.sh Homebrew] on MacOS. | ||
Next, | Next, configure a remote. Run the command | ||
$ rclone config | |||
There you have an option to edit an existing remote, create a new remote, delete a remote, and so on. Let's say we want to create a new remote called "nextcloud": | |||
<pre> | |||
choose "n" for "New remote" | |||
Enter name for new remote --> nextcloud | |||
Type of storage to configure --> 52 / WebDAV | |||
URL of http host to connect to --> https://nextcloud.computecanada.ca/remote.php/dav/files/<your CCDB username> | |||
Name of the WebDAV site/service/software you are using --> 2 / Nextcloud | |||
User name --> <your CCDB username> | |||
choose "y" for "Option pass" | |||
Password --> <your CCDB password> | |||
Leave "Option bearer_token" empty | |||
choose "no" for "Edit advanced config" | |||
choose "yes" for "Keep this 'nextcloud' remote" | |||
choose "q" to quit config | |||
</pre> | |||
Now you should be able to see your new remote in the list of configured remotes: | |||
$ rclone listremotes | |||
You can probe available disk space with: | |||
$ rclone about nextcloud: | |||
To upload a file, run | |||
$ rclone copy /path/to/local/file nextcloud:remote/path | |||
To download a file, run | |||
$ rclone copy nextcloud:path/to/remote/file . | |||
=Sharing files using Nextcloud = <!--T:33--> | =Sharing files using Nextcloud = <!--T:33--> |