-
-
Notifications
You must be signed in to change notification settings - Fork 663
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No instructions on how to do backups of Nextcloud VM #2583
Comments
Just use one of the built in backup methods. You can reach them by running the menu script. |
Okay, is there any way to automate taking these backups? In the menu, is the correct location "Daily Backup Wizard" under "Server Configuration"? I checked through the script https://github.com/nextcloud/vm/blob/master/not-supported/daily-backup-wizard.sh and seems that you have to have a separate mount to send backups to. Is it in development pipeline to add support for these configurations to the backup script? |
As you already noticed, this is what we have: Run the script and follow the instructions: You are free to configure the script as you please. We don't have any plans on supporting more than we already have. You also have some scripts here. |
as this is a vm one could consider backups at hypervisor level 🤷🏻 |
How would we make sure the database is not locked etc while taking the backup? |
This. Depending on system, you will get a full intact clone of your server. Veeam for example works with vMotion. Proxmox with [....] (don't remember the name). Anyway, at VM level is best if you ask me, then you don't need to take any guest system stuff in considerations. Sure, guest level backup are good if you want backups on file level. |
Taking VM snapshots from hypervisor is not guaranteed to take the DB backup intact! I'll try to create some kind of a bare script which would do the following:
|
@celeroncool You and @szaimen maybe could figure something out? :) I'll be reviewing your PR once it's sent here. 👍 |
shut down the vm for backup 💡 |
Haha that's also a way to do it. :D |
How to use GitHub
Is your feature request related to a problem? Please describe.
This is a feature request and a problem, as data intergrity and backup are very important in todays IT landscape.
Describe the solution you'd like
I would like to have clear instructions, what files do you need to backup, what commands have to be ran so that DB is backed up correctly and lastly, what commands you have to run and in what order to restore from that backup.
Describe alternatives you've considered
I am currently trying to implement restic backups of my nextcloud instance.
The NCDATA and NCBACKUP folders are self explanatory, and those are easy to integrate to a cron script.
But currently there are no docs or guides on how you backup and restore rest of nextcloud VM.
Additional context
This guide uses https://github.com/dombyte/Restic-Nextcloud/blob/main/ncbackup.sh mysql dump, but nextcloud VM use PGSQL, which doesnt work with that.
It is unclear if you have to set the server to maintenneance mode before you make a SQL snapshot.
The text was updated successfully, but these errors were encountered: