Nextcloud: Difference between revisions

Jump to navigation Jump to search
m
copyedits
No edit summary
m (copyedits)
Line 83: Line 83:
==Upload and download files using <code>rclone</code>==
==Upload and download files using <code>rclone</code>==


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.
Unlike [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 package manager, e.g. via [https://brew.sh Homebrew] on MacOS.
First, install rclone on your computer via your favourite package manager, e.g. via [https://brew.sh Homebrew] on MacOS.


Next, configure a remote. Run the command
Next, configure a remote. Run the command:


  $ rclone config
  $ rclone config
Line 116: Line 116:
  $ rclone about nextcloud:
  $ rclone about nextcloud:


To upload a file, run
To upload a file, run:


  $ rclone copy /path/to/local/file nextcloud:remote/path
  $ rclone copy /path/to/local/file nextcloud:remote/path


To download a file, run
To download a file, run:


  $ rclone copy nextcloud:remote/path/file .
  $ rclone copy nextcloud:remote/path/file .
cc_staff
82

edits

Navigation menu