I’m experimenting with running NextCloud (AIO) on a VPS with a B2 bucket as the primary storage. I want to compare performance compared to running it on my home server (esp. when I’m remote) and get an idea of the kinds of costs I’d rack up doing it.

As part of the setup I have configured the built in borg backup but it has this caveat:

Be aware that this solution does not back up files and folders that are mounted into Nextcloud using the external storage app - but you can add further Docker volumes and host paths that you want to back up after the initial backup is done.

The primary storage is external but I’m not using the “external storage” app. So, I have 2 questions.

  1. Does it backup object storage if it’s primary (my gut says no)?
  2. If no, what’s a good way to backup the B2 bucket?

I’ve done some research on this topic and I’m kinda coming up empty. I would normally use restic but restic doesn’t work in that direction (B2 -> local backup).

It looks like rclone can be used to mount a B2 bucket. One idea I had was to mount it, read-only, and let AIO/borg backup that path with the container backups.

Has anyone done this before? Any thoughts?

  • Morethanevil@lemmy.fedifriends.social
    link
    fedilink
    English
    arrow-up
    1
    ·
    6 months ago

    Be aware your backup is useless, if you don’t backup nextclouds database when using a bucket as primary storage ☝🏻

    I use nextcloud with local storage and I use rclone for backup to a S3 bucket (MinIO).

    You can use rclone to directly backing up your bucket. There is no need for restic. It is simple like rsync

    An example would be:

    rclone sync b2:mybucket otherprovider:otherbucket

    You can use local storage too:

    rclone sync b2:mybucket /my/path/here

    Rclone can mount and backup almost everything. It is a swiss knife and I love it.

    Performance is really good with nextcloud, if configurated well. Look at this thread