System partition: copying¶
Sometimes it is necessary to back up not only data, but also the operating system itself.
It makes sense to copy the operating system if you have installed any additional programs or you have many special settings, etc.
This can be done in several ways, the simplest of which is copying the entire section.
For example, using the dd command.
sudo dd if=/dev/sdXY bs=1M conv=noerror | gzip -c> /folder/folder/part.dd.gz
The resulting file is a byte-by-byte copy of your partition, including not only files, but the type of file system.
From this it can be understood that if the system and data, for example, staffcop database and screenshots, are on the same partition, this method does not suit you.
Of course, like any copy, it must be stored on another device.