Seafile Backups with restic #65

Closed
opened 2024-12-23 14:42:15 +01:00 by lukas · 4 comments
Owner

Currently using Scaleway Glacier for backups of Seafile.
With the recent change to restic for backups (#59) i wanted to also use it for Seafile backups.

Due to the offline-nature I cannot use restic with Scaleway Glacier, which is why I have been looking to change our backup target while staying cost-effective. Storj DCS costs 5,96€/TB (4$/TB + ~2,2$ segment fees per used TB), Backblaze 6,87€/TB (6$/TB + USt.) and GCP Archive 1,38€/TB (1,16€/TB + USt.) so I think the winner is clear. Only downside with GCP Archive-tier is their 1 year minimum retention, but when I configure restic to keep backups for a long time, this should not incur much cost - and the storage is quite cheap at that so I don't feel like keeping deleted data for long is a big issue - especially since restic is also encrypted.

My local HDD + tape backups are enough to plausibly restore all data in case of an error with primary storage, so it's unlikely I'll have to restore from GCP.

Currently using Scaleway Glacier for backups of Seafile. With the recent change to restic for backups (#59) i wanted to also use it for Seafile backups. Due to the offline-nature I cannot use restic with Scaleway Glacier, which is why I have been looking to change our backup target while staying cost-effective. Storj DCS costs 5,96€/TB (4$/TB + ~2,2$ segment fees per used TB), Backblaze 6,87€/TB (6$/TB + USt.) and GCP Archive 1,38€/TB (1,16€/TB + USt.) so I think the winner is clear. Only downside with GCP Archive-tier is their 1 year minimum retention, but when I configure restic to keep backups for a long time, this should not incur much cost - and the storage is quite cheap at that so I don't feel like keeping deleted data for long is a big issue - especially since restic is also encrypted. My local HDD + tape backups are enough to plausibly restore all data in case of an error with primary storage, so it's unlikely I'll have to restore from GCP.
lukas added the
Status
Planned
Kind
Enhancement
Priority
Low
Domain
libre.moe
labels 2024-12-23 14:42:15 +01:00
lukas self-assigned this 2024-12-23 14:42:15 +01:00
lukas added this to the Issue Board project 2024-12-23 14:42:15 +01:00
lukas changed title from Seafile Backups to Seafile Backups with restic 2024-12-23 14:42:23 +01:00
Author
Owner

Discovered road block: restic in it's current configuration uses too much memory (as our data set consists of a huge amount of small files) but the host system does not have sufficient resources to allow restic such usage.

Discovered road block: restic in it's current configuration uses too much memory (as our data set consists of a huge amount of small files) but the host system does not have sufficient resources to allow restic such usage.
Author
Owner

Since I run my setup off of juicefs, i could literally use any other server, mount the juciefs there and backup it up. Maybe I could find a service which allows me to run a job (like a container image set up for everything) and execute it with enough RAM/CPU/network)

Since I run my setup off of juicefs, i could literally use any other server, mount the juciefs there and backup it up. Maybe I could find a service which allows me to run a job (like a container image set up for everything) and execute it with enough RAM/CPU/network)
Author
Owner

If I used Scaleway for such backups, the costs would likely be extremly low for just running the backup daily and a clean up job every month or so.

grafik
If I used Scaleway for such backups, the costs would likely be extremly low for just running the backup daily and a clean up job every month or so. <img width="631" alt="grafik" src="attachments/0e41cdd4-141d-4f51-bdfc-f71e17469153">
Author
Owner

Closing for now, this setup would be complicated and left root credentials on another prodivers server. Mounting the fusefs might also proove difficult as I needed to somehow forward access to my redis db.
The local backups are versioned either way, so I could just make a new version there.

Closing for now, this setup would be complicated and left root credentials on another prodivers server. Mounting the fusefs might also proove difficult as I needed to somehow forward access to my redis db. The local backups are versioned either way, so I could just make a new version there.
lukas closed this issue 2024-12-27 17:00:23 +01:00
lukas added
Status
Won't Fix
and removed
Status
Planned
labels 2024-12-27 17:00:36 +01:00
lukas added the
Service
Seafile
label 2024-12-27 17:02:51 +01:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: KomuSolutions/igot99issues#65
No description provided.