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
In the Linux server, the Linux partition read-only phenomenon causes the database to be unable to in
We all know that Linux can be operated with a variety of commands, there are quite a few commands fo
Usually when we start the Linux ISO image, we need to burn to the CD first. This wi
Because Linux installation software is more complicated, if the downloaded software is modified, it
Linux system to find ways to replace non-UTF-8 encoded files
How to regularly clean up Nginx logs in Linux system
How to change the position of the close/maximize/minimize button in the Ubuntu program window
How to solve the shell script stop execution when the Linux system is scheduled?
Linux automatic installation operation example
Linux system to modify environment variables skills
View the Linux version of the skill
How to use the CRT command tool to view Linux system resource information
After the Linux boot, the terminal prompts -bash-2.05b$ What should I do?
Mobile chip sales are expected to surpass PC chip
How to hide the recent play history of win7 system WMP player
XP network and file security tips tips
Win7 how to set the default browser Win7 default browser graphic settings tutorial
Hearthstone legend TGP legend 89% win rate Drujka group share
How to deal with the QQ login failure error "0x00060017" under Win7 system?
How to create a display desktop icon for the win7 system
How to set up IIS server and security guarantee in windows2003
The essential difference between Windows 7 and Vista security is