LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 05-12-2023, 07:11 PM   #1
scottl31
LQ Newbie
 
Registered: Apr 2023
Posts: 2

Rep: Reputation: 0
Need help with a solid backup plan for VMs


The last several months I have been learning more about Linux, but more specifically running self hosted VPSs. I have been using VirtualBox, KVM and just started trying UTM.

I run Ubuntu or CentOS 7 (both minimal if possible) with no GUI to save on memory and performance.

My purpose is web servers with (or equal to) Apache, PHP, MySql, Postfix, Dovecot. I've tried loads of admin panels and sort of settled on one I'm happy with. Testing seems good and everything seems to work the way I want and expect.

But before I can start to run actual sites/email, etc., I need a solid backup plan. So that's where I'm stuck.

I imagine there's ways to just back up the VMs on the host OSs, but I don't know if that would be reliable with all services up and running on the VMs. I want to do everything the "Linux" way, as if the VM was an actual computer.

The main tool for backup seems to be rsync. But with loads of searching I can't seem to find what I want to do (with rsync or anything else), which is:

First, I want to do everything remotely, including recover from any disaster, with the exception of a power failure on the host machines, which are in another city.

I want to run scheduled live daily (or whatever) backups from one VM to another VM (on different physical hardware) which I think (or hope) could be saved as a file which could be used to restore back to the source (or new) VM in the event of a problem/crash/hack, etc. with the original source VM. Also be able to use to migrate from one VM to another, which I assume is the same. This backup is the only thing this destination VM would be used for.

If anyone knows of a video or tutorial that has anything like this or you could otherwise help, I really appreciate it.

Thanks,
Scott

Last edited by scottl31; 05-15-2023 at 09:40 AM.
 
Old 05-12-2023, 07:55 PM   #2
jmgibson1981
Senior Member
 
Registered: Jun 2015
Location: Tucson, AZ USA
Distribution: Debian
Posts: 1,141

Rep: Reputation: 392Reputation: 392Reputation: 392Reputation: 392
While I'm hardly any kind of expert with VM's my thinking would be to run the backups in each VM. Maybe create a script of some sort that can be shared among them. Then just have each one run the script backing up the appropriate data to the defined location. Then it's just backups for a individual "machine" rather than trying to capture the images themselves.
 
1 members found this post helpful.
Old 05-12-2023, 08:08 PM   #3
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,627

Rep: Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695
Where I have been sysadmin and backed up virtual guests, we acted form the host-0 level and froze the guest, fast copied the settings files and the files or folder for that guest, then unfroze the guest. I never had it fail. We used a similar process to live-migrate OpenVZ and LXC guests and it worked well. I have never tried a non-manual migration of QEMU or Virtualbox guests. VMWare has their own special toolset for backup and migrations.
 
1 members found this post helpful.
Old 05-13-2023, 03:24 PM   #4
scottl31
LQ Newbie
 
Registered: Apr 2023
Posts: 2

Original Poster
Rep: Reputation: 0
Sorry guys, but I guess I'm not as experienced as I thought I was. I have no idea what or how to do what you first two responders mention.

Am I asking for something that's just not possible? I guess I assumed it would be because I have been doing the same thing on all our windows and mac machines for years.
 
Old 05-16-2023, 03:54 PM   #5
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,982

Rep: Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625
Windows has live state ways to backup some files.

There are some VM programs that offer commercial live backup and live cloning/moving.

I've not heard of any advanced features from the free virtualbox.

On any VM you can easily create a VM backup server or virtual nas to keep data copied. This is where local network adapter might be useful.

Knowing your databases and programs is vital to knowing if you can use various ways to copy. At one time I used to have to drop all databases to clone.

Last edited by jefro; 05-16-2023 at 03:56 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
I need help setting up my vms, hypervisor is KVM. I'm new to netowrking please help. Please Help. I need all the smart guys here!!! fromwin2lin Linux - Server 3 04-09-2024 08:16 PM
What is the difference between Reseller Plan hosting and WordPress Hosting Plan ? morning-tea Linux - General 15 03-02-2021 06:19 PM
LXer: How To Migrate Virtualbox VMs Into KVM VMs In Linux LXer Syndicated Linux News 0 07-10-2020 01:01 AM
[Tcptraceroute/Traceroute/Ping] Windows VMs & Linux VMs BiFo Linux - Networking 0 08-24-2010 02:07 PM
LXer: Using Xen With LVM-Based VMs Instead Of Image-Based VMs (Debian Etch) LXer Syndicated Linux News 0 01-14-2009 08:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 12:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration