-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #427 - Reworked 'Backup and Restore' section
- Loading branch information
Showing
9 changed files
with
286 additions
and
311 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,45 @@ | ||
Helper scripts | ||
Helper Scripts | ||
************** | ||
|
||
.. danger:: **☠️ The following scripts are potentially destructive ☠️** | ||
Warning | ||
======= | ||
|
||
You should **never** run scrips which scopes you don't understand. | ||
Below scripts potentially can make things worse which is why you should | ||
evaluate them *before hand*. | ||
A script can potentially be destructive! | ||
You should **never** run scripts which scopes you don't understand. | ||
|
||
You're running these scripts at your own risk. | ||
|
||
If we found a script is helping you more than 30 lines of new documentation, | ||
we may have added a helper script. | ||
Be aware that you are running these scripts at your own risk. | ||
|
||
.. _reset_db_password: | ||
|
||
Database Helper: (re)set password | ||
--------------------------------- | ||
Database Helper: (Re)set Password | ||
================================= | ||
|
||
Limitations | ||
* This script is working for PostgreSQL installations only. | ||
* Only local database servers are supported (script changes user). | ||
* This script requires to be run as ``root`` or similar privileged user! | ||
Limitations | ||
* This script is working for PostgreSQL installations only. | ||
* Only local database servers are supported (script changes user). | ||
* This script requires to be run as ``root`` or similar privileged user. | ||
* Be aware that the script will automatically stop and start Zammad! | ||
|
||
Scopes | ||
Mostly the following installation types will be affected / relevant: | ||
Scopes | ||
Mostly the following installation types will be affected / relevant: | ||
|
||
* package installations (especially CentOS & SUSE) | ||
* possibly source code installations | ||
* package installations (especially CentOS & SUSE) | ||
* possibly source code installations | ||
|
||
Functionality | ||
The script will do the following actions depending on the situation | ||
automatically for you. It will double tab by asking for your confirmation | ||
up front. | ||
Functionality | ||
The script will do the following actions automatically for you, depending | ||
on the situation. It will ask for your confirmation before performing | ||
actions. | ||
|
||
* If ``database.yml`` contains an empty password line, a new password | ||
will be generated, and set for the database user of Zammad, and | ||
saved to the configuration file. | ||
* If ``database.yml`` contains a password, it will be used to set | ||
the password of the Zammad database user. | ||
* Please note that the script will automatically stop and start Zammad! | ||
* If ``database.yml`` contains an empty password line, a new password | ||
will be generated and set for the database user of Zammad. It will also | ||
be saved to the configuration file. | ||
* If ``database.yml`` contains a password, it will be used to set | ||
the password of the Zammad database user. | ||
|
||
Usage | ||
Run ``/opt/zammad/contrib/backup/zammad_db_user_helper.sh`` and follow | ||
the instructions. No specific configurations are required. | ||
Usage | ||
Run ``/opt/zammad/contrib/backup/zammad_db_user_helper.sh`` and follow | ||
the instructions. No specific configurations are required. | ||
|
||
If errors occur the script will try to bring Zammad back online before | ||
exitting. Please ensure that your service is running. | ||
If errors occur, the script will try to bring Zammad back online before | ||
exiting. |
Oops, something went wrong.