[Samba] Problem with backup and initiation

mathias dufresne infractory at gmail.com
Tue Apr 19 14:27:03 UTC 2016

You're welcome ;)

Q1: no idea. We did that using our own little knowledge of the product.
This means we did try several times before getting something acceptable.
Unfortunately for now I'm not sure at all we get something more than
acceptable... ie for now we expect our domain do not fail :)
Note we have lot of DC on so we also rely on the hope that the DB itself
won't go too much ccrazy to need a restoration. This because with several
DC, as each DC as its own DB, as long as there is one DC with a coherent DB
we don't care about restoration.
With one DC with coherent DB the process is: kill all other DC (or just all
broken DC) and join some new ones (new ones because VM, easy to start from
fresh system).

Q2: my English is very... personal : ) I do not fully understand you
Anyway I expect the question is something like "how to use systemd to deal
with samba?"
As I have no Debian here, only Redhat (bosses choices...), I can't guaranty
you anything.
Anyway service file (or "unit" file to speak systemd) are generally stored

With samba as ADDC to start samba you can use the following:
systemctl start samba-ad
systemctl stop samba-ad (to stop it)

and "locate samba-ad" should give you were is that file.

Hoping I'm not too far of the subject...


2016-04-19 14:35 GMT+02:00 Alexsandro Oliveira <xsandroveira at gmail.com>:

> hello mathias
> Thank you for answering, but there are still doubts.
> Q1 - Where can I get a step by step on how to backup and restore the
> debian 8 For what do you spoke to; for me it was too technical could not
> reach.
> Q 2 - Samba in debian 8 in compiled mode is not the startup script only in
> so apt, how I handle it when Samba is compiled?
> Grateful!
> Alexsandro Oliveira
> Note: I used Google Traslater am Brazilian.
> 2016-04-19 9:06 GMT-03:00 mathias dufresne <infractory at gmail.com>:
>> Hi,
>> Q1: you can find the script somewhere else perhaps or simply backup files
>> by yourself. We do that by ourselves using tdbdump for ldb files, getfacl
>> to get the whole directory ACLs and that's almost everything (we don't work
>> on that subject for months now so my memory is not up to date).
>> The point with backup is not backup but restoration which are more
>> complex (hardlinks to recreate as a first point where to fail).
>> Q2: With almost all recent Linux systems you have systemd and recent
>> Samba version are shipped with systemd init file. Debian 8 comes with
>> systemd.
>> 2016-04-19 13:46 GMT+02:00 Alexsandro Oliveira <xsandroveira at gmail.com>:
>>> Hello guys
>>> I have two questions.
>>> 1 - I installed Samba 4 in debian 8 via apt and watched the referenced
>>> backup script that link
>>> https://wiki.samba.org/index.php/Backup_and_restore_an_Samba_AD_DC does
>>> not
>>> exist in Samba installed via apt.
>>> How do I bacxkup the Samba4 AD installed by apt?
>>> 2 - In another client installed in order compiled via source code in
>>> debian
>>> 8, everything working, but the startup script that is in this link is not
>>> working. https://wiki.samba.org/index.php/Samba4/InitScript,
>>> Does anyone have a script that funcone Debian 8
>>> Grateful!
>>> Alexsandro Oliveira
>>> Note: I used Google Traslater am Brazilian.
>>> --
>>> To unsubscribe from this list go to the following URL and read the
>>> instructions:  https://lists.samba.org/mailman/options/samba

More information about the samba mailing list