First full backup size

61 views
Skip to first unread message

Pavel Mlčoch

unread,
Mar 1, 2022, 7:29:59 AM3/1/22
to bareos-users
Hi all,
 I switch backups into bareos 21.0.0 and after first backup my systems I have problem with size of some jobs.
 My infra inhalt many small el8 linux systems. Some is backed up in cca 10min and backup OS files take about 10GB.
 But some of the backup job takes about 200GB. Is there any way howto check what take the backup capacity? All systems is almost identicaly, backup succesufully, but there is big difference in backup size.

[root@office1 pavel_mlcoch]# du / -h --max-depth=1
168M        /boot
16K        /dev
0        /proc
21M        /run
0        /sys
25M        /etc
500K        /root
2,7G        /var
2,2G        /usr
48K        /home
0        /media
0        /mnt
0        /opt
0        /srv
8,0K        /tmp
5,1G        /

        246        nextcloud1        nextcloud1-fd        Backup        Full        2022-02-28 15:33:10        2022-02-28 15:39:18        00:06:08        292416        11.2 GB        0        Success          
245        mgmt1        mgmt1-fd        Backup        Full        2022-02-28 14:05:24        2022-02-28 15:33:09        01:27:45        209824        205.55 GB        0        Success          
243        office1        office1-fd        Backup        Full        2022-02-28 12:27:57        2022-02-28 13:52:49        01:24:52        73106        205.18 GB        0        Success          

Andreas Haase

unread,
Mar 1, 2022, 7:33:59 AM3/1/22
to Pavel Mlčoch, bareos-users
Hello,


Am 01.03.2022 um 13:29 schrieb Pavel Mlčoch <pavk...@gmail.com>:

 But some of the backup job takes about 200GB. Is there any way howto check what take the backup capacity? All systems is almost identicaly, backup succesufully, but there is big difference in backup size.

How does your file set look like? I guess, you include /proc/kcore or something similar in your backup.

Regards,
Andreas

Pavel Mlčoch

unread,
Mar 1, 2022, 7:35:44 AM3/1/22
to Andreas Haase, bareos-users
I check this many times, but It seems OK...

FileSet {
  Name = "LinuxOs"
  Description = "Backup all regular filesystems, determined by filesystem type."
  Include {
    Options {
      Signature = MD5 # calculate md5 checksum per file
      One FS = No     # change into other filessytems
      FS Type = btrfs
      FS Type = ext2  # filesystems of given types will be backed up
      FS Type = ext3  # others will be ignored
      FS Type = ext4
      FS Type = reiserfs
      FS Type = jfs
      FS Type = xfs
      FS Type = zfs
    }
    File = /
  }
  # Things that usually have to be excluded
  # You have to exclude /var/lib/bareos/storage
  # on your bareos server
  Exclude {
    File = /var/lib/bareos
    File = /var/lib/bareos/storage
    File = /proc
    File = /tmp
    File = /dev
    File = /var/tmp
    File = /.journal
    File = /.fsck
    File = /srv
    File = /var/www
    File = /misc
    File = /mnt
    File = /proc
    File = /run
    File = /sys
  }
}

út 1. 3. 2022 v 13:33 odesílatel Andreas Haase <andrea...@community4you.de> napsal:

Andreas Haase

unread,
Mar 1, 2022, 7:39:28 AM3/1/22
to Pavel Mlčoch, bareos-users
Hello,


Am 01.03.2022 um 13:35 schrieb Pavel Mlčoch <pavk...@gmail.com>:

I check this many times, but It seems OK...

This looks good. Please also show job log of job 245. There we can validate, this file set is really used.

Regards,
Andreas

Pavel Mlčoch

unread,
Mar 1, 2022, 7:51:23 AM3/1/22
to Andreas Haase, bareos-users
*show job=mgmt1
Job {
  Name = "mgmt1"
  Client = "mgmt1-fd"
  JobDefs = "VirtJobDef"
}

*show job
job=      jobdefs   jobdefs=  jobs      
*show jobdefs=VirtJobDef
JobDefs {
  Name = "VirtJobDef"
  Type = Backup
  Level = Incremental
  Messages = "Standard"
  Storage = "File"
  Pool = "Full"
  FullBackupPool = "Full"
  IncrementalBackupPool = "Incremental"
  DifferentialBackupPool = "Differential"
  FileSet = "LinuxOs"
  Schedule = "WeeklyCycle"
  WriteBootstrap = "/var/lib/bareos/%c.bsr"
}


út 1. 3. 2022 v 13:39 odesílatel Andreas Haase <andrea...@community4you.de> napsal:

Pavel Mlčoch

unread,
Mar 2, 2022, 4:29:15 AM3/2/22
to bareos-users
Hi all,

Problem is file /var/log/lastlog which expand to very large file, but without usage storage space.


But I expect that helps me select query from database, but I can't find size information in file and directory tables. So I had to list files to restore or export backup, so it is action with long duration.

Regards,
PM

Dne úterý 1. března 2022 v 13:51:23 UTC+1 uživatel Pavel Mlčoch napsal:
Reply all
Reply to author
Forward
0 new messages