How to use the backup-manager tool to back up the Linux system

  

Only after the computer has a problem, understand the importance of the backup. In the system operation, timely backup is necessary. The backup-manager is a command line backup tool. The following small series will tell you how Linux uses the backup-manager backup system.

What makes the Backup Manager stand out from the crowd of backup tools or backup strategies? Let me briefly introduce some of its distinctive features.

Simple design and management: Configuration files are easy to read and edit, even for beginners.

Once and for all: It can be operated periodically through cron after it is configured.

Support multiple protocols for remote backup: seamlessly integrate multiple transport protocols, applications and cloud backends (eg FTP, SCP, SSH-GPG, rsync, AWS S3, etc.) to transfer generated archives To a set of remote hosts.

Support for database backup: Includes support for backing up MySQL/MariaDB and PostgreSQL databases out of the box.

Support for encryption: GPG file-based encryption is supported during backup.

Installing Backup Manager on Linux

The installation of Backup Manager is fast and painless because it is included in the underlying software libraries of most Linux distributions.

Debian, Ubuntu and its derivatives

# aptitude install backup-manager

When installing on a Debian-based system, you will be prompted to enter the backup archive to be stored. table of Contents. If the selected directory does not exist, it will be created automatically when you run the Backup Manager for the first time.

Select OK and press Enter.

In the next step, will ask all directories you want to back up (separated by spaces). It is recommended, but not strictly required, to list several subdirectories in the same parent directory instead of just entering the parent directory.

You can skip this step and set the BM_TARBALL_DIRECTORIESb variable in the configuration file later. Otherwise, please add as many directories you want, and then select OK:

Fedora or CentOS /RHEL

# yum install backup-manager

On CentOS/RHEL, you will need to enable the EPEL repository before running the above yum command.

Configuring Backup Manager

The primary configuration file for the Backup Manager is /etc/backup-manager.conf. The file is divided into chapters that define backup methods and associated variables (or “key values”) that make the Backup Manager a versatile tool for a wide range of situations.

For demonstration purposes, we will consider the following environment:

Make a full backup of the /etc, /home and /var/log directories every week (we will set up backups via cron below) Frequency of).

Transfer the .tar.gz backup archive to the target directory specified on the two different hosts dev1 and dev3 via SSH.

Back up the local MySQL database to the same target host via SSH.

Open the /etc/backup-manager.conf file with your favorite text editor and edit the following variables. If you like, you don't have to pay attention to the lines that start with #. In this article, it is just a note for explanation:
Previous12Next page Total 2 pages

Copyright © Windows knowledge All Rights Reserved