Backup the entire linux system:
sudo rsync -aAXv --delete --exclude={"/dev/*","/proc/*","/sys/*","/tmp/*","/run/*","/mnt/*","/media/*","/lost+found", "/home/muktadiur/.cache","/home/muktadiur/Downloads/*", "/home/muktadiur/VirtualBox\ VMs/*"} / /media/muktadiur/HDD/debian10/
source the root linux folder
/ :
/media/muktadiur/HDD/debian10/:
destination where i want to take my backup.
--delete:
override if file exist.
--exclude:
folder/file don’t want to copy.
--dry-run:
simulate the backup process
-aAXv:
-a:
option is a combination flag. It stands for “archive” and syncs
recursively and preserves symbolic links, special and device files,
modification times, group, owner, and permissions.
-A:
preserve ACLs
-X:
preserve extended attributes
-v:
for verbose
Restore from backup:
sudo rsync -aAXv --delete /media/muktadiur/HDD/debian10 /
[…] Take system backup (very important). system backup with rsync […]