ownCloud Backups
-
Ive been creating Hyper-V snapshots before updating CentOS and ownCloud but want to get a more solid backup procedure in place. Im thinking when the server goes down for whatever reason i dont want to be screwed. I want to backup the OC user accounts first. Can anyone recommend a best practice for backing up user accounts? Files and documents are viewed, downloaded and deleted so I dont a reason to backup any of them at the moment.
-
Interesting, so basically you need a system restore sans data. That's the backwards of how we normally think about it.
Four common approaches to this....
- Remove data, create a pristine image of the system. Keep on hand.
- Store data and database on separate logical drive, only backup main drive.
- Build system from script rather than backing up.
- Build system using DevOps tools (Chef, Ansible, Puppet) and take no backups.
-
@scottalanmiller What tool do you recommend to create a system image?
-
@alex.olynyk said in ownCloud Backups:
@scottalanmiller What tool do you recommend to create a system image?
Hyper-V does this, it's built in.
-
Veeam will do this for Hyper-V for free, too.
-
@scottalanmiller so just locate the file containing the snapshot and copy it to another location?
-
i guess what i am asking is Can I restore the server and application from a snapshot?
-
for example if i needed to restore to another/different Hyper-V server?
-
@alex.olynyk said in ownCloud Backups:
i guess what i am asking is Can I restore the server and application from a snapshot?
Yes, absolutely. All Veeam does for you (more or less) is automate the snapshot and do the copy for you to another place. It's free here, so use Veeam Free for your needs. But Hyper-V with exported snapshots done manually would certainly work.
-
All hypervisor level backups are little more than the backup process creating a snapshot so it can copy the VMDK/VHDX file without it being wrote to while it copies it, then merging the snapshot back in.
The little more is copying the metadata for the VM. But, you can recreate from nothing but the VMDK/VHDX files if you actually know what you are doing. I wouldn't want to, but you could.
Just use Veeam's free offering to create a VeeamZIP of your VM's.
-
@JaredBusch said in ownCloud Backups:
The little more is copying the metadata for the VM. But, you can recreate from nothing but the VMDK/VHDX files if you actually know what you are doing. I wouldn't want to, but you could.
One reason why I love KVM. All of the metadata is an XML file that can be copied and moved really easily.
-
@stacksofplates said in ownCloud Backups:
@JaredBusch said in ownCloud Backups:
The little more is copying the metadata for the VM. But, you can recreate from nothing but the VMDK/VHDX files if you actually know what you are doing. I wouldn't want to, but you could.
One reason why I love KVM. All of the metadata is an XML file that can be copied and moved really easily.
Pretty much the same with Hyper-V and ESXi. But the point was why worry about it. Just use a product that gets it all in one swoop.
-
@JaredBusch said in ownCloud Backups:
@stacksofplates said in ownCloud Backups:
@JaredBusch said in ownCloud Backups:
The little more is copying the metadata for the VM. But, you can recreate from nothing but the VMDK/VHDX files if you actually know what you are doing. I wouldn't want to, but you could.
One reason why I love KVM. All of the metadata is an XML file that can be copied and moved really easily.
Pretty much the same with Hyper-V and ESXi. But the point was why worry about it. Just use a product that gets it all in one swoop.
Ah never used them so that explains why I didn't know that ha.
-
@alex.olynyk I think there are better ways to do backups then just hypervisor. Proper backups can be done like this: https://docs.nextcloud.com/server/9/admin_manual/maintenance/backup.html By the way. You should consider to switch to Nextcloud because it has some additional important security features. A backup like that can be done with a cronjob. Super easy.
-
@Cdarw said in ownCloud Backups:
@alex.olynyk I think there are better ways to do backups then just hypervisor.
No, there is no better way than a hypervisor level backup for a full system backup.
Proper backups can be done like this:
https://docs.nextcloud.com/server/9/admin_manual/maintenance/backup.htmlIf you need some component level backup, then a backup designed for that component is most definitely a good idea.
By the way. You should consider to switch to Nextcloud because it has some additional important security features. A backup like that can be done with a cronjob. Super easy.
Nextcloud is certainly not something I would deploy full force anywhere yet. It is getting close.