Not long ago I saw an article discussing why some people have less luggage as they live longer, while some people have to carry more and more things. I think it should be suitable for many situations:-)
One is the code and other files you wrote yourself, and the other is the configuration file that matches the environment. If there is a database, the database must also be exported and backed up. Generally, I back up these.
1. Code, but most of the code can be put on Github or backed up on a USB flash drive.
2. Configuration files, .bashrc, .vim, etc., as well as various plug-ins. Generally speaking, I configure some personal habits of the computer and make a wiki online to avoid forgetting it the next time I reinstall.
Everything under /home needs to be backed up, or your commonly used user directory under /home.
ps: If you often play Linux, you don’t seem to ask this question.
The most important thing is the configuration file of the related software, such as the configuration file of the web server ngiinx. The rest are of course ordinary usage files
Final emphasis: I don’t think it is necessary to back up the files that can be downloaded online at any time (I have a 64G ssd). The configuration file is the most important
Personally, I think backing up /home is enough. If /home is partitioned separately, it can reduce the probability of data loss due to system damage.
If you have installed a web server and the root path is not in /home/, back up the contents of the root path as well.
Not long ago I saw an article discussing why some people have less luggage as they live longer, while some people have to carry more and more things. I think it should be suitable for many situations:-)
One is the code and other files you wrote yourself, and the other is the configuration file that matches the environment. If there is a database, the database must also be exported and backed up. Generally, I back up these.
1. Code, but most of the code can be put on Github or backed up on a USB flash drive.
2. Configuration files, .bashrc, .vim, etc., as well as various plug-ins. Generally speaking, I configure some personal habits of the computer and make a wiki online to avoid forgetting it the next time I reinstall.
Everything under /home needs to be backed up, or your commonly used user directory under /home.
ps: If you often play Linux, you don’t seem to ask this question.
The most important thing is the configuration file of the related software, such as the configuration file of the web server ngiinx. The rest are of course ordinary usage files
Final emphasis: I don’t think it is necessary to back up the files that can be downloaded online at any time (I have a 64G ssd). The configuration file is the most important
Put it all on github. Under Linux, it mainly contains configuration files. As long as you back up the configuration files, it will be fine
Same question. . Where do you put the libraries and source code you compiled yourself? /usr/local No? Do you also need to back it up?