Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Migrating VMs and Containers from one server to another

Featured Replies

Hello,

I have two Unraid servers and am seeking methods (scripts, applications, or established processes) for migrating Virtual Machines and Docker containers between them. My primary use cases for this functionality are disaster recovery and load balancing.

Thanks!

Solved by bmartino1

  • Community Expert
  • Solution

Review the 321 rule of thumb...

https://www.techtarget.com/searchdatabackup/definition/3-2-1-Backup-Strategy#:~:text=The%20basic%20concept%20of%20the,data%20is%20sent%20off%20site.

Most often do 221...

Ideally Clustering with a similar Hardware, same disk configuration and essential you duplicate the current unraid machine. then you rsync content between them.
Raid is not a backup it is redundancy and helps with maintaining uptime.

I make a share called Backup then use this folder on unraid on disk for a staging area. Once I ahve all my backup targets I have this one folder to send to another machine... I also use zfs and use snapshots and in a sftp ring I send my zfs snapshots as a backup...
https://docs.oracle.com/cd/E18752_01/html/819-5461/gbchx.html

I have a cron script... ZFS utilizes snapshots and the zfs send command for efficient backups and replication. Snapshots capture a point-in-time view of a dataset, and zfs send creates a stream of the snapshot's data, which can be sent to another location (another pool, a file, or another system) using zfs recv. This allows for incremental backups, sending only the changes between snapshots, significantly reducing backup time and storage space. 

....

I also implement and utilzes a few CA Apps and plugins.

Such as Appdata backup, zfs backup buddy, unraid replication. rclone...

There is alot of this talk and examples of script and commands you can do to automate and backup
example:
https://forums.unraid.net/topic/126028-simple-automated-offline-backup-script/
https://unraid.net/blog/unraid-server-to-server-backups-with-rsync-and-wireguard

and
https://forums.unraid.net/topic/97958-rsync-incremental-backup/

do yo have any specific question?
a backup is only good on how you handle your recovery plan and known it can be restored from the files you have backed up
The main tool I use that does just about everything to backup locally is the appdata backup plugin.
Unraid flash dirve, dockers, vm templates...
https://forums.unraid.net/topic/137710-plugin-appdatabackup/


some side Info That I have found over the years:


VMs
With VM snapshot this has gotten tricky...

https://forums.unraid.net/topic/169220-vm-snapshots/

Unraid libvirt image needs backup ed.
Snapshot Database needs backed up. Usually separate boots to clonezilla is needed to image a the entire vdsik and a copy of the vms xml code is copied to be resued for a full restore of a vdisk image and configurations...
Plugins exsit for vm backup...
I use app data plugin to grab the VM metdata and xml configs...
vm backup plugin is ok you really have to watch the use of vm snapshots and bring vms to 1 vdisk file...

https://www.youtube.com/watch?v=ntjQphOSPPI

https://www.youtube.com/watch?v=rDGSS1iEtq4

https://forums.unraid.net/topic/86303-vm-backup-plugin/

Dockers
app data backup plugin.
sometimes the docker vdisk needs backuped. (Only if docker paths and data is misconfigured. thus, docker data is saved within the docker image and not a volume set to a path to store on unraid...
snapshots of the appdata folder with zfs I used to send and backup... zfs snapshots are automated 1 a month and i trim them to have 12 so 1 year worth of backups.
with appdata I can configure what i'm backingup on the docker and have it tar the docker image contents and grab some volumes for it.
*-Not ideal for things like plex/jellyfin/embry etc... as it will try to backup the entire movie library and may need additional configuration

General file backup?
copy paste... unasnged disk cont to remote devcie.
rsync / cp (copy command) / zfs send .... etc etc...

I'm partial to runign ssh and using ssh as a sftp server.
I then run fiel zilla (docker or cleint) and conect to my machein and use samba to the remote and file zilla tranfer files.
This is becaue I can leverage samba to write as nobody and surs group for file access wiht the samb connetion but that a bit advace configuration...
-This also give me a change to scan a new file being written to storage for virus / malware checks.. aslo a bit advance setup...

Look into other plugins such as unraid replication. if using zfs zfs buddy. and teh vm backup plugin

  • Author

Thanks @bmartino1 for the great information. I will review.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.