I know the question about how to back up things has been in this discussion before. Actually I knew allmost nothing about how to make Linux backups before I red theese discussions and made some experiments according to them.
I have tried the ordinary default method and I have also tried the bacup2ws contrib. These two seems to be working rather the same way exept for some improvements in the bacup2ws contrib. Both are for backing up via network to a windows machine (or possibly you can use another Samba server, this I have not fount out yet.)
I have also tried the dd kommand that I found in the discussions here. Worked great and made a digital identic copy of the disc. I also found the rsync command that can do these things very effectivlely. I have tested this as well.
I think I found a very good overview of some basic prinsipals for how to back up things here on this link:
http://www-106.ibm.com/developerworks/linux/library/l-roadmap8/But now my question:
The backup2ws contrib also has a download for "Winrar". Using this tool I can open the content og the automated e-smith backups to see their content. Wieving theese directories and files I can se that the backup files generaly is only copy from directory to directory and from file to file. Restoring this is generally only to copy back to the same locations. Theese same operations should be easy to maintain also if you want to make your own bacup routines, from hd to hd as an example.
There is one exeption from this general prinsipple of copying from directory to directory and from file to file.
There are two set of files:
/home/e-smith/db/mysql/mysql.dump
/home/e-smith/db/ldap/domainname.com.ldif
(If you have more domains the last one will be one per domain.)
Theese two files also exist on the machine that the backup is taken fromm so it is also a question of copying files. But I believe that theese two files are made during the automated e-smith backup prosess.
I believe the backup prosess works this way.
1. Make the mysql and the ldap dump, write them to the local disk.
2. Copy all files over the network.
And restoring the other way:
1. Copy all files over network.
2. Restore the ldap and the mysql dump files.
If I should be able to develop my ovn backup routines (exept for the dd command) that mooves datas from hd to hd as an example, I will need to know:
1. How to make the mysql and the ldap dump files
2. How to restore them.
Does anyboudy know how this can be done ?
(I wonder if there is not some hidden perl scripts somewhere that are able to do this job, but I don't know if this is the case or if they excist at all.)
If the prinsipples of these dump files vere known, then it would be a not so difficult thing, to make any kind of backup system for the e-smith.