I'm looking to take a whole system backup and store it on S3. Something that could be good enough to restore my entire system. But I've been told that using dd/rsync to capture the root directory will save a lot of extraneous files that I wouldn't need to restore the system.
In the event that I had to reply on this backup, I would need to restore:
- The home directory
- All installed programs
- All customizations throughout the system, such as edits to the Openbox configuration file, etc
The command I see recommended here is:
sudo rsync -aAXv / --exclude={"/dev/*","/proc/*","/sys/*","/tmp/*","/run/*","/mnt/*","/media/*","/lost+found"} /mnt
Is it possible to go lighter than that?
You might look at a combination of
Backups
(Déjà Dup) for your /home, andTimeshift
for the system stuff. Otherwise, useMacrium Reflect
to clone your entire disk/partition.The closest thing to a Windows-like restore point is by using
Timeshift
. I use it to save snapshots to an external USB hard drive. Although it can, it's normally not used for backing up your /home directory, just system-level changes. UseBackups
(Déjà Dup) for backing up /home files.More information at https://github.com/teejee2008/timeshift
For pre-19.04 users, add the PPA:
And install with:
From: Bash script to backkup/clone Ubuntu to another partition
The script also updates
/boot/grub/grub.cfg
and/etc/fstab
so you can boot your backup.