Back up the configurations of Huawei switches using the keep CT script (4)

Source: Internet
Author: User

Using the keep CT script to back up the configurations of Huawei switches (4) for ease of management, we can mount the windows shared folder to linux so that the backup
Data can be viewed at any time through windows, and corresponding scheduled tasks can be developed for the script to run automatically. Www.2cto.com 1. mount windows share to/mnt/share [root @ game-syslog-o/] mount-t cifs-ousername = switchbackup@game-inc.com, password = p @ ssw0rd // 192.168.36.74/Backup/mnt/share 2. edit rc. windows Shared www.2cto.com [root @ game-syslog-o/] vi/etc/rc is automatically mounted on local boot. localmount-t cifs-o username = switchbackup@game-inc.com,
Password = p @ ssw0rd // 192.168.36.74/Backup/mnt/share/3. edit the crontab scheduled task [root @ game-syslog-o/] crontab-e00 2 *** cd/opt &/bin/sh-x tar. sh # The script is stored in the opt directory, execute 00 3 ***/bin/cp-rf/opt/tftp/* .tar.gz/mnt/share/Switch/00 0 1 */bin/rm-rf/ mnt/share/Switch/* .tar.gz 00 1 1 **/bin/rm-rf/opt/tftp/* .tar.gz ~
 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.