Using S3 compatible service as primary storage for Nextcloud

I tried it 4-5 years ago and performance was bad, but I am trying it now again because it would be nice to have scalable storage for Nextcloud without having to deal with more storage on the server. I set up a test instance using iDrive e2 and it just started syncing a copy of some of my data to test performance.

Is anyone using this kind of setup with Nextcloud? Mind that I mean s3 as primary storage, not external.

Lead Platform Architect at the day job, Ethical Hacker/Bug Bounty Hunter on the side

Thanked by (1)dusst

Comments

  • I actually found some posts of mine from 2023 while searching. I had forgotten that I tried it again at the time and it seemed to work better. I think I switched to Hetzner's Storage Share in a rare moment when I thought I'd stop self hosting stuff.

    Lead Platform Architect at the day job, Ethical Hacker/Bug Bounty Hunter on the side

  • I have s3 + rclone + systemd ( with iDrive e2 )

    [Unit]
    Description=rclone - s3 mount for nextcloud %i data
    Documentation=https://rclone.org/ man:rclone(1)
    AssertPathExists=/etc/rclone/rclone-%i.conf
    RequiresMountsFor=/srv/nc_data
    Before=nginx.service
    After=network-online.target
    Wants=network-online.target
    
    [Service]
    Type=notify
    Environment=RCLONE_CONFIG=/etc/rclone/rclone-%i.conf
    ExecStart=/usr/bin/rclone \
        mount idrive-mia:nextcloud-%i /srv/nc_data/%i/files \
        --allow-other \
        --log-level INFO \
        --log-file /var/log/rclone/rclone-%i.log \
        --umask 002 \
        --use-server-modtime \
        --transfers 16 \
        --cache-dir /var/www/cache/rclone/%i \
        --vfs-cache-mode full \
        --vfs-fast-fingerprint \
        --vfs-read-chunk-size 8M \
        --vfs-read-chunk-size-limit off \
        --vfs-read-ahead 256M \
        --vfs-cache-max-age 1h \
        --vfs-cache-max-size 10G
    ExecStop=/bin/fusermount -uz /srv/nc_data/%i/files
    Restart=on-failure
    User=www-data
    Group=www-data
    
    [Install]
    WantedBy=default.target
    

    I like this config ( have it for like one year without any problem )... But now im testing Nextcloud AIO

    Thanked by (1)ehab
Sign In or Register to comment.