How to backup Cisco devices ?

Hello,

I really want to know if there is an easy way or documentation to backup Cisco routers or Vyos routers ?

using Ansible machine ?

Best Regards ,

Hi,
check the builtin modules of any recent ansible engine.
There are ~65 modules for IOS and VYOS and they are pretty mature.
ansible-doc -l | egrep “vyos|^ios”
Regards.

Is there any documentation?

Hello Ibrahim,

You can use the respective config modules to take a full backup of running-config. Please refer to the examples and documentation for these module:

  1. https://docs.ansible.com/ansible/latest/collections/cisco/ios/ios_config_module.html

  2. https://docs.ansible.com/ansible/latest/collections/vyos/vyos/vyos_config_module.html

Thanks!

Check out this implementation of the above module: https://github.com/ciscops/ansible-network-backup