• [Samba] Samba AD DC backup - again

    From Stanislav N. aka pztrn via samba@21:1/5 to All on Tue Mar 14 13:20:02 2017
    Hey list.

    I've searched all over last year conversations and it is (kinda) still
    unclear about backups.

    samba_backup script assumes that samba4 was installed from source, not
    from repository.

    https://github.com/thctlo/samba4/tree/master/backup-script is too overfunctional for simple backup script. Really, I know how to write
    shell scripts, but sometimes have headaches reading them ☺

    The question is: is it enough to copy /var/lib/samba directory (with
    samba turned off), which contains:

    # ls /var/lib/samba/       
    account_policy.tdb  ntp_signd  private registry.tdb  share_info. tdb  sysvol  winbindd_cache.tdb  winbindd_privileged  wins.ldb

    And /etc/samba && /etc/krb5.conf, or it should do something else?

    --
    With best regards, 
    Stanislav N. aka pztrn
    Jabber: pztrn@pztrn.name
    E-Mail: pztrn@pztrn.name
    Blog: http://pztrn.name && http://en.pztrn.name
    Telegram: @pztrn
    Key ID: B3E1F07E

    --
    To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From =?windows-1252?Q?L.P.H._van_Belle?=@21:1/5 to All on Tue Mar 14 14:50:03 2017
    Hai,

    I dont think its over functional, it includes everything you need for a good AD DC backup.

    This is about the minimal you should backup for an AD DC.
    If you want to backup samba when turned off. You need at least:
    /etc/samba
    /var/lib/samba
    /var/cache/samba
    /etc/krb*

    Check if sysvol is included in you backup and i also suggest an extra ACL backup of sysvol.

    !! Dont copy the /var/lib/samba when samba is running, you will get corrupted [l-t]db files !!

    Read: https://wiki.samba.org/index.php/Back_up_and_Restoring_a_Samba_AD_DC

    But the script is a "set and forget" and does all of above.
    Im using it over a year now, so can you explain what the problem is with the backup script.

    And i agree, its a "hard" to read script, so why not ..
    Just dont read it, get it, set it and enjoy it.
    If it does not work, report it on the list and we can try to help out.


    Greetz,

    Louis


    -----Oorspronkelijk bericht-----
    Van: samba [mailto:samba-bounces@lists.samba.org] Namens Stanislav N. aka pztrn via samba
    Verzonden: dinsdag 14 maart 2017 12:54
    Aan: samba
    Onderwerp: [Samba] Samba AD DC backup - again

    Hey list.

    I've searched all over last year conversations and it is (kinda) still unclear about backups.

    samba_backup script assumes that samba4 was installed from source, not
    from repository.

    https://github.com/thctlo/samba4/tree/master/backup-script is too overfunctional for simple backup script. Really, I know how to write
    shell scripts, but sometimes have headaches reading them ???

    The question is: is it enough to copy /var/lib/samba directory (with
    samba turned off), which contains:

    # ls /var/lib/samba/
    account_policy.tdb  ntp_signd  private registry.tdb  share_info. tdb  sysvol  winbindd_cache.tdb  winbindd_privileged  wins.ldb

    And /etc/samba && /etc/krb5.conf, or it should do something else?

    --
    With best regards,
    Stanislav N. aka pztrn
    Jabber: pztrn@pztrn.name
    E-Mail: pztrn@pztrn.name
    Blog: http://pztrn.name && http://en.pztrn.name
    Telegram: @pztrn
    Key ID: B3E1F07E

    --
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Stanislav N. aka pztrn via samba@21:1/5 to All on Tue Mar 14 15:10:03 2017
    В Вт, 14/03/2017 в 14:44 +0100, L.P.H. van Belle via samba пишет:
    Hai, 

    I dont think its over functional, it includes everything you need for
    a good AD DC backup.

    This is about the minimal you should backup for an AD DC. 
    If you want to backup samba when turned off. You need at least:  /etc/samba 
    /var/lib/samba
    /var/cache/samba
    /etc/krb* 

    Check if sysvol is included in you backup and i also suggest an extra
    ACL backup of sysvol. 

    !! Dont copy the /var/lib/samba when samba is running, you will get
    corrupted [l-t]db files !!

    Read: https://wiki.samba.org/index.php/Back_up_and_Restoring_a_Samba_
    AD_DC 

    But the script is a "set and forget" and does all of above. 
    Im using it over a year now, so can you explain what the problem is
    with the backup script. 

    And i agree, its a "hard" to read script, so why not .. 
    Just dont read it, get it, set it and enjoy it. 
    If it does not work, report it on the list and we can try to help
    out. 


    Greetz, 

    Louis


    -----Oorspronkelijk bericht-----
    Van: samba [mailto:samba-bounces@lists.samba.org] Namens Stanislav
    N. aka
    pztrn via samba
    Verzonden: dinsdag 14 maart 2017 12:54
    Aan: samba
    Onderwerp: [Samba] Samba AD DC backup - again

    Hey list.

    I've searched all over last year conversations and it is (kinda)
    still
    unclear about backups.

    samba_backup script assumes that samba4 was installed from source,
    not
    from repository.

    https://github.com/thctlo/samba4/tree/master/backup-script is too overfunctional for simple backup script. Really, I know how to
    write
    shell scripts, but sometimes have headaches reading them ???

    The question is: is it enough to copy /var/lib/samba directory
    (with
    samba turned off), which contains:

    # ls /var/lib/samba/
    account_policy.tdb  ntp_signd  private registry.tdb  share_i
    nfo.
    tdb  sysvol  winbindd_cache.tdb  winbindd_privileged  wins.ldb

    And /etc/samba && /etc/krb5.conf, or it should do something else?

    --
    With best regards,
    Stanislav N. aka pztrn
    Jabber: pztrn@pztrn.name
    E-Mail: pztrn@pztrn.name
    Blog: http://pztrn.name && http://en.pztrn.name
    Telegram: @pztrn
    Key ID: B3E1F07E

    --
    To unsubscribe from this list go to the following URL and read the instructions:  https://lists.samba.org/mailman/options/samba




    Thanks for paths list!

    It is very confusing that these paths not on wiki page.

    --
    With best regards, 
    Stanislav N. aka pztrn
    Jabber: pztrn@pztrn.name
    E-Mail: pztrn@pztrn.name
    Blog: http://pztrn.name && http://en.pztrn.name
    Telegram: @pztrn
    Key ID: B3E1F07E

    --
    To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Rowland Penny via samba@21:1/5 to Stanislav N. aka pztrn via samba on Tue Mar 14 15:50:02 2017
    On Tue, 14 Mar 2017 19:07:25 +0500
    "Stanislav N. aka pztrn via samba" <samba@lists.samba.org> wrote:

    Thanks for paths list!

    It is very confusing that these paths not on wiki page.


    The wiki is based around the default used when Samba is compiled from
    a tarball. Distros put the Samba binaries etc into a lot of different
    places, you just need to work out where.
    Running 'samba -b' should help ;-)

    Rowland




    --
    To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From =?windows-1252?Q?L.P.H._van_Belle?=@21:1/5 to All on Tue Mar 14 15:50:03 2017
    If you run : smbd -b | grep ": /"

    You see something like this :

    SBINDIR: /usr/sbin
    BINDIR: /usr/bin
    CONFIGFILE: /etc/samba/smb.conf
    LOGFILEBASE: /var/log/samba
    LMHOSTSFILE: /etc/samba/lmhosts
    LIBDIR: /usr/lib/x86_64-linux-gnu
    MODULESDIR: /usr/lib/x86_64-linux-gnu/samba
    LOCKDIR: /var/run/samba
    STATEDIR: /var/lib/samba
    CACHEDIR: /var/cache/samba
    PIDDIR: /var/run/samba
    SMB_PASSWD_FILE: /etc/samba/smbpasswd
    PRIVATE_DIR: /var/lib/samba/private
    CTDB_SOCKET: /var/run/ctdb/ctdbd.socket

    And your welkom.

    Greetz,

    Louis


    -----Oorspronkelijk bericht-----
    Van: samba [mailto:samba-bounces@lists.samba.org] Namens Stanislav N. aka pztrn via samba
    Verzonden: dinsdag 14 maart 2017 15:07
    Aan: samba@lists.samba.org
    Onderwerp: Re: [Samba] Samba AD DC backup - again

    ?? ????, 14/03/2017 ?? 14:44 +0100, L.P.H. van Belle via samba ??????????:
    Hai,

    I dont think its over functional, it includes everything you need for
    a good AD DC backup.

    This is about the minimal you should backup for an AD DC.
    If you want to backup samba when turned off. You need at least:
    /etc/samba
    /var/lib/samba
    /var/cache/samba
    /etc/krb*

    Check if sysvol is included in you backup and i also suggest an extra
    ACL backup of sysvol.

    !! Dont copy the /var/lib/samba when samba is running, you will get corrupted [l-t]db files !!

    Read: https://wiki.samba.org/index.php/Back_up_and_Restoring_a_Samba_
    AD_DC

    But the script is a "set and forget" and does all of above.
    Im using it over a year now, so can you explain what the problem is
    with the backup script.

    And i agree, its a "hard" to read script, so why not ..
    Just dont read it, get it, set it and enjoy it.
    If it does not work, report it on the list and we can try to help
    out.


    Greetz,

    Louis


    -----Oorspronkelijk bericht-----
    Van: samba [mailto:samba-bounces@lists.samba.org] Namens Stanislav
    N. aka
    pztrn via samba
    Verzonden: dinsdag 14 maart 2017 12:54
    Aan: samba
    Onderwerp: [Samba] Samba AD DC backup - again

    Hey list.

    I've searched all over last year conversations and it is (kinda)
    still
    unclear about backups.

    samba_backup script assumes that samba4 was installed from source,
    not
    from repository.

    https://github.com/thctlo/samba4/tree/master/backup-script is too overfunctional for simple backup script. Really, I know how to
    write
    shell scripts, but sometimes have headaches reading them ???

    The question is: is it enough to copy /var/lib/samba directory
    (with
    samba turned off), which contains:

    # ls /var/lib/samba/
    account_policy.tdb  ntp_signd  private registry.tdb  share_i nfo. tdb  sysvol  winbindd_cache.tdb  winbindd_privileged  wins.ldb

    And /etc/samba && /etc/krb5.conf, or it should do something else?

    --
    With best regards,
    Stanislav N. aka pztrn
    Jabber: pztrn@pztrn.name
    E-Mail: pztrn@pztrn.name
    Blog: http://pztrn.name && http://en.pztrn.name
    Telegram: @pztrn
    Key ID: B3E1F07E

    --
    To unsubscribe from this list go to the following URL and read the instructions:  https://lists.samba.org/mailman/options/samba




    Thanks for paths list!

    It is very confusing that these paths not on wiki page.

    --
    With best regards,
    Stanislav N. aka pztrn
    Jabber: pztrn@pztrn.name
    E-Mail: pztrn@pztrn.name
    Blog: http://pztrn.name && http://en.pztrn.name
    Telegram: @pztrn
    Key ID: B3E1F07E

    --
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Stanislav N. aka pztrn via samba@21:1/5 to All on Tue Mar 14 17:30:03 2017
    --=-OmV6nOk5h5YzYQ27G3JK
    Content-Type: text/plain; charset="UTF-8"
    Content-Transfer-Encoding: quoted-printable

    В Вт, 14/03/2017 в 14:41 +0000, Rowland Penny via samba пишет:
    On Tue, 14 Mar 2017 19:07:25 +0500
    "Stanislav N. aka pztrn via samba" <samba@lists.samba.org> wrote:

    Thanks for paths list!

    It is very confusing that these paths not on wiki page.


    The wiki is based around the default used when Samba is compiled from
    a tarball. Distros put the Samba binaries etc into a lot of different
    places, you just need to work out where.
    Running 'samba -b' should help ;-)

    Rowland





    Thanks for this hint!

    --
    With best regards, 
    Stanislav N. aka pztrn
    Jabber: pztrn@pztrn.name
    E-Mail: pztrn@pztrn.name
    Blog: http://pztrn.name && http://en.pztrn.name
    Telegram: @pztrn
    Key ID: B3E1F07E
    --=-OmV6nOk5h5YzYQ27G3JK
    Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit

    -----BEGIN PGP SIGNATURE-----

    iQIcBAABCAAGBQJYyBlSAAoJEBBpALMvgZLu9Y0P/jMBjOQEApexhDzL+EinhcYi tzOkJPWG0layK19QyI5gRF76TO540s4KTehJ99UbfVYcZBM2nM36xzEyKYPbyLmv skOgIu5E/2jQuOAxvqNRSK/xWEJUzQl6m/YEQ6Pq0hQVsiq1y+qV/FYGRrnVMymb 2WMTDZi4MCIPV9XluDORRFJGSaymMN2uvPcY3Dpv/XzHeNXGlLpVfhe1zt/F6WH5 1q9MY0NBCUwZS5SK+WWpVyd6bfF/2QtBkdNCddy6LveKvT8HPzUbdwK6Opj/+Zgj xU+H8dNLDHGwY7Trrkjy7BumV//kcBPUfqjSeF51cj8nD+79V4yzjpHieWnE5loO ahEoC3P/Vviri6GOCNy1oO/oO4wfGhN1Ys+Gd2xmWN/PqN/HnlcfG5Q5PK5ao7Km FNUKv7giG95LGyhdo9t27JiVPDJThzEYc21BHDw8hOVAgqUxQP3b/wocZG97EF7K rCCBSJ73Z7jJcle3U33P0wZdZJgpZwgwXV3BupIlsSPT9BqNnOWek0BYCv1WjvhK D13gZjRKi87Fhd8ZavYInsy