Update 'Migration notes'
parent
e185e3e130
commit
921bd98fa0
@ -9,8 +9,6 @@ Apache 2.4.53
|
||||
|
||||
# Database
|
||||
|
||||
|
||||
|
||||
The database from HPR needs to be on the NEW server.
|
||||
|
||||
Until we move the DNS to the new server we need to update the DB o
|
||||
@ -25,6 +23,18 @@ Instead of PHP My admin we might use https://dbeaver.io/
|
||||
- [ ]
|
||||
- [ ]
|
||||
|
||||
## Synchronization
|
||||
|
||||
After every change, we can use the script `OLD:/home/hpr/bin/hpr_db_backup.bash` to trigger a db dump of the db, rsync it to the NEW server and import the db,
|
||||
|
||||
```
|
||||
$ cat /home/hpr/bin/hpr_db_backup.bash
|
||||
#!/bin/bash
|
||||
pw=$(grep -E '^\$password = ' /home/hpr/php/include.php | awk -F "'" '{print $2}' )
|
||||
pw=${pw##* }
|
||||
mysqldump --user=hpr_hpr --password="$pw" -c -e --default-character-set=utf8 --single-transaction --skip-set-charset --add-drop-database --databases hpr_hpr > /home/hpr/hpr_hpr.sql
|
||||
mysqldump --user=hpr_hpr --password="$pw" -c -e --default-character-set=utf8 --single-transaction --skip-set-charset --add-drop-database --databases hpr_hpr --ignore-table=hpr_hpr.reservations > /home/hpr/www/hpr.sql
|
||||
```
|
||||
|
||||
|
||||
# Redirects
|
||||
|
Loading…
Reference in New Issue
Block a user