All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Keep multiple (2) windows servers synced

Hi,
I have 2 vps (similar specs, different providers).
I have windows 2022 running on both. Clean fresh install via ISO.
Is possible to mirror application/ data from one system to another (one way only)? At any given time only one will be used actively and i would connect to the secondary iff there was any issue with the primary.
It hosts a small db/ web server (small blog). Source code is synced via github.
I also use that to use as my rdp system... so I have a few programs and apps installed (nothing fancy)...
Is there a tool which can do real-time sync and keep the second one updated?
Or I am over my head to expect something like this? I am OK to go for a paid option too.
Would love to hear some thoughts/ comments.
Thank you š
Comments
Rsync or similiar.
Might need to look into how you apply that to system files (permissions).
However, I think incremental backups may be more useful.
Powershell script to copy data files from active server to passive one
Can you do this with 10 or is 2 the limit. Iām looking to spend my bandwidth
How would this work with applications? Like I install notepad++
Can these changes be applied directly to the second server?
Distributed File System (DFS) is the official Microsoft way for keeping a folder synchronized.
It's suitable for folders storing website files, including user uploads.
You can write to the folder from any machine, and it will show up on other machines within seconds.
For databases, Microsoft SQL Server and most other database engines support replication.
You shouldn't use DFS to synchronize database files.
If you have application using SQLite or Access database, you'll need to retake rewrite them to use SQL Server instead.
Windows Robocopy:
https://www.pdq.com/blog/hitchhikers-guide-to-robocopy/#robocopy-examples
https://lazyadmin.nl/it/robocopy-ultimate-guide/#robocopy-mirror
Incremental backups would still have 1:1 backups amongst others. So you would just restore based on time and date. The reason I'm pointing this out is if one of the mirrored directories becomes corrupted you'd only have a corrupted version on the mirrored host.
You need to use Active Directory to sync/manage software installs across Windows devices. It's free with Windows Server, and it'll allow you complete control over the devices you're managing, but it's pretty complicated to setup: https://learn.microsoft.com/en-us/windows-server/identity/ad-ds/get-started/virtual-dc/active-directory-domain-services-overview
Interesting.
What according to you be the best way to securely transfer files between 2 remote servers?
Encrypted data sent over SFTP (SSH File Transfer Protocol). SFTP is generally supported by most solutions. Personally if it isn't mirroring, I would use Kopia or Duplicati (both support incremental backups).