What to back up on a Linux Home Server system?
If you own a home server system that works with Linux, you will probably need to upgrade and update it regularly. Here, TipsMake.com will guide you some basic steps to back up the basic and most necessary components, helping users to save maximum time each time performing the upgrade process.
However, each home server system has a certain difference, so please adjust and change accordingly - this is a tutorial that should start.
/ Home directory:
Let's start with / home , the root directory for each account on the system. Here store all the music, video and document files (unless you leave the data on another partition), and this is also the place to store the configuration files of the program. Press Ctrl + H and you will see all the hidden files in this folder. Please backup any data needed, and apply to each account.
Apt source:
The list of software and applications used by apt is fixed at /etc/apt/sources.list , and gpg keys in the /etc/apt/sources.list.d/ directory. If you've ever had time to use Linux, surely people will want to install software from external repositories compared to the default system. After reinstalling, users only need to change the information of the corresponding distro (eg lucid to maverick ), and copy these lines to the new sources.list file. But depending on the repository, you must download the gpg key before using. Another thing to note is that users should also remember exactly what is on the old system, or use Ubuntu Tweak - 1 pretty good solution if you want to install the software and repository, as well as change the settings in the system.
Samba settings:
If you set up and use the Samba sharing feature (with Windows), you need to copy the /etc/samba/smb.conf file . There are actually very few differences between versions, so just keep the setup file in use. In case of a total reset, use gadmin-samba (on Gnome) and KSambaPlugin (on KDE) with smb.conf, both tools have a graphical console, making operations Much simpler and easier.
SSH:
In case you use SSH to control and access remote computers, back up the setup file of this function at / etc / ssh / ssh_config and / etc / ssh / sshd_config.
fstab:
The entire file is fixed in the / etc / fstab directory , the main task is to specify the Linux file system file. Be careful when applying, because you will not be able to use the old fstab file on a new installation system. Because the UUIDs parameter will change every time the partition is reformatted. However, please keep the old configuration file in the fstab file, this is really useful if the system has multiple partitions, folders or shared connections, separate root / home directory . Besides You can also use pySDM (Gnome) or mountmanager (KDE) to adjust the fstab file (both have graphical interfaces).
Backup program:
If the server system is set up to automatically back up with rsync or Simple Backup , keep the configuration files of those tools, for example, the configuration file of Rsync at /etc/rsyncd.conf and Simple Backup is /etc/sbackup.conf.
Website configuration files:
Many people use Apache, MySQL, or PHP on the system to use or research their personal websites. And backing up these configuration files is quite complicated, all in the directory / var / www:
But it would probably be better if you reconfigure all Apache, MySQL, and PHP when reinstalling the system, due to a change in user version or admin password. On the other hand, you can install it instead with the familiar LAMP combination:
sudo apt-get install lamp-server ^
Besides, please install phpMyAdmin to adjust MySQL database more easily:
sudo apt-get install libapache2-mod-auth-mysql phpmyadmin
And finally, remember to change the default passwords for these applications before using them. Good luck!
You should read it
- How to secure Linux Home Server
- How to build Linux web server with an old computer
- Basic Shell commands in Linux
- Some basic Terminal commands in Linux Mint 11
- 7 commands to manipulate the most basic files and folders everyone must know
- Learn about the Linux Kernel and their main functions
- Guide to Unix
- The 5 best Linux server distributions
May be interested
- How to create a media server with VLC to stream music and videosvlc media player is a powerful media server. it allows you to store a large collection of videos or music files on a pc and transfer that content to any computer in the home.
- Is CentOS or Ubuntu the best web hosting server operating system?with so many available linux distributions, choosing a suitable distro for your home computer is not easy. choosing a linux distribution for the server is even more difficult.
- ClearOS - Linux server web interfacecurrently, clearos is the linux server operating system that is of particular interest to the community. compared to other linux server versions, clearos gives users many unexpected advantages
- How to manage remote Linux server using SSHmanaging the server is still a necessary and sometimes heavy task. fortunately, secure shell (ssh) is available - a network protocol that allows services to run on an unsecured network.
- New points in SQL Server 2017the sql server 2017 version is primarily connected to linux, bringing the power of sql to linux. in short, you can install sql server 2017 on linux, using sql server 2017 on linux-based docker containers. sql server 2017 also allows you to choose development languages, develop it on-premise or cloud-based.
- How to access Linux server from Androidbefore starting to connect to the server from an android device, users should consider how it affects security. connection from android is not unsafe, but every method has certain risks.
- 7 best Linux server distributionslinux is one of the factors driving today's growing internet platform. in fact, more than 70% of all websites are powered by unix, with linux accounting for 58%.
- How to Set Up an FTP Server on Ubuntu Linuxtoday's tipsmake will guide you how to set up and connect to an ftp server on a computer running the ubuntu linux operating system. ftp servers are useful for storing data from your computer and allowing others to browse those files. to establish a connection from a computer, you need an ftp server. you also need to update to the latest version of ubuntu.
- How to build a game server on Linuxcurrent games can not only connect to the server but also run that server. learn about everything you need to build a linux server game through the following article.
- How to configure DNS Server on Ubuntu Server 11.04dns server is a server with domain name resolution function. in this article, we will detail the steps to install and configure dns server on linux with ubuntu server version 11.04.