Zbigniew Luszpinski
2009-Apr-26 19:40 UTC
[Samba] How to make fully working samba backup/migration?
Hello, how to correctly make full and fully working samba backup? I read articles and newsgroups seeing how many people failed because something was forgotten to be copied or saved and restored/merged. Usually password and user accounts does not work. What I found is most people copy: /etc/samba the smarter copy also: /home geeks knows they should also copy: /etc/passwd /etc/shadow /etc/groups and /var/lib/samba where tdb files are kept. Looking at these gathered files I think I should also store file rights and user/owner of each file. Finally I should merge: /etc/passwd /etc/shadow /etc/groups on new system with these I backed up from older system. How to copy files from users' accounts at /home/* if files created by M$ Windows have characters in file names Linux can not handle during copy? How to preserve windows file rights when migrating samba from Linux to Linux? I hope I identified all problems which may happen... If not tell me what I missed and tell me how to fix such problem. Did I miss something or this is full list of operations to be done to have fully working samba backup? have a nice day, zbiggy
Michal Dobroczynski
2009-Apr-26 19:51 UTC
[Samba] How to make fully working samba backup/migration?
Hello, I have never been migrating a working samba to another computer, but we have been many times transferring data from host to host during migrations and "rsync" was the best tool available. Take a look on the option "-a, --archive archive mode; equals -rlptgoD (no -H,-A,-X)". The same "archive" mode you will find in cp and others. I do not _know_ how ACLs are handled in this case, but I think it's an easy thing to check. Regards, Michal 2009/4/26 Zbigniew Luszpinski <zbiggy@o2.pl>:> Hello, > > how to correctly make full and fully working samba backup? > I read articles and newsgroups seeing how many people failed because something > was forgotten to be copied or saved and restored/merged. > Usually password and user accounts does not work. > What I found is most people copy: > /etc/samba > the smarter copy also: > /home > geeks knows they should also copy: > /etc/passwd > /etc/shadow > /etc/groups > and > /var/lib/samba > where tdb files are kept. > > Looking at these gathered files I think I should also store file rights and > user/owner of each file. Finally I should merge: > /etc/passwd > /etc/shadow > /etc/groups > on new system with these I backed up from older system. > > How to copy files from users' accounts at /home/* if files created by M$ > Windows have characters in file names Linux can not handle during copy? How to > preserve windows file rights when migrating samba from Linux to Linux? > > I hope I identified all problems which may happen... If not tell me what I > missed and tell me how to fix such problem. > > Did I miss something or this is full list of operations to be done to have > fully working samba backup? > > have a nice day, > zbiggy > > -- > To unsubscribe from this list go to the following URL and read the > instructions: ?https://lists.samba.org/mailman/options/samba >