Hi,
I need to make backups of several hosts. I want to make complete
system backups so that restoring a system to a working state does
not require anything except just restoring the backup. Many of the
machines will have lots of identical files because they have the
same operating system distributions.
I have been thinking of using the "hardlink"[1] utility or something
similar to hard-link identical files across backups from several
hosts. This would give huge savings in the required storage capacity.
Are other people doing this with production systems? What are the
best practices for doing this? Are there any special considerations
or caveats that people have encountered?
I am worried that the automatic hard-linking might result in some
undesired situations, for example one scenario:
1. The host has a configuration file foo.conf and a default
configuration template foo.conf.default which are identical because
there was no need to customize foo.conf.
2. The files are backed up. Because they are identical including
the time stamps they will be hard-linked together so that it
essentially becomes one file with two/several names.
3. Something happens and the host is restored from backup.
4. Later on someone needs to make changes to foo.conf. As a result
also the other file, foo.conf.template, gets messed up because it
is now actually the same file as foo.conf because they were hard-linked
together in the backup which was restored.
If the machines were based on some common ancestor (like a hard
disk image of the base OS) it would be easy to make a dummy backup
directory containing the files from the original image and then
just run the first rsync for each host with --link-dest=/path/to/ancestor.
But this is not the case. Also the backups would diverge over time
when updates are installed on the machines and more space would be
wasted (because the updated versions of identical files would no
longer be linked together).
[1] http://jak-linux.org/projects/hardlink/
Best Regards,
--
Janne Snabb / EPIPE Communications
snabb < at > epipe.com - http://epipe.com/
------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss
