Barman is a backup and disaster recovery tool for PostgreSQL servers. In this tutorial, you will learn how to install Barman on Windows 11.
Before installing Barman, you must first install PostgreSQL on your Windows 11 system. You can download the latest version of PostgreSQL for Windows from https://www.postgresql.org/download/windows/.
Follow the installation wizard to complete the installation of PostgreSQL on your system.
Barman requires Python to run on your system. You can download the latest version of Python for Windows from https://www.python.org/downloads/windows/.
Follow the installation wizard to complete the installation of Python on your system.
python setup.py install
Create a new directory where Barman can store its configuration and backups. For example, you could create C:\barman
.
Copy the sample configuration file to the directory you just created:
copy barman.sample.conf C:\barman\barman.conf
barman.conf
file and configure the PostgreSQL servers that you want to backup.To start backing up your PostgreSQL servers with Barman, run the following command:
barman cron
This will start the Barman daemon, which will automatically perform backups according to the configuration you set up in step 4.
Congratulations! You have successfully installed Barman on your Windows 11 system.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!