Trying to add an sshfs mounted location as a regular file system volume type in Cloudron
-
@andreasdueren the setup in this case is based on rclone, is that what you're looking for? Because the regular storage box setup you probably already know of, since you posted in there as well
https://forum.cloudron.io/post/32783
-
@andreasdueren the setup in this case is based on rclone, is that what you're looking for? Because the regular storage box setup you probably already know of, since you posted in there as well
https://forum.cloudron.io/post/32783
@msbt Yes the regular storage box setup i'm well familiar with. But that won't work with immich. So you installed rclone and connected via the SFTP backend?
-
@msbt Yes the regular storage box setup i'm well familiar with. But that won't work with immich. So you installed rclone and connected via the SFTP backend?
@andreasdueren yep, I did this to install and configure it:
curl https://rclone.org/install.sh | sudo bash rclone config
after that, the config will resides in
~/.config/rclone/rclone.conf
and will look something like this (I enabled encryption too, because why not
:
[backup] type = sftp host = u123456-sub1.your-storagebox.de user = u123456-sub1 port = 23 pass = hashed_pwd md5sum_command = md5 -r sha1sum_command = sha1 -r shell_type = unix idle_timeout = 0 [backupcrypt] type = crypt remote = backup:backup
mounting:
mkdir /mnt/backup chown -R yellowtent:yellowtent /mnt/backup rclone mount backupcrypt: /mnt/backup \ --crypt-password "verylonghashedpwd" \ --crypt-password2 "evenlongerhashedpwd" \ --vfs-cache-mode writes --daemon --transfers 3 --checkers 6 --allow-other
The last bit was the important one, without it mounting wasn't possible. You should now be able to mount the rclone thing as a volume. For whatever reason it shows the red dot, I'm guessing that's because of the fs. However, I haven't had an issue with that in months. Currently I'm mounting it manually on every machine reboot, but there are ways to mount it automatically.
-
@andreasdueren yep, I did this to install and configure it:
curl https://rclone.org/install.sh | sudo bash rclone config
after that, the config will resides in
~/.config/rclone/rclone.conf
and will look something like this (I enabled encryption too, because why not
:
[backup] type = sftp host = u123456-sub1.your-storagebox.de user = u123456-sub1 port = 23 pass = hashed_pwd md5sum_command = md5 -r sha1sum_command = sha1 -r shell_type = unix idle_timeout = 0 [backupcrypt] type = crypt remote = backup:backup
mounting:
mkdir /mnt/backup chown -R yellowtent:yellowtent /mnt/backup rclone mount backupcrypt: /mnt/backup \ --crypt-password "verylonghashedpwd" \ --crypt-password2 "evenlongerhashedpwd" \ --vfs-cache-mode writes --daemon --transfers 3 --checkers 6 --allow-other
The last bit was the important one, without it mounting wasn't possible. You should now be able to mount the rclone thing as a volume. For whatever reason it shows the red dot, I'm guessing that's because of the fs. However, I haven't had an issue with that in months. Currently I'm mounting it manually on every machine reboot, but there are ways to mount it automatically.
@msbt nice, thanks! Will have to read out on that. How is speed? Are you using it for immich?
-
@msbt nice, thanks! Will have to read out on that. How is speed? Are you using it for immich?
@andreasdueren you're welcome, I forgot to post the Hetzner docs, they also have a bit of information on that. Speeds are fine, never had any issues with various kinds of media.