I'm thinking the spare file support isn't working so good. I set "sparse
= yes" in the fileset options. Then told it to just backup
/var/log/lastlog. Maybe I did something wrong with my configuration?
FileSet {
Name = "ottertail lastlog"
Include {
Options {
signature = MD5
compression = lz4
checkfilechanges = yes
aclsupport = yes
xattrsupport = yes
noatime = yes
sparse = yes
}
File = /var/log/lastlog
}
#
# If you backup the root directory, the following two excluded
# files can be useful
#
Exclude {
File = /proc
File = /tmp
File = /.journal
File = /.fsck
File = /var/cache
File = /var/tmp
File = /dev
File = /mnt
File = /var/lib/bareos
# skip database directories, these need to be backed up other ways
File = /var/lib/pgsql/data
File = /var/lib/mysql
File = /var/lib/ldap
File = /var/lib/kerberos/krb5kdc/principal
}
}
>ls -lh /var/log/lastlog ; du -h /var/log/lastlog
-rw-rw-r-- 1 root utmp 499G Jan 10 09:18 /var/log/lastlog
4.0K /var/log/lastlog
The job reported:
FD Bytes Written: 2,571,221,216 (2.571 GB)
SD Bytes Written: 2,571,221,897 (2.571 GB)
That suggests to me that the file wasn't recognized as sparse.
I tried a restore and the resulting file shows
du -h test-restore/var/log/lastlog; ls -lh test-restore/var/log/lastlog
499G test-restore/var/log/lastlog
-rw-rw-r-- 1 root utmp 499G Jan 10 08:08 test-restore/var/log/lastlog
So it definitely was not restored as a sparse file.
On 1/3/19 3:48 PM, Jon SCHEWE wrote:
> I'm doing a restore of a system and I filled the disk before the restore
> finished. I realized that I stored /var/log/lastlog, which is a huge
> sparse file because of the uids used on the system. I see that there is
> support for storing sparse files by putting "Sparse = yes" in the
> FileSet config.
> When a restore is done with such a file, is it correctly created as a
> sparse file?
>
> Is it possible for me to "fix" a backup that didn't have this option
> turned on and do the restore? Or do I just need to skip this file on
> this restore because I didn't set the flag on the backup?
>
>
> Thank you
> Jon Schewe
>
--
Research Scientist
Raytheon BBN Technologies
5775 Wayzata Blvd, Ste 630
Saint Louis Park, MN, 55416
Office: 952-545-5720
--
You received this message because you are subscribed to the Google Groups
"bareos-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/d/optout.