diff --git a/docs/netbox.md b/docs/netbox.md index ef4c84456..46e3187eb 100644 --- a/docs/netbox.md +++ b/docs/netbox.md @@ -38,13 +38,13 @@ The NetBox database may be backed up and restored using `./scripts/netbox-backup ``` $ ./scripts/netbox-backup -NetBox configuration database saved to ('malcolm_netbox_backup_20230110-133855.psql.gz', 'malcolm_netbox_backup_20230110-133855.psql.media.tar.gz') +NetBox configuration database saved to ('malcolm_netbox_backup_20230110-133855.gz', 'malcolm_netbox_backup_20230110-133855.media.tar.gz') ``` -To clear the existing NetBox database and restore a previous backup, run the following command (substituting the filename of the `netbox_….psql.gz` you wish to restore) from within the Malcolm installation directory while Malcolm is running: +To clear the existing NetBox database and restore a previous backup, run the following command (substituting the filename of the `netbox_….gz` you wish to restore) from within the Malcolm installation directory while Malcolm is running: ``` -./scripts/netbox-restore --netbox-restore ./malcolm_netbox_backup_20230110-125756.psql.gz +./scripts/netbox-restore --netbox-restore ./malcolm_netbox_backup_20230110-125756.gz ``` diff --git a/scripts/control.py b/scripts/control.py index e065ec1de..be7816d51 100755 --- a/scripts/control.py +++ b/scripts/control.py @@ -303,7 +303,7 @@ def netboxBackup(backupFileName=None): raise Exception(f'Error creating NetBox configuration database backup') if (backupFileName is None) or (len(backupFileName) == 0): - backupFileName = f"malcolm_netbox_backup_{time.strftime('%Y%m%d-%H%M%S')}.psql.gz" + backupFileName = f"malcolm_netbox_backup_{time.strftime('%Y%m%d-%H%M%S')}.gz" with gzip.GzipFile(backupFileName, "wb") as f: f.write(bytes('\n'.join(results), 'utf-8'))