Package Details: rclone-mount-service 20231219-1

Git Clone URL: https://aur.archlinux.org/rclone-mount-service.git (read-only, click to copy)
Package Base: rclone-mount-service
Description: Rclone systemd user service
Upstream URL: None
Submitter: victorbnl
Maintainer: victorbnl
Last Packager: victorbnl
Votes: 5
Popularity: 0.44
First Submitted: 2023-01-24 18:53 (UTC)
Last Updated: 2023-12-19 17:38 (UTC)

Pinned Comments

victorbnl commented on 2023-01-24 18:57 (UTC) (edited on 2023-12-19 18:01 (UTC) by victorbnl)

To use this service, first create the directory ~/mnt/<REMOTE> and enable the service:

systemctl --user enable rclone@<REMOTE>

If, for some reason, you need to disable certificate checking, you can do so by overriding the service with systemctl --user edit rclone@<REMOTE>.service and adding

[Service]
Environment="RCLONE_NO_CHECK_CERTIFICATE=true"

Thanks to @cwillisf, you can now use remotes which name contains spaces or special characters using systemd-escape:

systemctl --user enable rclone@$(systemd-escape "Name with spaces")

If you encounter any other issue, please read https://gist.github.com/kabili207/2cd2d637e5c7617411a666d8d7e97101. If the issue comes from something missing in the service file or should be mentioned here, do not hesitate to leave a comment.

Latest Comments

victorbnl commented on 2023-12-19 17:54 (UTC) (edited on 2023-12-19 17:55 (UTC) by victorbnl)

Thank you for your feedback @cwillisf! I implemented the support for spaces and special characters.

cwillisf commented on 2023-11-21 17:02 (UTC)

Thanks for this package, @victorbnl! (And kabili207 as well!)

I recommend replacing every %i in rclone@.service with %I instead. That, along with using systemd-escape, will allow folks to name remotes & mounts with spaces and other special characters. For example:

rclone config create "Name with spaces" someBackend --all
systemctl --user enable rclone@$(systemd-escape "Name with spaces")
systemctl --user start rclone@$(systemd-escape "Name with spaces")

In the meantime, anyone who wants this behavior can edit /usr/lib/systemd/user/rclone@.service, replace all %i with %I, and then run systemctl --user daemon-reload to activate the changes.

victorbnl commented on 2023-07-08 16:15 (UTC)

I fixed it, thank you.

MaximGun commented on 2023-07-07 17:03 (UTC) (edited on 2023-07-07 17:04 (UTC) by MaximGun)

Hi @victorbnl, thanks for this useful package.

The instructions in the currently pinned comment from 2023-01-24 are incorrect. systemctl --user enable rclone-mount@<REMOTE> should be systemctl --user enable rclone@<REMOTE>

victorbnl commented on 2023-02-11 18:53 (UTC)

Thank you!

sekret commented on 2023-02-11 17:53 (UTC)

You can change the arch variable to 'any', because there's no binary in there.

victorbnl commented on 2023-01-24 18:57 (UTC) (edited on 2023-12-19 18:01 (UTC) by victorbnl)

To use this service, first create the directory ~/mnt/<REMOTE> and enable the service:

systemctl --user enable rclone@<REMOTE>

If, for some reason, you need to disable certificate checking, you can do so by overriding the service with systemctl --user edit rclone@<REMOTE>.service and adding

[Service]
Environment="RCLONE_NO_CHECK_CERTIFICATE=true"

Thanks to @cwillisf, you can now use remotes which name contains spaces or special characters using systemd-escape:

systemctl --user enable rclone@$(systemd-escape "Name with spaces")

If you encounter any other issue, please read https://gist.github.com/kabili207/2cd2d637e5c7617411a666d8d7e97101. If the issue comes from something missing in the service file or should be mentioned here, do not hesitate to leave a comment.