I would like to have an up-to-date clone of a (Debian) GNU/Linux system on an external HDD and therefore be able to replace the internal HDD with the external HDD at any time and being up and running in no time. Since the system is on a laptop, I can't rely on a hardware-based mirroring solution.
I wish the backup procedure to be as automatic and as hassle-free as possible. For instance, it could run automatically at shutdown whenever an external HDD is connected.
I already have an external HDD with a clone of system partitions.
The caveat is that the partition that hosts the / directory is encrypted with LUKS+dm-crypt and I would rather avoid entering passwords again for the backup.
I could mount the external encrypted partition automatically before shutdown.
Does a ready-made solution exists? Please only reply if it does, because if it doesn't, then I will post a specific question to implement a custom solution.
Thanks for your attention.