Backup......How?

I installed Ubuntu 20, a vpn with addons on Firefox and enabled the hot spot, thus taking advantage of the vpn for all connected devices The question is … to make a backup that can be reused which is the best way forward ?

I back up with the dd command.

dd if=/dev/sda of=/var/tmp/sda_disk.img

Then I save it to my Google drive account using rclone.

2 Likes

Backup:

rsync -aAXv --delete --exclude={"/dev/*","/proc/*","/sys/*","/tmp/*","/run/*","/mnt/*","/media/*","/lost+found"} / /output/folder/eg/mnt/

Restore:

rsync -aAXv --exclude="lost+found" /source/folder/eg/mnt/ /
1 Like