A little backup tool for my desktop

33 views
Skip to first unread message

p...@citylink.dinoex.sub.org

unread,
Apr 10, 2020, 3:11:24 PM4/10/20
to bareos-users
Hi all,

I planned to setup a little backup scheme for my desktop.

I want the following functionality:
  • a regular backup, going onto a second machine (my router) into a separate zpool, that enables me to restore things, or to look into things how they were a month or a year ago.
  • an undelete function, to recover accidentially deleted edits and the like. That should scan the typical areas (development zone, mail compose, etc) every few minutes, and do incremental backup there. (Recover does not need to be very comfortable, it just need to be possible.)
  • an offsite backup should be copied to an usb device, which gets swapped monthly.
  • postgres database backup for a few applications (and obviousely also for the backup database). Pgdump and point-in-time should be possible.
So far.
I did read the documentation (yes, all of it).
I wrote down the configuration, and I started the thing.

But now, albeit it seems to work, I am besieged by literally THOUSANDS of error messages, which are documented nowhere, and are rather difficult to get a clue from. I spent quite a while now in trying to analyze all that, but I am indeed overwhelmed.

cheerio,
PMc

p...@citylink.dinoex.sub.org

unread,
Apr 17, 2020, 4:45:50 PM4/17/20
to bareos-users


On Friday, April 10, 2020 at 9:11:24 PM UTC+2, p...@citylink.dinoex.sub.org wrote:

But now, albeit it seems to work, I am besieged by literally THOUSANDS of error messages, which are documented nowhere, and are rather difficult to get a clue from. I spent quite a while now in trying to analyze all that, but I am indeed overwhelmed.

Hm - nobody has an idea what to do about those error messages? Thats bad, But then, we'll try to handle it on BBC.

cheerio, PMc

Andreas Rogge

unread,
Apr 20, 2020, 2:41:17 AM4/20/20
to bareos...@googlegroups.com
Am 17.04.20 um 22:45 schrieb p...@citylink.dinoex.sub.org:
> Hm - nobody has an idea what to do about those error messages? Thats
> bad, But then, we'll try to handle it on BBC.

You didn't mention any of the actual messages, so no - nobody has a clue
what you're talking about.

Best Regards,
Andreas
--
Andreas Rogge andrea...@bareos.com
Bareos GmbH & Co. KG Phone: +49 221-630693-86
http://www.bareos.com

Sitz der Gesellschaft: Köln | Amtsgericht Köln: HRA 29646
Komplementär: Bareos Verwaltungs-GmbH
Geschäftsführer: S. Dühr, M. Außendorf, J. Steffens, Philipp Storz

signature.asc

p...@citylink.dinoex.sub.org

unread,
Apr 23, 2020, 5:28:05 PM4/23/20
to bareos-users
On Monday, April 20, 2020 at 8:41:17 AM UTC+2, Andreas Rogge wrote:
You didn't mention any of the actual messages, so no - nobody has a clue
what you're talking about.
 
 Well, there are thousands of them, as I said, and they are much different.

For instance, yesterday, I tried to install Berkeley Quartery 2020Q2, and part of it is this:
> admn pkg: bareos-client upgraded: 18.2.7 -> 19.2.6
> admn pkg: bareos-webui upgraded: 18.2.7 -> 19.2.6
> admn pkg: bareos-server upgraded: 18.2.7 -> 19.2.6

Next thing I got was another error message, this time:
> admn root: /etc/rc: WARNING: failed precmd routine for bareos_dir
  Config error: Cannot open config file
  "/usr/local/etc/bareos/bareos-dir.d/*/*.conf": Permission denied

Now that one was easy to find:
root@admn:/usr/local/etc/bareos/bareos-dir.d/profile # dir
total 31
drwxr-x---   2 root  bareos    6 Apr 23 02:03 .
drwxr-x---  17 root  bareos   17 Apr  7 09:11 ..
-rw-r-----   1 root  bareos    0 Apr  3 14:54 operator.conf
-rw-r-----   1 root  bareos  467 Feb 11 16:58 operator.conf.sample
-rw-r-----   1 www   www     382 Apr 15 04:49 webui-admin.conf
-rw-r-----   1 www   www     382 Apr 15 04:49 webui-admin.conf.sample

So the webui had spit some useless config into the tree with bogus perms. Obviousely programs running as bareos:bareos cannot read a file with www:www 640 - and instead of ignoring it, it then throws EPERM and fails.
So here is the workaround, after any install:

# find /usr/local/etc/bareos/bareos-*.d/[a-z]* -name "*.conf" \
  -exec truncate -s 0 {} \; \
  -exec chown root:bareos {} \; \
  -exec chmod 640 {} \;


Now, You see the principle: these error messages are useless on themselves because You won't get any clue from them. One always needs to track down the matter in each case to find the bug.

So what I am looking for is the catalog of all the error messages, their respective bugs and the workarounds. As there are lots of people using this piece of sw, there must already be workarounds - and I don't want to make them up all on my own!

Cheerio,
PMc

Reply all
Reply to author
Forward
0 new messages