Date when the backup file is added to the spare part when Centos7 backs up the file
Today, the editor will bring you an article about the date when Centos7 backup files are added to spare parts. The editor thinks it's pretty good, so I'll share it for you as a reference. Let's follow the editor and have a look.
Linux is based on files to manage devices, interfaces, files, startup and application software in the system, because in the current process, the application system .conf files, script software, shell and so on are required to make backup when editing. Generally speaking, when I operate on important files, I have to back up the files first, such as:
01. Create a new file
# echo "test copy.." > / home/hdnnadmin/test-copy
02. Spare test-copy files
# cp / home/hdnnadmin/test-copy / home/hdnnadmin/test-copy-bak
Or # cp / home/hdnnadmin/test-copy {,-bak}
View the results of the backup
03. Method of adding backup time
# cp / home/hdnnadmin/test-copy {, _ back_ `date'+% Y% m% d% H% M``}
View backup results
It now shows where the spare parts date is added in the backup file.
The above is the specific operation of Centos7 backup files when the backup files are added to the spare parts, the code is detailed and clear, if you encounter this problem in your daily work, I hope you can solve the problem through this article. If you want to know more about it, welcome to follow the industry information channel!