pg_dump requires a username and a host (?) #4528

Closed
opened 2025-12-29 18:37:00 +01:00 by adam · 2 comments
Owner

Originally created by @bgianpetro on GitHub (Feb 3, 2021).

Originally assigned to: @jeremystretch on GitHub.

Change Type

[ ] Addition
[X ] Correction
[ ] Deprecation
[ ] Cleanup (formatting, typos, etc.)

Area

[ ] Installation instructions
[ ] Configuration parameters
[ ] Functionality/features
[ ] REST API
[ X] Administration/development
[ ] Other

Not sure if this is an issue for everyone or not, but if I use 'pg_dump' as documented without both the -U (username) and -h (hostname) options it errors out on me. In order to get it to work, I always need to use it as follows:

pg_dump -U netbox -h localhost netbox > netbox.sql

If that issue is not specific to me, maybe update the documentation to include those options.

Originally created by @bgianpetro on GitHub (Feb 3, 2021). Originally assigned to: @jeremystretch on GitHub. <!-- NOTE: IF YOUR ISSUE DOES NOT FOLLOW THIS TEMPLATE, IT WILL BE CLOSED. Please indicate the nature of the change by placing an X in one of the boxes below. --> ### Change Type [ ] Addition [X ] Correction [ ] Deprecation [ ] Cleanup (formatting, typos, etc.) ### Area [ ] Installation instructions [ ] Configuration parameters [ ] Functionality/features [ ] REST API [ X] Administration/development [ ] Other <!-- Describe the proposed change(s). --> Not sure if this is an issue for everyone or not, but if I use 'pg_dump' as documented without both the -U (username) and -h (hostname) options it errors out on me. In order to get it to work, I always need to use it as follows: pg_dump -U netbox -h localhost netbox > netbox.sql If that issue is not specific to me, maybe update the documentation to include those options.
adam added the status: acceptedtype: documentation labels 2025-12-29 18:37:00 +01:00
adam closed this issue 2025-12-29 18:37:00 +01:00
Author
Owner

@DanSheps commented on GitHub (Feb 4, 2021):

This can probably be added as a !!note

@DanSheps commented on GitHub (Feb 4, 2021): This can probably be added as a !!note
Author
Owner

@stale[bot] commented on GitHub (Mar 21, 2021):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. NetBox is governed by a small group of core maintainers which means not all opened issues may receive direct feedback. Please see our contributing guide.

@stale[bot] commented on GitHub (Mar 21, 2021): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. NetBox is governed by a small group of core maintainers which means not all opened issues may receive direct feedback. Please see our [contributing guide](https://github.com/netbox-community/netbox/blob/develop/CONTRIBUTING.md).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#4528