Upgrading Nautobot
The Nautobot development teams release updates to Nautobot and open source apps regularly, addressing things such as bug fixes, critical vulnerabilities, as well as new features. It is good to proactively update your Nautobot deployment. Thankfully, Nautobot makes it easy to perform these upgrades.
Before we go any further, it is recommended that you perform a database backup should anything go awry.
You can run the nautobot-server dumpdata
command we discussed previously in this chapter. You can run the nautobot-server dumpdata > nautobot_dump.json
command to save the database as JSON.
If you created a Postgres database, as we did in Chapter 3, you can also leverage the pg_dump
utility, which provides a seamless restore option:
root@nautobot-dev:~# sudo -iu postgres pg_dump --clean --if-exists --dbname=nautobot > /tmp/nautobot.sql
Should you wish to roll back an upgrade at any point, it is recommended to restore the database as any release may...