TL;DR
Create a backup:
sudo -Hiu postgres pg_dumpall > mybackup.sqlInstall Postgres 11, and then:
| ------------ | |
| -- Locks -- | |
| ------------ | |
| SELECT | |
| blocked_locks.pid AS blocked_pid, | |
| blocked_activity.usename AS blocked_user, | |
| blocking_locks.pid AS blocking_pid, | |
| blocking_activity.usename AS blocking_user, | |
| blocked_activity.query AS blocked_statement, | |
| blocking_activity.query AS current_statement_in_blocking_process |
| process.on | |
| ( | |
| 'uncaughtException', | |
| function (err) | |
| { | |
| var stack = err.stack; | |
| var timeout = 1; | |
| // print note to logger | |
| logger.log("SERVER CRASHED!"); |
| Prerequisite | |
| One instance of Alfresco on mysql, one postgresl of exactly the same version (schema version). | |
| Step 1. Dump database | |
| mysqldump --port 3306 -u alfresco --password=alfloftux -h 127.0.0.1 --databases alfresco --skip-comments --skip-extended-insert --no-create-db --hex-blob --default-character-set=utf8 --skip-triggers --compact --no-create-info --skip-quote-names > mydump.sql | |
| Step 2. Dump local Postgres schema | |
| You can install a clean version of Alfresco to use as for schema dump | |
| (need to insert command for dump here) |
| # This is the car code for the remote controlled Hot Rod | |
| # (c) Anton's Mindstorms & Ste7an | |
| # Full tutorial here: | |
| # https://antonsmindstorms.com/2021/06/19/how-to-remote-control-lego-spike-prime-and-robot-inventor-with-python/ | |
| # Building instructions here: | |
| # https://antonsmindstorms.com/product/remote-controlled-hot-rod-with-51515/ | |
| # Use with the the remote control script here: |
TL;DR
Create a backup:
sudo -Hiu postgres pg_dumpall > mybackup.sqlInstall Postgres 11, and then: