Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Cloudron Forum

Apps | Demo | Docs | Install

Backup feedback over sshfs

Scheduled Pinned Locked Moved Solved Support
sshfsbackups
35 Posts 6 Posters 1.3k Views
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • girishG Do not disturb
    girishG Do not disturb
    girish Staff
    wrote on last edited by
    #2

    For the last release, I did some basic performance tests to get the backup speed to be at par with something like rclone. I did not test sshfs specifically but I am curious how long it takes to copy this amount of data using normal tool in your setup? For example, how long does a cp of so small small files take? (Just rough number is fine). Granted, Cloudron being node.js based is not going to be as fast as native tools, but given that both of them are just copying files sequentially, i don't expect that big a difference. (Like maybe Cloudron takes a minute or two more).

    1 Reply Last reply
    0
  • girishG Do not disturb
    girishG Do not disturb
    girish Staff
    wrote on last edited by
    #3

    In the other thread, I saw that you were using encrypted backups. Is this the case when you tested this? Encryption requires a decent CPU as well, so a simple cp is not a fair comparison. I wonder if you can enable encryption on the remote disk somehow and not rely on Cloudron encryption?

    1 Reply Last reply
    0
  • R Offline
    R Offline
    Robin
    wrote on last edited by
    #4

    For the last release, I did some basic performance tests to get the backup speed to be at par with something like rclone. I did not test sshfs specifically but I am curious how long it takes to copy this amount of data using normal tool in your setup?

    My guess is that the problem is inherent to sshfs, and is not something specific to Cloudron (sshfs not being fast is pretty widely known/recognized). The only real reason I am reporting this is to perhaps suggest noting that it does not scale well in the docs, or something like that, because I don't think this gives a particularly good impression as-is.

    sshfs is very sensitive to latency, so any cases where you run it to a remote server on a different network, the slowdown will be very noticable.

    Using a tool more suited to this style of operation (like, say, rsync) will give better results, but it will still not scale well for large files (or large datasets, over say a few hundred GB of small files).

    In the other thread, I saw that you were using encrypted backups. Is this the case when you tested this? Encryption requires a decent CPU as well, so a simple cp is not a fair comparison. I wonder if you can enable encryption on the remote disk somehow and not rely on Cloudron encryption?

    Correct, encryption was enabled, but it wasn't really a factor. CPU was more or less idle while this was going on. Remote disk encryption isn't really an option in this case because I don't have physical control over the remote host, so I want to keep the data hidden 🙂

    1 Reply Last reply
    1
  • rmdesR Offline
    rmdesR Offline
    rmdes
    wrote on last edited by rmdes
    #5

    We have been using sshfs backup for a few months now, I had same experience with rsync, it takes several days in our case to finish, so I tried tgz backup, it's way faster than rsync but what really bothers me is that each time the sshfs mount breaks (no idea why, sometimes it gets dismounted out of nowhere) then when I remount it all the backups are gone, meaning, they are physically on my storage box but not listed on each apps or on the main backup view.

    I have to make a full new backup for it to be listed until the next mount drop...

    of course If I attempts to clean the backup, since previous backup are not indexed, they don't exist and need to be cleaned up by hand (which is something I would love to avoid)

    Is there anything I could do to improve this situation or perhaps force some kind of scan that would index properly previous backups (before the sshfs mount breakage) ?

    edit : not using encrypted backup at this stage

    girishG 1 Reply Last reply
    1
  • girishG Do not disturb
    girishG Do not disturb
    girish Staff
    replied to rmdes on last edited by
    #6

    @rmdes said in Backup feedback over sshfs:

    Is there anything I could do to improve this situation or perhaps force some kind of scan that would index properly previous backups (before the sshfs mount breakage) ?

    It's hard to know why this is happening without looking into the server/logs. If you can email me on support@ , when things are a bit broken, I can debug it further.

    rmdesR 1 Reply Last reply
    0
  • rmdesR Offline
    rmdesR Offline
    rmdes
    replied to girish on last edited by rmdes
    #7

    @girish OK next time it breaks I'll send an email about it, leaving it as it is so that you can have a look, I already tried to find the reasons but beside "time-out" I couldn't find anything particular 😕

    checking everyday and now that I'm waiting for it to un-mount, it does not 🙂 haha

    rmdesR 1 Reply Last reply
    1
  • rmdesR Offline
    rmdesR Offline
    rmdes
    replied to rmdes on last edited by rmdes
    #8

    @girish here we go :

    45598875-41c8-46c2-8927-8d7be665bf2f-image.png

    This is after a reboot of the server.

    but this time I clicked Remount Storage and instead of "removing" previous backups, everything is mounted and backups are listed as usual..

    I think the other times this happened, I was going to Volumes, reconnect the mount (maybe this is what makes previous backups, inside the volume, unlisted after a remount?)
    then go to backup and Remount the storage, but this time I just clicked once, in the backup view, remount storage and all is fine.

    19e887f5-548e-40df-8fc5-05d591b77b31-image.png

    nebulonN 1 Reply Last reply
    1
  • nebulonN Online
    nebulonN Online
    nebulon Staff
    replied to rmdes on last edited by
    #9

    @rmdes thanks for the details. So this is the same issue with the systemd unit dependencies during boot. The mount units are simply skipped it seems due to this circular dependency. We have to fix this for the next release, just not yet sure how 🙂

    rmdesR 2 Replies Last reply
    0
  • rmdesR Offline
    rmdesR Offline
    rmdes
    replied to nebulon on last edited by
    #10

    @nebulon What if the mount was being made persistent at the OS level so then when cloudron reboot it could check those system mounts and if they match existing volumes, mount them properly ?

    nebulonN 1 Reply Last reply
    0
  • nebulonN Online
    nebulonN Online
    nebulon Staff
    replied to rmdes on last edited by
    #11

    @rmdes they are setup with systemd, so they are system-level already. The issue is DNS/unbound dependency for the mounting as well as docker for the volumes. Since there is some circular dependency currently, systemd breaks the circle by disabling the mount points during startup, which is causing the issue that they are not mounted after reboot.

    rmdesR 1 Reply Last reply
    1
  • rmdesR Offline
    rmdesR Offline
    rmdes
    replied to nebulon on last edited by
    #12

    @nebulon and what if the systemd mount unit was delayed, to a certain level so to avoid the breakage ?

    1 Reply Last reply
    0
  • girishG Do not disturb
    girishG Do not disturb
    girish Staff
    wrote on last edited by girish
    #13

    Does the xx.your-storagebox.de resolve to a static/fixed single IP?

    rmdesR 1 Reply Last reply
    1
  • rmdesR Offline
    rmdesR Offline
    rmdes
    replied to girish on last edited by
    #14

    @girish nope it does not and hetzner storage box do not allow me to get one...

    1 Reply Last reply
    0
  • rmdesR Offline
    rmdesR Offline
    rmdes
    replied to nebulon on last edited by
    #15

    @nebulon @girish Not in a hurry or anything, but the state bug is happening (happens at each reboot basically) I've left it unmounted and will for the weekend if at some point you want to SSH-support and retrieve log traces related to the mounting issue or I can post here if you indicate the commands you want to get more context ?

    rmdesR 1 Reply Last reply
    0
  • rmdesR Offline
    rmdesR Offline
    rmdes
    replied to rmdes on last edited by rmdes
    #16

    I have remounted the volume now and something that really is problematic with this type of backup is that, even when you remount the volume and storage backup location (that part works just great with two clicks) it seems previous backup at the mounted location are not listed, it's like a brand new freshly added volume/storage.

    Meaning, previous backups can only be restored manually, they can be retrieved anymore from cloudron dashboard, the only way is to follow the manual instruction from the doc to retrieve backup ID etc..

    manual remount wouldn't be an issue for my use case If I could get the existing backup listed when the volume/storage is remounted.

    volume view remounted :
    bb279ea9-0b29-4ef4-b8f7-ead6c5511750-image.png
    backup view remounted :
    7453e2e1-041c-4e37-9d69-49bcc9b9a022-image.png
    the backup listing view after everything is remounted :
    3bb93157-17c0-42c0-a94c-c7841838e9a1-image.png

    I was wondering if it wouldn't be a good idea to have a button to rescan the backup target for backups that match previously made cloudron backups ?

    nebulonN 1 Reply Last reply
    1
  • H Offline
    H Offline
    hendrikvl
    wrote on last edited by
    #17

    I use a Hetzner storagebox via sshfs as backup provider and also have the issue with the volume being not mounted after reach reboot. Clicking the remount volume button solves it for me though. All previous backups are correctly listed after remounting.

    Having to remount the volume manually is somewhat annoying though and I would appreciate a solution which solves the issue with the circular dependency on boot.

    1 Reply Last reply
    1
  • nebulonN Online
    nebulonN Online
    nebulon Staff
    replied to rmdes on last edited by
    #18

    @rmdes actually I am not sure if you use that thing correctly. Volumes and the backup storage are not really related. The way you have it configured, the same mountpoint would be mounted twice. Once for the volume (which is supposed to be used within apps) and the backup storage.

    @hendrikvl we try to fix this reboot and volume mounting issue in the upcoming release.

    rmdesR 2 Replies Last reply
    0
  • rmdesR Offline
    rmdesR Offline
    rmdes
    replied to nebulon on last edited by rmdes
    #19

    @nebulon wow, alright, I may have misunderstood the documentation then, will remove on the volume side

    • now I remember, I had it on the volume because one of my apps/domains was reading a music folder from the same sshfs mount point, which happened to be the same storage.
    rmdesR 1 Reply Last reply
    0
  • rmdesR Offline
    rmdesR Offline
    rmdes
    replied to rmdes on last edited by
    #20

    So that must be why after a remount (wihtout removing the volume or backup mount)
    the newly mounted volume cannot "see" the pre-existing files ?
    a7737c96-190e-4b6f-a5f8-c70932057f77-image.png

    1 Reply Last reply
    0
  • rmdesR Offline
    rmdesR Offline
    rmdes
    replied to nebulon on last edited by
    #21

    @nebulon So this is the steps I did :

    • removed the volume since no app was using it
    • remounted the backup by clicking "remount storage" on the backup view

    All seems to be ready for a backup but old backups are gone :
    0cf883e3-196b-4bb7-a436-075e5dec18c3-image.png

    nebulonN 1 Reply Last reply
    0

  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Login

  • Don't have an account? Register

  • Login or register to search.