In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly describes how Ubuntu 11.10 uses the terminal environment backup restore, the article is very detailed, has a certain reference value, interested friends must read it!
Process:
1. Set up TFTP Server and keep it open ~
2. Backup and restore ASA profiles
3. Backup and restore ASA IOS profiles
As mentioned in the previous article, IOS is the core of Cisco ASA or large routers and large switches. It is often beneficial to backup. Start ~
Set up TFTP Server under ubuntu
(1)$ sudo apt-get install xinetd tftpd tftp
Installation prerequisite package: xinetd is a prerequisite package, tftpd is a server side, tftp
for clients. (pictured)
(2)Create/etc/xinetd.d/tftp file with the following contents (copyable, to prevent errors)
service tftp
{socket_type = dgram
proto col = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -s /tftpboot
disable = no
per_source = 11
cps = 100 2
flags = IPv4}
where/tftpboot is the root directory of your TFTP server receiving files. (More on that later)
(3)Create a new TFTP receive file directory tftpboot and change the directory permissions and owner:
$ sudo mkdir /tftpboot New TFTP receive directory
$ sudo chmod -R 777 /tftpboot modify directory permissions
$ sudo chown -R nobody /tftpboot modify directory owner owner
Note: Be sure to change nobody to the current login user name, otherwise there will be errors such as no download permission. (pictured)
(4)Restart the inetd service (as shown)
$ sudo /etc/init.d/openbsd-inetd restart
or $ sudo /etc/init.d/xinetd restart
Note: The commands differ because of the inetd installation package.
(5)Open TFTP Server (as shown)
$ sudo service tftpd-hpa restart
TFTP server service is successfully set up and running well. Let's proceed to the next step ~
Backup Restore ASA Profile
Cisco can only backup and restore data via TFTP methods...
(1)backup
*** Step: log in ASA firewall command line interface with terminal (as shown in the figure)
Step 2: Execute the copy running-config tftp command (as shown)
Source filename[running-config] Does this mean confirming that the default file running-config is backed up? By default, press Enter Next!
Step 3: Specify the TFTP server IP address
address or name of remote host [wuyanteng]? Do you need to set the TFTP server IP to default wuyanteng for this host? For clarity I fill in IP address 192.168.0.102(ubuntu system IP) here, Enter Next
Step 4: Specify the file name of the configuration file to be backed up locally as run-BF(as shown in the figure, randomly specify)
Step 5: Backup success information (as shown in the figure)
Step 6:" /tftpboot "TFTP backup directory changes after successful backup
See run-BF file, size 39640 bytes, run is the file I backed up when I tested, size is the same... What is it?" Haha, let's rest for a while ~
(2)reduction
The above section is a backup ASA configuration file that is transferred to the local computer via TFTP. The configuration recovery method is basically the same as the backup method, except that the recovery command is different. The recovery command for the configuration file is:
ASA# copy tftp startup-config
Not only does the TFTP service need to be running properly, but it may also be necessary to backup files in the TFTP default folder (to prevent errors).
III. Backup Cisco ASA IOS Files
IOS is the heart of Cisco equipment, we backup it through TFTP method
(1)backup
*** Step: Use show flash to view all IOS of the current device (as shown)
Step 2: Copy IOS files with the command copy flash tftp, and enter the IOS file names to be copied in turn (copy is recommended, as shown in the figure)
Step 3: Also specify IP: 192.168.0.102 as the TFTP server (as shown)
Step 4: Specify the target IOS file name as ios-BF
Step 5: Backup success information
Step 6: The backup success message has been seen. Go to the "/tftpboot" folder to see the changes... (pictured)
The method of backing up other ios files is the same, so I won't repeat it here.
(2)Restore IOS
IOS restore method is very simple, command copy tftp flash command can be restored
Note: ios file is the core of the device, download the file name is not recommended to modify, I do this for the convenience of demonstration, otherwise the device does not recognize the rename you downloaded, and the original name is forgotten, then you are miserable...
The above is "Ubuntu 11.10 how to use the terminal environment backup restore" all the content of this article, thank you for reading! Hope to share the content to help everyone, more relevant knowledge, welcome to pay attention to the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.