![]() ![]() This is also a reason, why you will probably find contra-arguments (sometimes quite vehement ones) against backing up your system on this way. Thus, your database will become crap after a restoration. If the database engine writes something into the first and to the second, while your backup process runs, then it is possible that the first will be backed up and the second won't. Imagine if a database has two files, for example, /var/lib/postgresql/11/main/base/13731 and /var/lib/postgresql/11/main/base/13732 which refer to eachother. You have no protection for possible file inconsistency issues what happen. Note also, this is only a recursive file copy. The trick is this: after that, you can safely backup /mnt/root with any tool you wish to, including rsync. You will see everything in it, except any sub-mounts, including the virtual filesystems. Will mount your root filesystem (considering if your root is, for example, sda7) to the directory /mnt/root. Linux knows the thing so-named bind mount: it means, that you can mount a filesystem multiple times. However, there is a simple trick to solve that. However, backing up / might be problematic because of the problem above. If your goal is to back up everything, then the best what you can do is that you back up everything. For example, writing 1 into /sys/bus/pci/rescan doesn't write anything to anywhere on a hard disk, instead it re-scans the PCI bus for new devices.īacking them up would be meaningless or they might be even harmful. A virtual filesystem is like a /proc: it doesn't have physical files on the hard disk, instead listing/reading/writing their file structure manipulates some data structures of the kernel. The reason of the advices to not backup the " /" folder is this: typically, there are many virtual (and, sometimes, physical) filesystems attached to it. exclude=".cache" -exclude="Downloads" -exclude=".VirtualBoxVMs" ![]() ![]() My idea was to use rsync and use sudo rsync -aAXv -delete -exclude=/dev/* -exclude=/proc/* Also, I have some commands in fstab but not sure this is stored in the home directory as well? I have alternative methods for these via cloud based solutions. I am not fussed about the actual data such as Documents, Videos etc. I have no problem installing Ubuntu from scratch again and importing my home folder, as long as it gives me everything back in terms of the UI and custom themes etc. Many topics have advised not to backup the root folder but has let me confused. I guess my question is, do I have to only backup the home folder or do I have to do the whole system root folder. How can I back up my whole system and be able to restore perfectly to where I was? I have installed some nice themes and customized quite a few things (graphically) and wouldn't want to repeat this process if I need to re-install. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |