Skip to main content

Posts

Showing posts from March, 2022

Deploying borg backup via ansible

Usually, the time for backups is right after a critical system failure or after a ransomware attack! So, let's avoid that and make backups simple. Well, somewhat simple...  Borg backup ( https://borgbackup.readthedocs.io/en/stable/ ) is a great backup tool. It does compression and de-duplication on its own and is perfect for automatic backups.  I've had to deploy a large backup policy at work, so I prefer not to have to run manual commands on each system - that's why I invested time in polishing an ansible role and some playbooks that can help anyone deploy a borg backup server (or several) with automatic scripts that push backups from distributed systems to a centralized server. The way backups will work is the following:  client systems will run borg via cron to backup certain directories (or the full filesystem)  they connect to a central server and push the differences via ssh in a borg repository on the server. Each client will have a dedicated user on the backu...