Here is a simple and cheap idea on how to make a backup of your desktop data to a external disk. It is always good idea to keep your data on a some other storage not directly associated with your primary desktop hardware and software. This kind of redundancy makes you recover from disaster easier. First, get new external USB hard-drive dedicated for this backup. The best would be to have drive with the same size as your primary data disk and preferably for a faster speed the drive should be USB 3.0. The aim is to keep a exact copy of our home directory on a external USB drive.
Plug-in your USB drive, format it with ext4 filesystem and execute:
1 2 3 4 5 6 7 8 9 10 11
Our drive has UUID=“4356e78b-6f85-4c2d-91a6-f561f35d9e20” and this is what we are going to insert into /etc/fstab config file so it will mount after each reboot. To do that insert the following into /etc/fstab:
Make sure that /mnt/backup mount point is created:
Next open your crontab and set rsync to clone all data in your home directory to /mnt/backup/ every hour:
All is done. From now on your home directly will be cloned/backup to external device. If you are paranoid you could also encrypt your destination drive.