what is the ideal backup server to run the bacula server software on?
If you're looking for one of the best networkable Linux backup solutions, you cannot go wrong with Bacula. Jack Wallen walks you through the installation and setup of the server portion.
Your server backups are critical to keeping your servers from permanently losing their data. This can happen due to a server crash, a hacker, a misconfigured service and plenty of other reasons. You don't want to always have to depend on a fill-in, simply you'll be thankful information technology'south in that location when you practice.
More than about Networking
On Linux servers, y'all take a number of options for backups. I choice that's been around for a very long time (and is the get-to option for about Linux admins) is Bacula. This particular fill-in pick is outstanding for backing up machines locally or over the network. Bacula can be installed on virtually Linux servers and the customer (for bankroll up desktops and remote servers over your LAN) is supported on Linux, macOS and Windows.
I want to walk you lot through installing the Bacula server on Ubuntu Server twenty.04, and so you lot can support your local information. Later, nosotros'll focus on backing up to the Bacula server from remote clients over your local network.
What yous'll need
SEE: Linux service command commands (TechRepublic Premium)
How to install Bacula Server
In lodge to install Bacula Server, log in to your Ubuntu instance and issue the command:
sudo apt-go install bacula -y
You lot will exist prompted for the following:
-
Mail service server configuration (unless you need e-mail alerts, y'all can configure this as local but)
-
Organisation post name (this is the email domain for the server, if applicative)
-
Configure database for bacula-directory-pgsql (you want to do this and set it as localhost)
-
Configure a countersign for the Bacula PostgreSQL database
Once yous've completed the above, y'all'll get your prompt back and tin go on on with the configuration.
How to configure the Bacula Server
Earlier we actually dive into the configuration of Bacula, let'south create a directory to business firm our local backups. Allow'south assume you have an external drive, attached to the server, which is mounted at /information. That directory will be our Archive Device. You need to brand sure that directory is endemic past the bacula user/group with the command:
sudo chown -R bacula:bacula /data
Adjacent, nosotros'll configure our Archive Device inside the default Bacula configuration file. Open that file with the command:
sudo nano /etc/bacula/bacula-sd.conf
In that file, locate the Device and Autochanger sections and annotate them completely out (past calculation a # character earlier each line). Side by side, we'll add a new Device department:
Device { Proper noun = Local-device Media Type = File Archive Device = /information LabelMedia = yes; # lets Bacula label unlabeled media Random Access = Yep; AutomaticMount = yes; # when device opened, read information technology RemovableMedia = no; AlwaysOpen = no; Maximum Concurrent Jobs = 5 } Note: If your backup location is different than /data, make sure to use the correct path for your setup.
Before y'all salve and shut the file, scroll dorsum to the meridian and re-create the password cord in the line (from the Director department):
Countersign =
You'll need that password to configure the Managing director.
How to starting time and and enable Bacula
We now can outset and enable the Bacula service with the following commands:
sudo systemctl start bacula-sd sudo systemctl enable bacula-sd
The server is now running.
How to configure the Bacula Director
With the Bacula server up and running, we now take to configure the Director (which supervises all backup, restore, verify and annal operations). Open the Director configuration file with the command:
sudo nano /etc/bacula/bacula-dir.conf
At the lesser of that file, add the post-obit:
Storage { Name = fossaserver-dir Address = 127.0.0.ane Password = "Countersign" Device = Local-device Media Blazon = File } FileSet { Name = "Local-file" Include { Options { signature = MD5 } File = /var/world wide web/html } } Schedule { Name = "LocalDaily" Run = Full daily at 06:00 } Job { Name = "LocalBackup" JobDefs = "DefaultJob" Enabled = aye Level = Full FileSet = "Local-file" Schedule = "LocalDaily" Storage = ubuntu2004-sd Write Bootstrap = "/var/lib/bacula/LocalhostBackup.bsr" } Note: The fossaserver-dir option (in Name =) must match the "Name" parameter in the "Storage" section of the /etc/bacula/bacula-sd.conf file. If the server configuration includes:
Name = fossaserver-sd
The director configuration will be:
Name = fossaserver-dir
The above configuration volition back up the /var/www/html/ directory. If you want to back up a dissimilar directory, brand certain to change the File = line to encounter your needs.
Salvage and shut the file. Restart the Bacula Director with the control:
sudo systemctl restart bacula-dir
How to verify the fill-in job
Bacula is now configured to run a daily backup of /var/www/html at 6AM. Nosotros can ostend that with the command:
sudo bconsole
At the Bacula console, issue the command (Figure A):
run
Figure A
Select the LocalBackup option and then type yes to queue the job. Blazon status and then select Director and you should see the backup task completed (Effigy B).
Type exit to leave the panel. If you then blazon ls /data, you'll see Vol-001 in the directory, confirming the backup ran.
That's information technology. We've installed and configured Bacula server. Adjacent time around, we'll install the Bacula client on a remote auto and back up over the network to the server.
Source: https://amaldo.does-it.net/article/how-to-install-the-bacula-backup-server-on-ubuntu-20-04/
0 Response to "what is the ideal backup server to run the bacula server software on?"
Post a Comment