Skip to content
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鈥檒l 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

Open
celeroncool opened this issue Nov 4, 2023 · 4 comments
Open

No instructions on how to do backups of Nextcloud VM #2583

celeroncool opened this issue Nov 4, 2023 · 4 comments

Comments

@celeroncool
Copy link

How to use GitHub

  • Please use the 馃憤 reaction to show that you are interested into the same feature.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

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.

@enoch85
Copy link
Member

enoch85 commented Nov 4, 2023

Just use one of the built in backup methods.

You can reach them by running the menu script.

@celeroncool
Copy link
Author

Okay, is there any way to automate taking these backups?
For example, I back up my data from NCDATA folder via restic snapshots to a offsite location.

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.
My nextcloud is running inside VM, and all data is mounted via NFS to /mnt/ncdata -> script cannot create daily backups.

Is it in development pipeline to add support for these configurations to the backup script?

@enoch85
Copy link
Member

enoch85 commented Nov 6, 2023

Okay, is there any way to automate taking these backups?

As you already noticed, this is what we have: Run the script and follow the instructions: sudo bash /var/scripts/menu.sh --> Server Configuration --> Daily backup

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.

@github-tomster
Copy link

as this is a vm one could consider backups at hypervisor level 馃し馃徎

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants