Hi Mr Heinz,
Thanks for stopping by. ;)
Le 11/08/2015 20:15, Heinz Diehl a écrit :
On 11.08.2015, Diogene Laerce wrote:
Is there a trick I don't see here ? Because if the backup of those directories is enough for a full restoration of a system state, this method is far more efficient than the others, isn't it ?
If you backup all your partitions with rsync, all you have to do in an emergency case is to boot from e.g. CD or a memory stick [1] and reverse the rsync command.
Example:
rsync -avxHSAX /home/ /backup/home --> backup rsync -avxHSAX --delete /backup/home/ /home --> restore
The "--delete" parameter will take care of all the files that are not in the same state as when they were saved.
So in case of a complete disaster, just restore your data as described. If your boot sector is damaged, you'll however have to restore it by hand (which isn't all too difficult).
I actually modified Rick's script with those rsync parameters you provided which seem more accurate for my system.
Kind regards,