Linux uses files as the basis to manage the devices, interfaces, files, startup and application software in the system. Because in this process, the .conf files, script software, shell, etc. of the application system are required to be backed up before editing. Generally, when I operate important files, I always back them up first, such as: 01. Create a new file #echo "test copy.." > /home/hdnnadmin/test-copy 02. Spare parts test-copy file #cp /home/hdnnadmin/test-copy /home/hdnnadmin/test-copy-bak Or View the backup results 03. How to add backup time #cp /home/hdnnadmin/test-copy{,_back_`date '+%Y%m%d%H%M'`} View backup results At this time, it is displayed where the spare part date is added in the backup file Summarize The above is what I introduced to you about adding spare parts date to backup files when backing up files in Centos7. I hope it will be helpful to you. If you have any questions, please leave me a message and I will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website! You may also be interested in:
|
<<: JS implements array filtering from simple to multi-condition filtering
>>: Detailed explanation of how to view the current number of MySQL connections
1. Set up HOST on the host Macbook The previous d...
1. Download: http://www.oracle.com/technetwork/ja...
Because I have always used vscode to develop fron...
The <tfoot> tag is used to define the style...
Operation effectCode Implementation html <div ...
This article shares the specific code for JavaScr...
How to solve the problem of 1045 when the local d...
This article records the installation and configu...
Simple function: Click the plug-in icon in the up...
How to center the entire page content and how to m...
Hello everyone, I wonder if you have the same con...
By default, the width and height of the header ar...
I once encountered an assignment where I was give...
This article example shares the specific code of ...
Table of contents Preface zx library $`command` c...