Dear all, i installed samba-sernet-ad on centos 7.2. I read that samba_backup script it is available from the source code. As, i do not installed samba from source code, how can i backup Samba AD on my server ? Thank you for helping Regards -- Jules HOUANTONON *Phone* : (00229) 97578914 *Email *: juleshoueto at gmail.com *Skype* : houantonon *linkedin* : linkedin.com/in/jhouantonon/en
By downloading the source and extracting the script? More seriously, there are lot of ways to achieve backup of Samba AD. Chose one, that one will be the good one. The point regarding backup is not backup, but restoration. Here it's a bit more complex as some files are hard links (when using Bind+DLZ as DNS back end). Rights must also be set correctly. But that's almost easy. During restoration of AD all DC must be stopped because all DC would try to synchronize with the newly restored DC. Once that first step is done, you will need to join each others DC to the restored one. Once again, this re-join must be done with Samba services stopped (on joined client, not on the restored one of course). Backup / restoration is on my todo list, these were only thoughts assembled during last months in expectation I reach one day that line of my todo list : ) 2016-07-26 12:16 GMT+02:00 Jules Houantonon <juleshoueto at gmail.com>:> Dear all, > > i installed samba-sernet-ad on centos 7.2. > > I read that samba_backup script it is available from the source code. > > As, i do not installed samba from source code, how can i backup Samba AD on > my server ? > > Thank you for helping > > Regards > > -- > Jules HOUANTONON > *Phone* : (00229) 97578914 > *Email *: juleshoueto at gmail.com > *Skype* : houantonon > *linkedin* : linkedin.com/in/jhouantonon/en > -- > To unsubscribe from this list go to the following URL and read the > instructions: lists.samba.org/mailman/options/samba >
On 26/07/16 11:16, Jules Houantonon wrote:> Dear all, > > i installed samba-sernet-ad on centos 7.2. > > I read that samba_backup script it is available from the source code. > > As, i do not installed samba from source code, how can i backup Samba AD on > my server ? > > Thank you for helping > > Regards >The problem with getting the backup script from the source code is that it is hardcoded for /usr/local/samba. You only really need a backup script if you only have one DC, the best way to backup your AD, add another DC. If you do decide to backup your AD, you will have to decide when and how often you create a backup, this is because infrequent backups are worthless. Unless you are sure that your backup contains every change, you could find yourself minus all changes made since the last backup. Rowland
Thank you all for your feedback. I appreciate it. I only have one DC, and i cannot install another one. Please, now how can I adjust the backup script to work witch samba-sernet package installation ? Regards On Tue, Jul 26, 2016 at 12:11 PM, Rowland penny <rpenny at samba.org> wrote:> On 26/07/16 11:16, Jules Houantonon wrote: > >> Dear all, >> >> i installed samba-sernet-ad on centos 7.2. >> >> I read that samba_backup script it is available from the source code. >> >> As, i do not installed samba from source code, how can i backup Samba AD >> on >> my server ? >> >> Thank you for helping >> >> Regards >> >> > The problem with getting the backup script from the source code is that it > is hardcoded for /usr/local/samba. > > You only really need a backup script if you only have one DC, the best way > to backup your AD, add another DC. > > If you do decide to backup your AD, you will have to decide when and how > often you create a backup, this is because infrequent backups are > worthless. Unless you are sure that your backup contains every change, you > could find yourself minus all changes made since the last backup. > > Rowland > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: lists.samba.org/mailman/options/samba >-- Jules HOUANTONON *Phone* : (00229) 97578914 *Email *: juleshoueto at gmail.com *Skype* : houantonon *linkedin* : linkedin.com/in/jhouantonon/en
Hi, To save you guys some time. Im not a github guru so, ignore the layout please.. I'm posting scipts in the future here. github.com/thctlo/samba4 For now i added the backup_samba4 script which i use daily. Rowland Penny and me did modify it. Greetz, Louis> -----Oorspronkelijk bericht----- > Van: samba [mailto:samba-bounces at lists.samba.org] Namens Jules Houantonon > Verzonden: dinsdag 26 juli 2016 13:52 > Aan: Rowland penny > CC: samba > Onderwerp: Re: [Samba] how to backup samba ad domain > > Thank you all for your feedback. I appreciate it. > > I only have one DC, and i cannot install another one. > > Please, now how can I adjust the backup script to work witch samba-sernet > package installation ? > > Regards > > > > On Tue, Jul 26, 2016 at 12:11 PM, Rowland penny <rpenny at samba.org> wrote: > > > On 26/07/16 11:16, Jules Houantonon wrote: > > > >> Dear all, > >> > >> i installed samba-sernet-ad on centos 7.2. > >> > >> I read that samba_backup script it is available from the source code. > >> > >> As, i do not installed samba from source code, how can i backup Samba > AD > >> on > >> my server ? > >> > >> Thank you for helping > >> > >> Regards > >> > >> > > The problem with getting the backup script from the source code is that > it > > is hardcoded for /usr/local/samba. > > > > You only really need a backup script if you only have one DC, the best > way > > to backup your AD, add another DC. > > > > If you do decide to backup your AD, you will have to decide when and how > > often you create a backup, this is because infrequent backups are > > worthless. Unless you are sure that your backup contains every change, > you > > could find yourself minus all changes made since the last backup. > > > > Rowland > > > > > > -- > > To unsubscribe from this list go to the following URL and read the > > instructions: lists.samba.org/mailman/options/samba > > > > > > -- > Jules HOUANTONON > *Phone* : (00229) 97578914 > *Email *: juleshoueto at gmail.com > *Skype* : houantonon > *linkedin* : linkedin.com/in/jhouantonon/en > -- > To unsubscribe from this list go to the following URL and read the > instructions: lists.samba.org/mailman/options/samba
> On 26 Jul 2016, at 12:11, Rowland penny <rpenny at samba.org> wrote: > > You only really need a backup script if you only have one DC, the best way to backup your AD, add another DC.In general that's fine if all you care about is being able to recreate a failed DC (after hardware failure or bad system update). It's no use in protecting you against user/sysadmin error where you make large, but unwanted changes to your directory (like accidentally deleting 200 users) and you want to reset it to the previous day's state. If your second DC is offsite it might form part of your disaster recovery plan. Sent from my iPhone -- Kevin Davidson Apple Certified System Administrator Technical Director t 01506 668674 m 07813 149620 w indigospring.co.uk indigospring (Scotland) Ltd Registered in Scotland No. SC398572 Registered office: 103 Oldwood Place, Livingston EH54 6US Follow us on Twitter - twitter.com/indigospringIT Members of the Apple Consultants Network - consultants.apple.com/uk indigospring.co.uk/terms-and-conditions
Hai Kevin, I to have more dc's but same as what your saying..> In general that's fine if all you care about is being able to recreate a > failed DC (after hardware failure or bad system update). It's no use in > protecting you against user/sysadmin error where you make large, but > unwanted changes to your directory (like accidentally deleting 200 users) > and you want to reset it to the previous day's state.For that, check : github.com/thctlo/samba4 and run it in cron as much u want. Result is like what you want, im ok with 5 backups a day. (next to the normal backups)>lssamba-2016-07-18-0.tar.bz2 samba-2016-07-18-1.tar.bz2 samba-2016-07-18-2.tar.bz2 samba-2016-07-18-3.tar.bz2 samba-2016-07-18-4.tar.bz2 samba-2016-07-19-0.tar.bz2 samba-2016-07-19-1.tar.bz2 samba-2016-07-19-2.tar.bz2 samba-2016-07-19-3.tar.bz2 samba-2016-07-19-4.tar.bz2 Greetz, Louis