Possible to set up multiple independent backup drives?

72 views
Skip to first unread message

Leonhart231

unread,
Dec 24, 2021, 11:40:34 AM12/24/21
to bareos-users
Hi all! I tried getting this to work the last time I set up Bareos but failed, so figured I'd get some help to see if it's even possible since I want to dive in again.

My network setup is basically a home server that will act as the director, storage daemon, and also a client. There will be a few other clients on the local network, and a couple remote clients.

In terms of the backup drive setup, I have two hard drives that I can connect to the server, and at most one is connected at any time, the other is stashed off-site at someone else's house completely disconnected. What I have implemented now (using rdiff-backup) that I want to see if it's possible to emulate with Bareos is that each drive is completely independent from the other. Meaning whenever I do a backup, only the data on the drive currently connected is accounted for. So if I swap my on and off site drives, the newly on-site drive has a backup done accounting for the fact that there have been no backups done on that drive in the last month (or however long it's been). The intent with this is that if my house burns down, I will always have a fairly recent full set of files available to restore through the drive that's currently off-site. It'll be missing some history, and there will be "gaps" in the history whenever it's off-site, but this is acceptable to me. It is not possible to have both drives connected at the same time and rsync / run a copy job, or rather, I really want to avoid that being required.

Each drive has more than enough space for a full copy of all clients' data plus many incremental backups, and my plan is to do an "Always incremental Backup Scheme", just in case that's important. I toyed with the idea of moving the database itself to the backup drive, but I have other Postgres DBs already, so it doesn't look like that's possible, plus it felt like a hack.

Manually running a full backup after swapping drives is an option, but not great since it's manual and takes storage space that feels unnecessary. I assume it'd work with an Always Incremental scheme if push came to shove though.

Is this possible in Bareos? Or given the description above, is there some other way I should be doing this setup that is "more correct"? Thanks for any help, and happy holidays!

- Leon

Erich Eckner

unread,
Dec 25, 2021, 9:46:54 AM12/25/21
to bareos-users
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Hi,

not thinking this fully through, it sounds, like you could get, what you
aim for, if you set up two independent allways-incremental backups - one
for each external disk - and accept, that one of both (the remote one) is
always failing - until you switch disks.

HTH, Erich
> --
> 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 visithttps://groups.google.com/d/msgid/bareos-users/d555e438-3e07-4
> 7ae-9f39-a7faf93fe82en%40googlegroups.com.
>
>
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEE3p92iMrPBP64GmxZCu7JB1Xae1oFAmHHLsgACgkQCu7JB1Xa
e1rMyQ/+PL/rOpBS4cqa1UE5VOoDs9MrOFSj6t8SrmXgYwZcwdbGk1wvlvT+j6wm
57sxvFNjQauEuK/sNOd2C72BgUPTf9bbEghTNv/iobAGfU91UPpeX7gR/O56n3/I
GgNHCwpYEkmPj0xhC2O5N2mmu4PeP/E9hmJrBkawRw6AN+zTa+h5swHUpqSaDMfb
Ct73kUqV5ErEHXyfQ+7YpT8v2M0gjuVss0d5DoNNJynXzZ+4pm2w+QdeA9s0oX8U
4sD1qPSk6S8ULIZVjtcvBuuHsmfJk0ozetoT/93rOl4WXTV3yu6RCfSHFWPC80+f
28X95b+k+ZET0/9QXxvb8EieuNAeOTRKBPBfa+CZxxDlOlXxvQ7MWosPgXiA0K+r
YWDdLelDXxeKWnk+ojsnQRTwfAbjpmxpLc42mR5Kp1JeVVZQLUjpEtiNEq37czwT
27VDFj48OmPpM+2py+r7iJksxZnqcfFRMDtQniQGyC2H6Fl2iZsyVe2tYiizCkOw
jTt4Y73udbfoo7W2z5kTYPZrpU4s6CR72IwDy5P3fgu4QST+lrxStl8GmsjJGaq3
ZPZdmeGvu3hPLygtWEv0IvrwY+AVjk7rFKd99ug2kLY5ThuvZ4CuvU1YZLmF0fOv
jzGpVRGMfs97ffiAvrpmatL9L0AhnQ/PzDSnl9XNv3PAgzLJC98=
=OxAU
-----END PGP SIGNATURE-----

Leonhart231

unread,
Dec 25, 2021, 10:44:55 AM12/25/21
to bareos-users
Hi Erich,

Ah, thank you! That got me on the right track and I was able to find the right line in the manual about it. For anyone else stumbling on this in the future, the Job Resource part of the manual states in a warning that along with duplicating the Job definitions, "As a matter of fact, if you want separate backups, you have to duplicate your filesets with a different name and the same content.". So it's just a matter of duplicating the FileSet too, otherwise both the Client and FileSet match and Bareos will consider them to be "the same backup", even if you duplicate the Job.

Thanks,
Leon
Reply all
Reply to author
Forward
0 new messages