the script is not complete. It isnt stopping samba and as the wiki says, DONT backup a running samba. Greetz, Louis>-----Oorspronkelijk bericht----- >Van: samba [mailto:samba-bounces at lists.samba.org] Namens >Giuseppe Arvati >Verzonden: vrijdag 21 augustus 2015 11:25 >Aan: Marc Muehlfeld; Marcio Demetrio Bacci; samba at lists.samba.org >Onderwerp: Re: [Samba] Problem with backup of the Samba 4 > >Il 19/08/2015 07:16, Marc Muehlfeld ha scritto: >> Hellor Marcio, >> >> Am 19.08.2015 um 06:33 schrieb Marcio Demetrio Bacci: >>> I followed the tutorial below to do backup of the Samba4: >>> >>> https://wiki.samba.org/index.php/Backup_and_Recovery >>> >>> When I execute the backup script manually, it is executed >perfectly, but >>> when I execute in the crontab, it isn't work. >>> >>> It is my crontab on Debian 7: >>> 0 1 * * 1-5 /usr/sbin/samba_backup >>> >>> Does somebody have an idea ? >> >> >> I think $PATH differs in your situation from when you run it manually >> and when cron does. You can add a >> export $PATH=$PATH:... >> to the top of the script, where you add all directories, used >> executables are in. >> >> >> For debugging, you can run the script via cron: >> >> 0 1 * * 1-5 /bin/bash -x /usr/sbin/samba_backup > >/tmp/bck.log 2>&1 >> >> and have a look in the log afterwards. >> >> >> Regards, >> Marc >> >Hi, > >I have the same problem and the log file show: > >Error while backuping ./private/privilege.ldb > >samba 4.1.19 > >Regards >Giuseppe > > > >-- >To unsubscribe from this list go to the following URL and read the >instructions: https://lists.samba.org/mailman/options/samba > >
Actually, the wiki says that you should not copy a running database, *but *you can backup the files with tdbbackup. On Fri, Aug 21, 2015 at 6:58 AM, L.P.H. van Belle <belle at bazuin.nl> wrote:> the script is not complete. > It isnt stopping samba and as the wiki says, DONT backup a running samba. > > Greetz, > > Louis > > > > >-----Oorspronkelijk bericht----- > >Van: samba [mailto:samba-bounces at lists.samba.org] Namens > >Giuseppe Arvati > >Verzonden: vrijdag 21 augustus 2015 11:25 > >Aan: Marc Muehlfeld; Marcio Demetrio Bacci; samba at lists.samba.org > >Onderwerp: Re: [Samba] Problem with backup of the Samba 4 > > > >Il 19/08/2015 07:16, Marc Muehlfeld ha scritto: > >> Hellor Marcio, > >> > >> Am 19.08.2015 um 06:33 schrieb Marcio Demetrio Bacci: > >>> I followed the tutorial below to do backup of the Samba4: > >>> > >>> https://wiki.samba.org/index.php/Backup_and_Recovery > >>> > >>> When I execute the backup script manually, it is executed > >perfectly, but > >>> when I execute in the crontab, it isn't work. > >>> > >>> It is my crontab on Debian 7: > >>> 0 1 * * 1-5 /usr/sbin/samba_backup > >>> > >>> Does somebody have an idea ? > >> > >> > >> I think $PATH differs in your situation from when you run it manually > >> and when cron does. You can add a > >> export $PATH=$PATH:... > >> to the top of the script, where you add all directories, used > >> executables are in. > >> > >> > >> For debugging, you can run the script via cron: > >> > >> 0 1 * * 1-5 /bin/bash -x /usr/sbin/samba_backup > > >/tmp/bck.log 2>&1 > >> > >> and have a look in the log afterwards. > >> > >> > >> Regards, > >> Marc > >> > >Hi, > > > >I have the same problem and the log file show: > > > >Error while backuping ./private/privilege.ldb > > > >samba 4.1.19 > > > >Regards > >Giuseppe > > > > > > > >-- > >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 >
On 21/08/15 10:58, L.P.H. van Belle wrote:> the script is not complete. > It isnt stopping samba and as the wiki says, DONT backup a running samba.Hi Louis, it doesn't say that at all, what it does say is this: Whilst you must never copy a running database, you can backup *.ldb & *.tdb files online with 'tdbbackup' This is a bit ambiguous, what it should say is: You must never copy the running database (*.ldb & *.tdb files) except with 'tdbbackup' Rowland> > Greetz, > > Louis > > > >> -----Oorspronkelijk bericht----- >> Van: samba [mailto:samba-bounces at lists.samba.org] Namens >> Giuseppe Arvati >> Verzonden: vrijdag 21 augustus 2015 11:25 >> Aan: Marc Muehlfeld; Marcio Demetrio Bacci; samba at lists.samba.org >> Onderwerp: Re: [Samba] Problem with backup of the Samba 4 >> >> Il 19/08/2015 07:16, Marc Muehlfeld ha scritto: >>> Hellor Marcio, >>> >>> Am 19.08.2015 um 06:33 schrieb Marcio Demetrio Bacci: >>>> I followed the tutorial below to do backup of the Samba4: >>>> >>>> https://wiki.samba.org/index.php/Backup_and_Recovery >>>> >>>> When I execute the backup script manually, it is executed >> perfectly, but >>>> when I execute in the crontab, it isn't work. >>>> >>>> It is my crontab on Debian 7: >>>> 0 1 * * 1-5 /usr/sbin/samba_backup >>>> >>>> Does somebody have an idea ? >>> >>> I think $PATH differs in your situation from when you run it manually >>> and when cron does. You can add a >>> export $PATH=$PATH:... >>> to the top of the script, where you add all directories, used >>> executables are in. >>> >>> >>> For debugging, you can run the script via cron: >>> >>> 0 1 * * 1-5 /bin/bash -x /usr/sbin/samba_backup > >> /tmp/bck.log 2>&1 >>> and have a look in the log afterwards. >>> >>> >>> Regards, >>> Marc >>> >> Hi, >> >> I have the same problem and the log file show: >> >> Error while backuping ./private/privilege.ldb >> >> samba 4.1.19 >> >> Regards >> Giuseppe >> >> >> >> -- >> To unsubscribe from this list go to the following URL and read the >> instructions: https://lists.samba.org/mailman/options/samba >> >> >
On 8/21/2015 6:24 AM, Rowland Penny wrote:> On 21/08/15 10:58, L.P.H. van Belle wrote: >> the script is not complete. >> It isnt stopping samba and as the wiki says, DONT backup a running >> samba. > > Hi Louis, it doesn't say that at all, what it does say is this: > > Whilst you must never copy a running database, you can backup *.ldb & > *.tdb files online with 'tdbbackup' > > This is a bit ambiguous, what it should say is: > > You must never copy the running database (*.ldb & *.tdb files) except > with 'tdbbackup' > > Rowland > >> >> Greetz, >> >> Louis >> >> >>> -----Oorspronkelijk bericht----- >>> Van: samba [mailto:samba-bounces at lists.samba.org] Namens >>> Giuseppe Arvati >>> Verzonden: vrijdag 21 augustus 2015 11:25 >>> Aan: Marc Muehlfeld; Marcio Demetrio Bacci; samba at lists.samba.org >>> Onderwerp: Re: [Samba] Problem with backup of the Samba 4 >>> >>> Il 19/08/2015 07:16, Marc Muehlfeld ha scritto: >>>> Hellor Marcio, >>>> >>>> Am 19.08.2015 um 06:33 schrieb Marcio Demetrio Bacci: >>>>> I followed the tutorial below to do backup of the Samba4: >>>>> >>>>> https://wiki.samba.org/index.php/Backup_and_Recovery >>>>> >>>>> When I execute the backup script manually, it is executed >>> perfectly, but >>>>> when I execute in the crontab, it isn't work. >>>>> >>>>> It is my crontab on Debian 7: >>>>> 0 1 * * 1-5 /usr/sbin/samba_backup >>>>> >>>>> Does somebody have an idea ? >>>> >>>> I think $PATH differs in your situation from when you run it manually >>>> and when cron does. You can add a >>>> export $PATH=$PATH:... >>>> to the top of the script, where you add all directories, used >>>> executables are in. >>>> >>>> >>>> For debugging, you can run the script via cron: >>>> >>>> 0 1 * * 1-5 /bin/bash -x /usr/sbin/samba_backup > >>> /tmp/bck.log 2>&1 >>>> and have a look in the log afterwards. >>>> >>>> >>>> Regards, >>>> Marc >>>> >>> Hi, >>> >>> I have the same problem and the log file show: >>> >>> Error while backuping ./private/privilege.ldb >>> >>> samba 4.1.19 >>> >>> Regards >>> Giuseppe >>> >>> >>> >>> -- >>> To unsubscribe from this list go to the following URL and read the >>> instructions: https://lists.samba.org/mailman/options/samba >>> >>> >> > >I've tried this script as well and it would not backup if Samba was running. I currently stop Samba manually and run the script. -- -James
Il 21/08/2015 11:58, L.P.H. van Belle ha scritto:> the script is not complete. > It isnt stopping samba and as the wiki says, DONT backup a running samba. > > Greetz, > > Louis > > > >> -----Oorspronkelijk bericht----- >> Van: samba [mailto:samba-bounces at lists.samba.org] Namens >> Giuseppe Arvati >> Verzonden: vrijdag 21 augustus 2015 11:25 >> Aan: Marc Muehlfeld; Marcio Demetrio Bacci; samba at lists.samba.org >> Onderwerp: Re: [Samba] Problem with backup of the Samba 4 >> >> Il 19/08/2015 07:16, Marc Muehlfeld ha scritto: >>> Hellor Marcio, >>> >>> Am 19.08.2015 um 06:33 schrieb Marcio Demetrio Bacci: >>>> I followed the tutorial below to do backup of the Samba4: >>>> >>>> https://wiki.samba.org/index.php/Backup_and_Recovery >>>> >>>> When I execute the backup script manually, it is executed >> perfectly, but >>>> when I execute in the crontab, it isn't work. >>>> >>>> It is my crontab on Debian 7: >>>> 0 1 * * 1-5 /usr/sbin/samba_backup >>>> >>>> Does somebody have an idea ? >>> >>> I think $PATH differs in your situation from when you run it manually >>> and when cron does. You can add a >>> export $PATH=$PATH:... >>> to the top of the script, where you add all directories, used >>> executables are in. >>> >>> >>> For debugging, you can run the script via cron: >>> >>> 0 1 * * 1-5 /bin/bash -x /usr/sbin/samba_backup > >> /tmp/bck.log 2>&1 >>> and have a look in the log afterwards. >>> >>> >>> Regards, >>> Marc >>> >> Hi, >> >> I have the same problem and the log file show: >> >> Error while backuping ./private/privilege.ldb >> >> samba 4.1.19 >> >> Regards >> Giuseppe >> >> >> >> -- >> To unsubscribe from this list go to the following URL and read the >> instructions: https://lists.samba.org/mailman/options/samba >> >> >ok thank you, but the strangeness is that if I execute samba_backup manually ( outside of the cron job ) from command prompt it works even with samba running !!! Giuseppe
>> 0 1 * * 1-5 /bin/bash -x /usr/sbin/samba_backup >try this : 0 1 * * 1-5 root /usr/sbin/samba_backup>-----Oorspronkelijk bericht----- >Van: Giuseppe Arvati [mailto:giuseppe.arvati at gmail.com] >Verzonden: vrijdag 21 augustus 2015 15:24 >Aan: L.P.H. van Belle; samba at lists.samba.org >Onderwerp: Re: [Samba] Problem with backup of the Samba 4 > >Il 21/08/2015 11:58, L.P.H. van Belle ha scritto: >> the script is not complete. >> It isnt stopping samba and as the wiki says, DONT backup a >running samba. >> >> Greetz, >> >> Louis >> >> >> >>> -----Oorspronkelijk bericht----- >>> Van: samba [mailto:samba-bounces at lists.samba.org] Namens >>> Giuseppe Arvati >>> Verzonden: vrijdag 21 augustus 2015 11:25 >>> Aan: Marc Muehlfeld; Marcio Demetrio Bacci; samba at lists.samba.org >>> Onderwerp: Re: [Samba] Problem with backup of the Samba 4 >>> >>> Il 19/08/2015 07:16, Marc Muehlfeld ha scritto: >>>> Hellor Marcio, >>>> >>>> Am 19.08.2015 um 06:33 schrieb Marcio Demetrio Bacci: >>>>> I followed the tutorial below to do backup of the Samba4: >>>>> >>>>> https://wiki.samba.org/index.php/Backup_and_Recovery >>>>> >>>>> When I execute the backup script manually, it is executed >>> perfectly, but >>>>> when I execute in the crontab, it isn't work. >>>>> >>>>> It is my crontab on Debian 7: >>>>> 0 1 * * 1-5 /usr/sbin/samba_backup >>>>> >>>>> Does somebody have an idea ? >>>> >>>> I think $PATH differs in your situation from when you run >it manually >>>> and when cron does. You can add a >>>> export $PATH=$PATH:... >>>> to the top of the script, where you add all directories, used >>>> executables are in. >>>> >>>> >>>> For debugging, you can run the script via cron: >>>> >>>> 0 1 * * 1-5 /bin/bash -x /usr/sbin/samba_backup > >>> /tmp/bck.log 2>&1 >>>> and have a look in the log afterwards. >>>> >>>> >>>> Regards, >>>> Marc >>>> >>> Hi, >>> >>> I have the same problem and the log file show: >>> >>> Error while backuping ./private/privilege.ldb >>> >>> samba 4.1.19 >>> >>> Regards >>> Giuseppe >>> >>> >>> >>> -- >>> To unsubscribe from this list go to the following URL and read the >>> instructions: https://lists.samba.org/mailman/options/samba >>> >>> >> > > ok thank you, > > but the strangeness is that if I execute samba_backup manually ( >outside of the cron job ) > from command prompt it works even with samba running !!! > >Giuseppe > > > > > >