-
Notifications
You must be signed in to change notification settings - Fork 1
backup OS
Charles(Shengsong) Xu edited this page Feb 5, 2022
·
2 revisions
Using sudo rsync -aAXv --delete --exclude=/exclude/files/path /source /destination
to backup any file you want.
For Graham instance, the command is sudo rsync -aAXv --delete --exclude=/sys/* --exclude=/proc/* --exclude=/media/data/Backup / /media/data/Backup
, the backup will be stored in /media/data/Backup
.
It is recommended to backup OS before making any major changes to the system.
The command to restore your system is here:
sudo rsync -aAXv --delete /media/data/Backup /
More instructions can be found here.