A quick fix for a weird issue that in Proxmox unprivileged container fails to install filesystem update on Centos 7 :

[[email protected] ~]# yum install filesystem
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: ftp.belnet.be
 * extras: ftp.belnet.be
 * updates: ftp.belnet.be
Resolving Dependencies
--> Running transaction check
---> Package filesystem.x86_64 0:3.2-21.el7 will be updated
---> Package filesystem.x86_64 0:3.2-25.el7 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

===================================================================================================================================================================================================================
 Package                                              Arch                                             Version                                                Repository                                      Size
===================================================================================================================================================================================================================
Updating:
 filesystem                                           x86_64                                           3.2-25.el7                                             base                                           1.0 M

Transaction Summary
===================================================================================================================================================================================================================
Upgrade  1 Package

Total download size: 1.0 M
Is this ok [y/d/N]: y
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
filesystem-3.2-25.el7.x86_64.rpm                                                                                                                                                            | 1.0 MB  00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Updating   : filesystem-3.2-25.el7.x86_64                                                                                                                                                                    1/2
Error unpacking rpm package filesystem-3.2-25.el7.x86_64
error: unpacking of archive failed on file /sys: cpio: chown
  Verifying  : filesystem-3.2-25.el7.x86_64                                                                                                                                                                    1/2
filesystem-3.2-21.el7.x86_64 was supposed to be removed but is not!
  Verifying  : filesystem-3.2-21.el7.x86_64                                                                                                                                                                    2/2

Failed:
  filesystem.x86_64 0:3.2-21.el7                                                                           filesystem.x86_64 0:3.2-25.el7

Complete!

The fix, thanks to this post :

echo "%_netsharedpath /sys:/proc" >> /etc/rpm/macros.dist

and tada :

Updated:
  filesystem.x86_64 0:3.2-25.el7

 

Today, I had a new issue, a server blankly refused to reboot/shutdown.

[[email protected] ~] reboot -h now
Failed to start reboot.target: Connection timed out
See system logs and 'systemctl status reboot.target' for details.
Failed to open /dev/initctl: No such device or address
Failed to talk to init daemon.

I first tried :

[[email protected] ~]# systemctl --force reboot
Failed to execute operation: Activation of org.freedesktop.systemd1 timed out

which failed, so I had to get the big guns : systemctl --force --force reboot

[[email protected] ~]# systemctl --force --force reboot
Rebooting with argument 'now'.
packet_write_wait: Connection to 10.1.255.253 port 22: Broken pipe

As you see that restarted the server; weird issue, solved thanks to Luke

When a Client job fails and reports :

Error: VSS API failure calling "BackupComplete". ERR=Object is not initialized; called during restore or not called in correct sequence.

Try to start the Service : VSS manually;

This solved the issue for a few Clients;

After adding a bunch of clients, we realized that a good naming convention was required and that some funny names, where not the best choice after all. So we changed them. However, Bareos will remember those Jobs ran against the old Client. The ‘new’ name will be seen as a new client; Some of the scripts we made however found it annoying that some clients where not backed up for weeks. Basically cause they where no longer existing. There is however a way to completely remove them from database.

  • “Restore” the original configuration, or create a new client in the configuration with the old name; (Address / Password does not have to be correct, we just need a name in the configuration)
  • in bconsole :
    *purge jobs client=SVENND
    
    This command can be DANGEROUS!!!
    
    It purges (deletes) all Files from a Job,
    JobId, Client or Volume; or it purges (deletes)
    all Jobs from a Client or Volume without regard
    to retention periods. Normally you should use the
    PRUNE command, which respects retention periods.
    This command requires full access to all resources.
    Using Catalog "MyCatalog"
    Begin purging jobs from Client "SVENND"
    Found 19 Jobs for client "SVENND" in catalog "MyCatalog".
    Purge (yes/no)? yes
    
  • After that, the client record will be orphaned, as nothing is ran for it; Now you can clear the database using : bareos-dbcheck -v -f
[[email protected] ~]# bareos-dbcheck -v -f
Hello, this is the Bareos database check/correct program.
Modify database is on. Verbose is on.
Please select the function you want to perform.
     0) Quit
     1) Toggle modify database flag
     2) Toggle verbose flag
     3) Check for bad Filename records
     4) Check for bad Path records
     5) Check for duplicate Path records
     6) Check for orphaned Jobmedia records
     7) Check for orphaned File records
     8) Check for orphaned Path records
     9) Check for orphaned FileSet records
    10) Check for orphaned Client records
    11) Check for orphaned Job records
    12) Check for all Admin records
    13) Check for all Restore records
    14) Run ALL checks
Select function number: 10
Checking for orphaned Client entries.
Found 1 orphaned Client records.
Print them? (yes/no): yes
Orphaned ClientId=8 Name="SVENND"
Deleting 1 orphaned Client records.
Deleting: DELETE FROM Client WHERE ClientId=8

Of course the data of those users are still in the filesystem (or tape) for me that is not really an issue, so I did not look into it.

Doesn’t happen often that I need Windows tools, but this worked nicely, so I though I share it with the future me that will have forgotten about this method;

On the domain server open a “Windows Powershell”;

Import the module :

Import-Module ActiveDirectory

Then create the list of “enabled” users :

Get-ADComputer -Filter {enabled -eq $true} -properties *|select Name, OperatingSystem, LastLogonDate

This wil result in :

To export it in CSV :

Get-ADComputer -Filter {enabled -eq $true} -properties *|select Name, OperatingSystem, LastLogonDate | export-csv my_export.csv

Will create a file my_export.csv in csv format ! Enjoy.

A simple issue, but can be tricky nevertheless !

bareos-sd JobId 265: Warning: stored/mount.cc:270 Open device "FileStorage3" (/storage/block1) Volume "Full-0015" failed: ERR=stored/dev.cc:731 Could not open: /storage/block1/Full-0015, ERR=No such file or directory

While experimenting I had made the owner of /storage/block1 different from the Bareos user; This resulted in the storage deamon (bareos-sd) not able to make new files; Solving it, was chowning the directory and restarting the bareos-sd & bareos-dir :

chown bareos.bareos /storage/block1
systemctl restart bareos-sd
systemctl restart bareos-dir

 

Surprisingly perhaps for newbies such as myself; Bareos will only start one backup job at once; meaning if you got 100 clients, there will be a serieus delay between the first and last job. So why is this happening ?

Bareos is a fork off Bacula and this was originally developed for the use of other types of media, such as tapes, DVD/CD and disks. In current age you might think only disks remain, but that’s incorrect; While DVD/CD’s are legacy media, tapes are still very much used. Here we use LTO tapes although not (yet?) in combination with Bareos. Tapes however are not random access and in allot situations only one tape can be loaded at once;

Hence only one backup could run at once, unless you had multiple devices. So disk storage users, have to trick Bareos to run multiple backups at once in order to work around the whole tape issue;

More devices

Make more devices in the storage deamon; however be specific to only set 1 maximum concurrent jobs;

/etc/bareos/bareos-sd.d/device/FileStorage.conf

Device {
  Name = FileStorage
  Media Type = File
  #Archive Device = /var/lib/bareos/storage
  Archive Device = /storage/block1
  LabelMedia = yes;                   # lets Bareos label unlabeled media
  Random Access = yes;
  AutomaticMount = yes;               # when device opened, read it
  RemovableMedia = no;
  AlwaysOpen = no;
  Description = "File device. A connecting Director must have the same Name and MediaType."
 
}

Change this to :

Device {
  Name = FileStorage0
  Media Type = File
  #Archive Device = /var/lib/bareos/storage
  Archive Device = /storage/block1
  LabelMedia = yes;                   # lets Bareos label unlabeled media
  Random Access = yes;
  AutomaticMount = yes;               # when device opened, read it
  RemovableMedia = no;
  AlwaysOpen = no;
  Description = "File device. A connecting Director must have the same Name and MediaType."
  Maximum Concurrent Jobs = 1
}

Device {
  Name = FileStorage1
  Media Type = File
  #Archive Device = /var/lib/bareos/storage
  Archive Device = /storage/block1
  LabelMedia = yes;                   # lets Bareos label unlabeled media
  Random Access = yes;
  AutomaticMount = yes;               # when device opened, read it
  RemovableMedia = no;
  AlwaysOpen = no;
  Description = "File device. A connecting Director must have the same Name and MediaType."
  Maximum Concurrent Jobs = 1
}

Device {
  Name = FileStorage2
  Media Type = File
  #Archive Device = /var/lib/bareos/storage
  Archive Device = /storage/block1
  LabelMedia = yes;                   # lets Bareos label unlabeled media
  Random Access = yes;
  AutomaticMount = yes;               # when device opened, read it
  RemovableMedia = no;
  AlwaysOpen = no;
  Description = "File device. A connecting Director must have the same Name and MediaType."
  Maximum Concurrent Jobs = 1
}

Then let the director know :

/etc/bareos/bareos-dir.d/storage/File.conf

add the Devices :

Storage {
  Name = File
  Address = bareos                # N.B. Use a fully qualified name here (do not use "localhost" here).
  Password = "Re/vZBBjYg1Nm65DycOKtjiw0+WH7Byp3VTeifzhIlSl"
  Device = FileStorage3
  Device = FileStorage0
  Device = FileStorage1
  Device = FileStorage2
  Media Type = File
  Maximum Concurrent Jobs = 10
}

And finish up with restarting the service :

systemctl restart bareos-fd
systemctl restart bareos-sd
systemctl restart bareos-dir

Now concurrent jobs can run on these 4 devices 🙂

 

more Bareos articles.

Bareos uses FileSets to decide what to backup and what not to backup. While the documentation is extensive, the approach is mostly include everything and exclude parts (include all, exclude after).  While this is the way average people want to backup. If you work around non-IT minded people, you know that they will store EVERYTHING, EVERYWHERE and mix downloadable data with self created data. So the “include all, exclude after” method would make backups explode in size, with allot of unnecessary data.

So my idea is to exclude everything and include parts I know are relevant to backup. Inevitably this will make for allot exceptions to the rule, but with Bareos that is easier then including everything and finding a way to keep performance up. (exclude all, include some)

I want to have multiple small jobs that finish “quickly” on the client. Using this approach I can do multiple backups per day on specific data without generating an extreme load on client machines. The “backup everything” jobs can then be run on a lower frequency. As the frequently changed data is backed up already.

Since most of the work is in Microsoft Office applications, I started there. Now we have allot of scientific data floating around, this data however, is backed up on result servers and don’t belong in the client desktop backups. This is another reason to go with exclude everything, include what you need; (although nobody ever got fired for making a backup extra…)

Creating a new FileSet

Let’s start by creating a new FileSet, you can name it whatever, but best to name it something you can recognize.

nano /etc/bareos/bareos-dir.d/fileset/win_office.conf

A “template” would look like this :

FileSet {
  # required name
  Name = "win_office"

  # volume shadow copy service
  # this is windows specific
  Enable VSS = yes
  
  # include
  Include {

    # include from this directory
    # 
    File = "C:/Users"

    Options {
      # config
      Signature = MD5
      IgnoreCase = yes
      noatime = yes

      # Word, Excel, Powerpoint
      WildFile = "*.doc"
      WildFile = "*.docx"
      WildFile = "*.xls"
      WildFile = "*.xlsx"
      WildFile = "*.ppt"
      WildFile = "*.pptx"

      # open office
      WildFile = "*.odt"
      WildFile = "*.ods"
      WildFile = "*.odp"

      # pdf
      WildFile = "*.pdf"
    }	

    Options {
      # all files not in include
      RegExFile = ".*"
      Exclude = yes
    }
  }
}

Test the FileSet

Now before we deploy this FileSet, you can test this on a client to see what exactly gets backed up (dry-run); The easiest way is to create a Job Definition and Job :

nano /etc/bareos/bareos-dir.d/jobdefs/BackupWindowsOffice.conf
JobDefs {
  # name (required)
  Name = "BackupWindowsOffice"
  
  # type can be backup/restore/verify
  Type = Backup
  
  # the default level bareos will try
  # can also be Full/Differential(since last full)/Incremental(since last incremental)
  Level = Incremental
  
  # the default client, to be overwritten by the job.conf
  Client = bareos-fd
  
  # the fileset we just created
  FileSet = "win_office"
  
  # the schedule
  Schedule = "Nightly"
  
  # where to store it
  Storage = File
  
  # the message reporting
  Messages = Standard
  
  # the pool where to store it
  Pool = Incremental
  
  # the higher the value priority the lower it will be dropped in the queue
  # so for important jobs priority=1 will run first
  Priority = 10
  
  # the bootstrap file keeps a "log" of all the backups, and gets rewritten every time a 
  # full backup is made, it can be used during recovery
  Write Bootstrap = "/var/lib/bareos/%c.bsr"
  
  # in case these value's get overwritten
  # define where would be a good pool to write 
  # note that full backup will be used atleast once because no full
  # backup will exist
  Full Backup Pool = Full
  Differential Backup Pool = Differential
  Incremental Backup Pool = Incremental
}

Then the Job :

nano /etc/bareos/bareos-dir.d/job/fileset_test.conf
Job {
  # required
  Name = "svennd-office"
  
  # the default settings
  JobDefs = "BackupWindowsOffice"
  
  # overwrite the client here
  Client = "svennd"
}

Obviously we are not going to wait until the nightly is ran; open bconsole and run :

Enter a period to cancel a command.
*estimate job=svennd-office listing

To see what files are scheduled for backup; The backup set I used as template is useful, but includes way to much. So you can change it, run a reload and test again using estimate :

2000 OK estimate files=7,741 bytes=141,521,221
You have messages.
*reload
reloaded
*estimate job=svennd-office listing

Until you have exactly what you need.

Current Windows FileSet

I have Windows 7 and Windows 10 users to backup. While generally that does not make much difference for Bareos, the Windows 7 users, have specifically a funny directory structure :

  • C:/users/username is moved to D:/users/username, but C:/users still exists …
  • D:/users/username/documents is moved to D:/documents

Bareos will only issue a warning if File = "D:/Users" is not found, so you could only use a single config files, but I dislike ignoring warnings, so I made a difference between windows 7 and windows 10 FileSets;

Below you will find my current FileSets, since I’m still playing around with these sets, they will most likely still change. Note that you don’t have to generate a separate config file for every FileSet {} . So I think its a good idea to combine similar configs.

All these are found:

/etc/bareos/bareos-dir.d/fileset/

win_images.conf : images on windows 7 + 10, images are badly compressible, so don’t spend time on these.

# windows 7 & windows 10 images

FileSet {
  Name = "Win7_images"
  
  # volume shadow copy service
  Enable VSS = yes
  Include {
  
    # location
    File = "D:/Users"
  
  Options {
    # config
    Signature = MD5
    IgnoreCase = yes
    noatime = yes
    
    # images
    WildFile = "*.jpg"
    WildFile = "*.gif"
    WildFile = "*.tif"
    WildFile = "*.png"
  }	

  # exclude everything else
    Options {
    
    # all files not in include
    RegExFile = ".*"
    
    # default user profiles
    WildDir = "[C-D]:/Users/All Users/*"
    WildDir = "[C-D]:/Users/Default/*"
    
    # explicit don't backup
    WildDir = "[C-D]:/Users/*/AppData"
    WildDir = "[C-D]:/Users/*/Music"
    WildDir = "[C-D]:/Users/*/Videos"
    WildDir = "[C-D]:/Users/*/Searches"
    WildDir = "[C-D]:/Users/*/Saved Games"
    WildDir = "[C-D]:/Users/*/Links"
  
    # application specific
    WildDir = "[C-D]:/Users/*/MicrosoftEdgeBackups"
    WildDir = "[C-D]:/Users/*/Documents/R"
    WildDir = "*.svn/*"
    WildDir = "*.git/*"
    WildDir = "*.metadata/*"
    WildDir = "*cache*"
    WildDir = "*temp*"
    
    # share services
    WildDir = "*iCloudDrive*"
    WildDir = "*OneDrive*"
    WildDir = "*stack*"
    
    # windows specific
    WildDir = "*RECYCLE.BIN*"
    WildDir = "[C-D]:/System Volume Information"
    
    Exclude = yes
  }
  }
}

FileSet {
  Name = "Win10_images"
  
  # volume shadow copy service
  Enable VSS = yes
  Include {
  
  # location
    File = "C:/Users"
  
  Options {
    # config
    Signature = MD5
    IgnoreCase = yes
    noatime = yes
    
    # images
    WildFile = "*.jpg"
    WildFile = "*.gif"
    WildFile = "*.tif"
    WildFile = "*.png"
  }	

  # exclude everything else
    Options {
    
    # all files not in include
    RegExFile = ".*"
    
    # default user profiles
    WildDir = "[C-D]:/Users/All Users/*"
    WildDir = "[C-D]:/Users/Default/*"
    
    # explicit don't backup
    WildDir = "[C-D]:/Users/*/AppData"
    WildDir = "[C-D]:/Users/*/Music"
    WildDir = "[C-D]:/Users/*/Videos"
    WildDir = "[C-D]:/Users/*/Searches"
    WildDir = "[C-D]:/Users/*/Saved Games"
    WildDir = "[C-D]:/Users/*/Links"
  
    # application specific
    WildDir = "[C-D]:/Users/*/MicrosoftEdgeBackups"
    WildDir = "[C-D]:/Users/*/Documents/R"
    WildDir = "*.svn/*"
    WildDir = "*.git/*"
    WildDir = "*.metadata/*"
    WildDir = "*cache*"
    WildDir = "*temp*"
    
    # share services
    WildDir = "*iCloudDrive*"
    WildDir = "*OneDrive*"
    WildDir = "*stack*"
    
    # windows specific
    WildDir = "*RECYCLE.BIN*"
    WildDir = "[C-D]:/System Volume Information"
    
    Exclude = yes
  }
  }
}

win_office.conf

# all office files in users (c:/ and d:/)
# for win 7		= D
# for win 10 	= C 


FileSet {
  Name = "Win7_office"
  
  # volume shadow copy service
  Enable VSS = yes
  Include {
  
  # location
    File = "D:/Users"
    File = "D:/My Documents"
  
  Options {
    # config
    Signature = MD5
    compression = LZ4
    IgnoreCase = yes
    noatime = yes
    
    # Word
    WildFile = "*.doc"
    WildFile = "*.dot"
    WildFile = "*.docx"
    WildFile = "*.docm"

    # Excel
    WildFile = "*.xls"
    WildFile = "*.xlt"
    WildFile = "*.xlsx"
    WildFile = "*.xlsm"
    WildFile = "*.xltx"
    WildFile = "*.xltm"

    # Powerpoint
    WildFile = "*.ppt"
    WildFile = "*.pot"
    WildFile = "*.pps"
    WildFile = "*.pptx"
    WildFile = "*.pptm"
    WildFile = "*.ppsx"
    WildFile = "*.ppsm"
    WildFile = "*.sldx"

    # access
    WildFile = "*.accdb"
    WildFile = "*.mdb"
    WildFile = "*.accde"
    WildFile = "*.accdt"
    WildFile = "*.accdr"

    # publisher
    WildFile = "*.pub"

    # open office
    WildFile = "*.odt"
    WildFile = "*.ods"
    WildFile = "*.odp"

    # pdf
    WildFile = "*.pdf"
    
    # flat text / code
    WildFile = "*.xml"
    WildFile = "*.log"
    WildFile = "*.rtf"
    WildFile = "*.tex"
    WildFile = "*.sql"
    WildFile = "*.txt"
    WildFile = "*.tsv"
    WildFile = "*.csv"
    WildFile = "*.php"
    WildFile = "*.sh"
    WildFile = "*.py"
    WildFile = "*.r"
    WildFile = "*.rProj"
    WildFile = "*.js"
    WildFile = "*.html"
    WildFile = "*.css"
    WildFile = "*.htm"
  }	

  # exclude everything else
    Options {
    
    # all files not in include
    RegExFile = ".*"
    
    # default user profiles
    WildDir = "[C-D]:/Users/All Users/*"
    WildDir = "[C-D]:/Users/Default/*"
    
    # explicit don't backup
    WildDir = "[C-D]:/Users/*/AppData"
    WildDir = "[C-D]:/Users/*/Music"
    WildDir = "[C-D]:/Users/*/Videos"
    WildDir = "[C-D]:/Users/*/Searches"
    WildDir = "[C-D]:/Users/*/Saved Games"
    WildDir = "[C-D]:/Users/*/Favorites"
    WildDir = "[C-D]:/Users/*/Links"
  
    # application specific
    WildDir = "[C-D]:/Users/*/MicrosoftEdgeBackups"
    WildDir = "[C-D]:/Users/*/Documents/R"
    WildDir = "*iCloudDrive*"
    WildDir = "*.svn/*"
    WildDir = "*.git/*"
    WildDir = "*.metadata/*"
    WildDir = "*cache*"
    WildDir = "*temp*"
    WildDir = "*OneDrive*"
    WildDir = "*RECYCLE.BIN*"
    WildDir = "[C-D]:/System Volume Information"
    Exclude = yes
  }
   
  }
}

FileSet {
  Name = "Win10_office"
  
  # volume shadow copy service
  Enable VSS = yes
  Include {
  
  # location
    File = "C:/Users"
  
  Options {
    # config
    Signature = MD5
    compression = LZ4
    IgnoreCase = yes
    noatime = yes
    
    # Word
    WildFile = "*.doc"
    WildFile = "*.dot"
    WildFile = "*.docx"
    WildFile = "*.docm"

    # Excel
    WildFile = "*.xls"
    WildFile = "*.xlt"
    WildFile = "*.xlsx"
    WildFile = "*.xlsm"
    WildFile = "*.xltx"
    WildFile = "*.xltm"

    # Powerpoint
    WildFile = "*.ppt"
    WildFile = "*.pot"
    WildFile = "*.pps"
    WildFile = "*.pptx"
    WildFile = "*.pptm"
    WildFile = "*.ppsx"
    WildFile = "*.ppsm"
    WildFile = "*.sldx"

    # access
    WildFile = "*.accdb"
    WildFile = "*.mdb"
    WildFile = "*.accde"
    WildFile = "*.accdt"
    WildFile = "*.accdr"

    # publisher
    WildFile = "*.pub"

    # open office
    WildFile = "*.odt"
    WildFile = "*.ods"
    WildFile = "*.odp"

    # pdf
    WildFile = "*.pdf"
    
    # flat text / code
    WildFile = "*.xml"
    WildFile = "*.log"
    WildFile = "*.rtf"
    WildFile = "*.tex"
    WildFile = "*.sql"
    WildFile = "*.txt"
    WildFile = "*.tsv"
    WildFile = "*.csv"
    WildFile = "*.php"
    WildFile = "*.sh"
    WildFile = "*.py"
    WildFile = "*.r"
    WildFile = "*.rProj"
    WildFile = "*.js"
    WildFile = "*.html"
    WildFile = "*.css"
    WildFile = "*.htm"
  }	

  # exclude everything else
    Options {
    
    # all files not in include
    RegExFile = ".*"
    
    # default user profiles
    WildDir = "[C-D]:/Users/All Users/*"
    WildDir = "[C-D]:/Users/Default/*"
    
    # explicit don't backup
    WildDir = "[C-D]:/Users/*/AppData"
    WildDir = "[C-D]:/Users/*/Music"
    WildDir = "[C-D]:/Users/*/Videos"
    WildDir = "[C-D]:/Users/*/Searches"
    WildDir = "[C-D]:/Users/*/Saved Games"
    WildDir = "[C-D]:/Users/*/Favorites"
    WildDir = "[C-D]:/Users/*/Links"
  
    # application specific
    WildDir = "[C-D]:/Users/*/MicrosoftEdgeBackups"
    WildDir = "[C-D]:/Users/*/Documents/R"
    WildDir = "*iCloudDrive*"
    WildDir = "*.svn/*"
    WildDir = "*.git/*"
    WildDir = "*.metadata/*"
    WildDir = "*cache*"
    WildDir = "*temp*"
    WildDir = "*OneDrive*"
    WildDir = "*RECYCLE.BIN*"
    WildDir = "[C-D]:/System Volume Information"
    Exclude = yes
  }
   
  }
}

More Bareos articles.

By default the device used by Bareos for data archival/storage is FileStorage. Meaning data stored is stored in images on spinning disks in the file structure:

/var/lib/bareos/storage

While this might be a good place for you, its tricky with this location is in root … (full root and whatnot) You can change this in :

/etc/bareos/bareos-sd.d/device/FileStorage.conf

By changing the archive device :

Archive Device = /backup

Obviously you could make an extra device, and I’m only scratching the options you can do here, but since your root might not be terabytes in size, changing this is pretty crucial;

After changing this, you need to restart the bareos-fd :

systemctl restart bareos-fd

You can also remove the images that already are in /var/lib/bareos/storage and delete the volumes from the database :

bconsole
delete volume=Full-0001 yes

Don’t forget to physically remove them (rm -f)

When installing Bareos client on Centos 7, I could not start the service with the following “cryptical error” :

[[email protected] ~]# systemctl restart bareos-fd
A dependency job for bareos-fd.service failed. See 'journalctl -xe' for details.
[[email protected] ~]# systemctl status bareos-fd
● bareos-fd.service - Bareos File Daemon service
   Loaded: loaded (/usr/lib/systemd/system/bareos-fd.service; enabled; vendor preset: disabled                                                                                                                        )
   Active: inactive (dead)
     Docs: man:bareos-fd(8)
Mar 20 18:06:11 svennd.be systemd[1]: Dependency failed for Bareos File Daemon service.
Mar 20 18:06:11 svennd.be systemd[1]: Job bareos-fd.service/start failed with result 'dependency'.
Mar 20 18:06:29 svennd.be systemd[1]: Dependency failed for Bareos File Daemon service.
Mar 20 18:06:29 svennd.be systemd[1]: Job bareos-fd.service/start failed with result 'dependency'.

This means the Bareos server will keep trying and eventually fail to backup this client; The “workaround” is found in this closed ticket. On the client change :

nano /usr/lib/systemd/system/bareos-fd.service

Comment this line : (add #)

#Requires=nss-lookup.target network.target remote-fs.target time-sync.target

Reload & restart the service, it should now start normally :

systemctl daemon-reload
systemctl start bareos-fd