Hello, Can someone point me to documentation on how to best backup a samba member server? I see the wiki currently does not contain one. Is it as simple as backup all shared folders with rysnc or similar that will preserve ACLS along with the smb.conf? I'm currently relying on a raid solution. Thanks. -- -James
Erf... Best backup are expensive :p Buy a backup robot, buy another one, put them in separated datacenters, which could on separated continent... I'm joking. But the question pushed me to. You can backup your data or backup your configuration. You can of course backup both. Then what configuration? I smb.conf enough? Do you have to backup your pam configuration too? I'd say you would have to backup everything, all modified files to obtain that configuration which make that server your own file server, member of a greater thing. Now rsync should do the trick as it is used to synchronize Sysvol shares, which contain ACLs. Sysvol should use Windows(-like) ACLs, your share(s) should contains Windows files, with MS ACLs, rsync should do the job. Then the point is the keep several versions of files on separated machines. I'm not a backup expert but that seems to me a good start for your reflections. Cheers, mathias 2015-12-02 15:57 GMT+01:00 James <lingpanda101 at gmail.com>:> Hello, > > Can someone point me to documentation on how to best backup a samba > member server? I see the wiki currently does not contain one. > > Is it as simple as backup all shared folders with rysnc or similar that > will preserve ACLS along with the smb.conf? I'm currently relying on a raid > solution. Thanks. > > -- > -James > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba >
For what it is worth I use a script to backup the ACL permissions attribute. That script uses rsync to push to a server at a different location (catastrophic event failure). Unfortunately all other backup options I have looked at do NOT support ACL attributes successfully. Only rsync with "-A" and "-X" switches active. Does not mean that there is not something else out there, somewhere that does. (MD post brings to my attention that currently I am not backing up my configuration . . . need to correct that asap. Thanks, MD) --- _______________________________ Bob Wooden of Donelson Trophy 615.885.2846 www.donelsontrophy.com [2] "Everyone deserves an award!!" On 2015-12-02 09:43, mathias dufresne wrote:> Erf... Best backup are expensive :p > Buy a backup robot, buy another one, put them in separated datacenters, > which could on separated continent... > > I'm joking. But the question pushed me to. You can backup your data or > backup your configuration. You can of course backup both. > > Then what configuration? I smb.conf enough? Do you have to backup your pam > configuration too? I'd say you would have to backup everything, all > modified files to obtain that configuration which make that server your own > file server, member of a greater thing. > > Now rsync should do the trick as it is used to synchronize Sysvol shares, > which contain ACLs. > > Sysvol should use Windows(-like) ACLs, your share(s) should contains > Windows files, with MS ACLs, rsync should do the job. > > Then the point is the keep several versions of files on separated machines. > > I'm not a backup expert but that seems to me a good start for your > reflections. > > Cheers, > > mathias > > 2015-12-02 15:57 GMT+01:00 James <lingpanda101 at gmail.com>: > >> Hello, Can someone point me to documentation on how to best backup a samba member server? I see the wiki currently does not contain one. Is it as simple as backup all shared folders with rysnc or similar that will preserve ACLS along with the smb.conf? I'm currently relying on a raid solution. Thanks. -- -James -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba [1]Links: ------ [1] https://lists.samba.org/mailman/options/samba [2] http://www.donelsontrophy.com
What about a backup solution like Bacula/Bareos?. If I'm not wrong it preserve all acls. I've restored a full virtual machine using Bareos an all worked fine. Greetings!! Hello, Can someone point me to documentation on how to best backup a samba member server? I see the wiki currently does not contain one. Is it as simple as backup all shared folders with rysnc or similar that will preserve ACLS along with the smb.conf? I'm currently relying on a raid solution. Thanks. -- -James -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Hello James, Am 02.12.2015 um 15:57 schrieb James:> Can someone point me to documentation on how to best backup a samba > member server? I see the wiki currently does not contain one. > > Is it as simple as backup all shared folders with rysnc or similar that > will preserve ACLS along with the smb.conf? I'm currently relying on a > raid solution. Thanks.Yes, I should finally write that doc. :-) What you should backup on a Domain Member: 1.) All files (share content and whatever else is important for you) 2.) Your smb.conf 3.) Your Samba databases (you can do a hotbackup with tdbbackup) Some notes about 3.: Depending on what your Domain Member is doing, some of the tdb files are important, while others are recreated and can get lost. There's nothing wrong if you backup all. :-) When I write the Wiki page, I might list which file is important for which case. Regards, Marc
Besides, obviously, the potential shared data on file servers, can't you just use the script that is introduced for backing up DCs? At least if the complete Samba installation is in "/usr/local/samba"... https://wiki.samba.org/index.php/Backup_and_restore_an_Samba_AD_DC Am 02.12.2015 um 20:06 schrieb Marc Muehlfeld:> Hello James, > > Am 02.12.2015 um 15:57 schrieb James: >> Can someone point me to documentation on how to best backup a samba >> member server? I see the wiki currently does not contain one. >> >> Is it as simple as backup all shared folders with rysnc or similar that >> will preserve ACLS along with the smb.conf? I'm currently relying on a >> raid solution. Thanks. > > Yes, I should finally write that doc. :-) > > > What you should backup on a Domain Member: > 1.) All files (share content and whatever else is important for you) > 2.) Your smb.conf > 3.) Your Samba databases (you can do a hotbackup with tdbbackup) > > > > Some notes about 3.: > Depending on what your Domain Member is doing, some of the tdb files are > important, while others are recreated and can get lost. There's nothing > wrong if you backup all. :-) When I write the Wiki page, I might list > which file is important for which case. > > > Regards, > Marc >