# 9/27 TFTP server
###### tags: `Networking` `Smallko` `CCNA` `TFTP`
[TOC]
Copy and recover data by using TFTP
## Install TFTP and xinetd
```
yum -y install xinetd tftp-server
```
Tftp-server is running on the dedicated host
the problem is it will occupy the resource if no one to use it
xineted is Internet hosting service, it can solve the problem
## Modify CentOS7 configuration
Change disable yes to no and insert -c in front of the server_args
disable = no
server_args = -c -s /var/lib/tftpboot
**CentOS7**
```
vim /etc/xinetd.d/tftp #go to the file
chmod 777 /var/lib/tftpboot/
systemctl restart xinetd.service
systemctl stop firewalld
setenforce 0
```
## Configuring in the router
```
R1#copy startup-config tftp: #upload starup-config
```
## Erase router data and try get the backup file from TFTP server
Erase data in router
```
write erase
reload
```
Recover the data
```
Router#copy tftp: startup-config
Address or name of remote host []?
192.168.203.135
Source filename []?
r1-confg
Destination filename [startup-config]?
Router#copy startup-config run
```
Note
check startup-config
```
dir nvram:
```
check running-config
```
dir system:
```