Perform backups of computers that do not turn on systematically

69 views
Skip to first unread message

khvalera

unread,
May 19, 2022, 3:11:38 PM5/19/22
to bareos-users
Bareos does a great job of backing up servers (computers that are always on). Is there a way to backup computers that are not turned on systematically, but before performing a backup, check its availability on the local network, or is there another way?

spadaj...@gmail.com

unread,
May 20, 2022, 3:25:55 AM5/20/22
to bareos-users

Two things:

1) Client-initiated connections

2) Run On Incoming Connect Interval = <some interval> within the job definition

And you're good to go.

If your laptop or whatever powers up, connects to bareos server and it notices that last backup job was more than predefined time ago, it starts new backup job.

khvalera

unread,
May 24, 2022, 4:02:07 PM5/24/22
to bareos-users
Made the following config files:

/etc/bareos/bareos-fd.d/director
Director {
Name = backup-dir
Password = "******"
Connection From Client To Director = yes
Address = 192.168.8.1
}

/etc/bareos/bareos-dir.d/client-job
Client {
Name = client-test
Address = 10.10.22.90
Password = "******"
File Retention = 90 days
Job Retention = 30 days
AutoPrune = yes
Connection From Client To Director = true
Connection From Director To Client = no
Heartbeat Interval = 60
}

Job {
Name = "backup-client-test"
Client = "client-test"
RunOnIncomingConnectInterval = 12h
JobDefs = "backup-client-linux-jobdefs"
}
Job in progress:
8 2022-05-24 22:19:16 backup-dir JobId 94: Encryption: TLS_CHACHA20_POLY1305_SHA256 TLSv1.3
7 2022-05-24 22:19:16 backup-dir JobId 94: Handshake: Immediate TLS
6 2022-05-24 22:19:16 backup-dir JobId 94: Using Client Initiated Connection (client-test).
5 2022-05-24 22:19:16 backup-dir JobId 94: Probing client protocol... (result will be saved until config reload)
4 2022-05-24 22:19:16 backup-dir JobId 94: Using Device "storage-gr-lvm" to write.
3 2022-05-24 22:19:16 backup-dir JobId 94: Start Backup JobId 94, Job=backup-client-test.2022-05-24_22.19.13_17
2 2022-05-24 22:19:13 backup-dir JobId 94: No prior or suitable Full backup found in catalog. Doing FULL backup.
1 2022-05-24 22:19:13 backup-dir JobId 94: No prior Full backup Job record found.

this task hangs in this state, and after a while dobles of this task appear in cycles. What could I be missing?

пятница, 20 мая 2022 г. в 10:25:55 UTC+3, spadaj...@gmail.com:

khvalera

unread,
May 24, 2022, 4:59:52 PM5/24/22
to bareos-users
In bareos-fd.service status appeared:

bareos-fd[4127]: lib/bsock_tcp.cc:128 Unable to connect to backup-dir on 192.168.8.1:9101. ERR=Connection refused

strange, access to port 192.168.8.1:9101 checked, everything should be fine.

вторник, 24 мая 2022 г. в 23:02:07 UTC+3, khvalera:

khvalera

unread,
May 26, 2022, 12:32:56 PM5/26/22
to bareos-users
I figured out part of the problem, it turned out there was no access from fd to cd , and not as it was written in the logs from fd to dir. The task started to run and is being executed, and after some time this task is started again in a cycle, while the first one has not yet finished doing its work and so it starts indefinitely. How to fix it? Version: 21.1.3

вторник, 24 мая 2022 г. в 23:59:52 UTC+3, khvalera:

khvalera

unread,
May 27, 2022, 5:55:43 AM5/27/22
to bareos-users
The bug has existed for a long time and no one corrects it: https://bugs.bareos.org/view.php?id=1417

четверг, 26 мая 2022 г. в 19:32:56 UTC+3, khvalera:

Spadajspadaj

unread,
May 27, 2022, 6:03:10 AM5/27/22
to bareos...@googlegroups.com

Probably because it's not that severe. OK, it's a bit annoying in monitoring but apart from that - everything works OK.

--
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 bareos-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bareos-users/5dc60ae8-b1dd-442d-b472-8bd00c0ccea9n%40googlegroups.com.

khvalera

unread,
May 31, 2022, 4:21:52 PM5/31/22
to bareos-users
Enjoy your health :)


пятница, 27 мая 2022 г. в 13:03:10 UTC+3, spadaj...@gmail.com:
Reply all
Reply to author
Forward
0 new messages