![backup cisco switch config backup cisco switch config](https://603168-1953132-raikfcquaxqncofqfm.stackpathdns.com/wp-content/uploads/TFTP-Server-1.jpg)
ASA Diff IOS Diff Removing unwanted linesĪs you can see above, Git is registering cryptochecksum:as a change. Let's run the Playbook again ansible-playbook config_backup.yml Run PlaybookĪs you can see below Git is showing what has been changed since the last commit. Router-1(config)#access-list 25 permit any Let's make a small config change on both ASA and IOS router and see what happens. rw-rw-r- 1 ubuntu ubuntu 5138 Dec 7 15:39 show_run_router-1.txtĪs you can see below the files are also pushed to GitLab. rw-rw-r- 1 ubuntu ubuntu 7715 Dec 7 15:39 show_run_asa.txt rw-rw-r- 1 ubuntu ubuntu 17 Dec 7 15:34 README.md Running the Playbook Let's verify the config filesĪs you can see below Ansible copies the running config files into the Git Directory. Router-1 : ok=2 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 Localhost : ok=3 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
#Backup cisco switch config install
You can install GitLab using this guide: Download and install GitLab | GitLab File structure tree localhost] Remote: Total 3 (delta 0), reused 0 (delta 0), pack-reused 0 Remote: Counting objects: 100% (3/3), done. You can also use GitHub or BitBucket.Ĭreate New Project Project Description Git Clone git clone into 'cisco-backups'. I'm going to use GitLab to manage the repositories in this example. Git is a distributed version control system for tracking changes in any set of files. Please note that If there are no changes to the running-config then Ansible will not replace the existing file.Īnsible also runs Git commands into that directory so, the changes are committed and pushed to the GitLab repository every day.
![backup cisco switch config backup cisco switch config](https://www.cisco.com/c/dam/en/us/support/docs/smb/switches/cisco-250-series-smart-switches/images/ijgm-12142017-backup-configuration-files-scp-step9.png)
Ansible copies the running configuration from each device daily and saves it into a directory /home/ubuntu/cisco-backups in the same machine.