nextcloud / nextcloudpi

📦 Build code for NextcloudPi: Raspberry Pi, Odroid, Rock64, curl installer...
https://nextcloudpi.com
2.49k stars 295 forks source link

Backup too slow #1786

Open bassman56 opened 1 year ago

bassman56 commented 1 year ago

Description

The current daily backup now takes several hours to complete. The nextcloud is in maintenance mode all the time and not accessible. Why not create a snapshot (I use btrfs) and backup the snapshot instead? then we can go out of maintenance mode within a few seconds?

Example

# no change in interface. maybe an additional indicator whether backup is running in the background or not.
FadeFx commented 1 year ago

Backup seems to work normally for me, do you have data included in your backup and where do you store your backups (backup location)?

bassman56 commented 1 year ago

Hi,

I put all data into the backup, so the backup has about 350GB. The backup goes to a locally connected USB drive, capable of 50..100Mb/s So the whole backup blocks the nextcloud for about 2 hours in maintenance mode, with tendency to increase with more data on the nextcloud in the future.

My question: can you change the backup procedure to first make a snapshot (my data is on btrfs), then go out of maintenance and do the backup of the snapshot in the background?

Best Regards Christian

Von: FadeFx @. Gesendet: Samstag, 22. Juli 2023 08:01 An: nextcloud/nextcloudpi @.> Cc: bassman56 @.>; Author @.> Betreff: Re: [nextcloud/nextcloudpi] Backup too slow (Issue #1786)

Backup seems to work normally for me, do you have data included in your backup and where do you store your backups (backup location)?

— Reply to this email directly, view it on GitHub https://github.com/nextcloud/nextcloudpi/issues/1786#issuecomment-1646499286 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AAGO6UQBEWGLO7TQDWNLHY3XRNUCDANCNFSM6AAAAAAZLYNPBQ . You are receiving this because you authored the thread. https://github.com/notifications/beacon/AAGO6UTF2W7NOLB6DHVE6RDXRNUCDA5CNFSM6AAAAAAZLYNPBSWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTTCEOK5M.gif Message ID: @. @.> >

FadeFx commented 1 year ago

You can nc-snapshot-sync to the other HDD and do the backup to that path and exclude data. I think nc-snapshot-sync does not use maintainance mode, should not make sense anyway...