[GH-ISSUE #285] Recommendation: Move credentials for postgres DB in backup script to separate file #2129

Closed
opened 2026-03-14 02:41:00 +03:00 by kerem · 3 comments
Owner

Originally created by @knk90 on GitHub (Feb 18, 2021).
Original GitHub issue: https://github.com/amidaware/tacticalrmm/issues/285

Originally assigned to: @wh1te909 on GitHub.

Currently /rmm/backup.sh needs to be modified on every upgrade to include the postgres DB creds.

Recommend these are read from a separate file or similar which does not get overwritten on every trmm update.

Originally created by @knk90 on GitHub (Feb 18, 2021). Original GitHub issue: https://github.com/amidaware/tacticalrmm/issues/285 Originally assigned to: @wh1te909 on GitHub. Currently /rmm/backup.sh needs to be modified on every upgrade to include the postgres DB creds. Recommend these are read from a separate file or similar which does not get overwritten on every trmm update.
kerem 2026-03-14 02:41:00 +03:00
Author
Owner

@dinger1986 commented on GitHub (Feb 21, 2021):

Download the backup file directly and store it in /home/your-user as the only reason its in /rmm/ is due to it doing git clone to there, you will see the install.sh file and others are in there as well.

wget https://raw.githubusercontent.com/wh1te909/tacticalrmm/master/backup.sh

<!-- gh-comment-id:782935640 --> @dinger1986 commented on GitHub (Feb 21, 2021): Download the backup file directly and store it in /home/your-user as the only reason its in /rmm/ is due to it doing git clone to there, you will see the install.sh file and others are in there as well. wget https://raw.githubusercontent.com/wh1te909/tacticalrmm/master/backup.sh
Author
Owner

@wh1te909 commented on GitHub (Feb 24, 2021):

@dinger1986 im gonna reopen, this is a good request cuz now if I update the backup script it requires you to redownload the latest one and then edit the username/password again. so if the creds are in a different file then the backup script can just be re-run without having to edit it again

<!-- gh-comment-id:784639192 --> @wh1te909 commented on GitHub (Feb 24, 2021): @dinger1986 im gonna reopen, this is a good request cuz now if I update the backup script it requires you to redownload the latest one and then edit the username/password again. so if the creds are in a different file then the backup script can just be re-run without having to edit it again
Author
Owner

@wh1te909 commented on GitHub (Feb 24, 2021):

ok so this is added, thank you @dinger1986 for writing the new grep command to grab the username/password from local_settings.py

@knk90 I've updated the documentation site with new instructions. You can just run both backup.sh and restore.sh without editing anything.

<!-- gh-comment-id:785385066 --> @wh1te909 commented on GitHub (Feb 24, 2021): ok so this is added, thank you @dinger1986 for writing the new grep command to grab the username/password from local_settings.py @knk90 I've updated the documentation site with new instructions. You can just run both `backup.sh` and `restore.sh` without editing anything.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/tacticalrmm#2129
No description provided.