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 >> > >
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 question... 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 into: /lib/systemd/system /usr/lib/systemd/system 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... M. 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 >>> >> >> >
> Anyway service file (or "unit" file to speak systemd) are generally stored > into: > /lib/systemd/system > /usr/lib/systemd/systemYes ^^^ .. BUT ... on debian Jessie. /lib/systemd/system/samba.service is an symlink to /dev/null And to my knowledge /etc/init.d/samba is still used. Greetz, Louis> -----Oorspronkelijk bericht----- > Van: samba [mailto:samba-bounces at lists.samba.org] Namens mathias dufresne > Verzonden: dinsdag 19 april 2016 16:27 > Aan: Alexsandro Oliveira > CC: samba > Onderwerp: Re: [Samba] Problem with backup and initiation > > 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 > question... > 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 > into: > /lib/systemd/system > /usr/lib/systemd/system > > 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... > > M. > > > 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 > >>> > >> > >> > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba
I expect samba ships a unit file called samba-ad.service. I expect this happens when you use the right switch for ./configure script: samba-4.4.2# ./configure --help | grep systemd --with-systemd Enable systemd integration --without-systemd Disable systemd integration 2016-04-19 17:05 GMT+02:00 L.P.H. van Belle <belle at bazuin.nl>:> > Anyway service file (or "unit" file to speak systemd) are generally > stored > > into: > > /lib/systemd/system > > /usr/lib/systemd/system > > Yes ^^^ .. BUT ... on debian Jessie. > /lib/systemd/system/samba.service is an symlink to /dev/null > And to my knowledge /etc/init.d/samba is still used. > > > Greetz, > > Louis > > > > > > -----Oorspronkelijk bericht----- > > Van: samba [mailto:samba-bounces at lists.samba.org] Namens mathias > dufresne > > Verzonden: dinsdag 19 april 2016 16:27 > > Aan: Alexsandro Oliveira > > CC: samba > > Onderwerp: Re: [Samba] Problem with backup and initiation > > > > 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 > > question... > > 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 > > into: > > /lib/systemd/system > > /usr/lib/systemd/system > > > > 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... > > > > M. > > > > > > 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 > > >>> > > >> > > >> > > > > > -- > > To unsubscribe from this list go to the following URL and read the > > instructions: https://lists.samba.org/mailman/options/samba > > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba >