author | wenzelm |
Wed, 07 Oct 2020 21:15:15 +0200 | |
changeset 72394 | 9302fd538ae4 |
parent 68996 | 5f333f88d2c1 |
child 73534 | e7fb17bca374 |
permissions | -rw-r--r-- |
67766
603334230303
consolidated main cronjob server on virtual machine together with build_log database;
wenzelm
parents:
67748
diff
changeset
|
1 |
Administrative Isabelle cronjob |
603334230303
consolidated main cronjob server on virtual machine together with build_log database;
wenzelm
parents:
67748
diff
changeset
|
2 |
=============================== |
603334230303
consolidated main cronjob server on virtual machine together with build_log database;
wenzelm
parents:
67748
diff
changeset
|
3 |
|
603334230303
consolidated main cronjob server on virtual machine together with build_log database;
wenzelm
parents:
67748
diff
changeset
|
4 |
- main server: virtual machine with cronjob and build_log database |
72394 | 5 |
- backup file-system (for cumulative log files): i21isatest@lxbroy10:cronjob |
6 |
- backup identify job: i21isatest@lxcisa0 |
|
64148 | 7 |
|
66995
9cb263dbb2f7
plain identify job for Isabelle + AFP, independent of any Isabelle technology;
wenzelm
parents:
64148
diff
changeset
|
8 |
- jobs: manual installation on target directory: |
9cb263dbb2f7
plain identify job for Isabelle + AFP, independent of any Isabelle technology;
wenzelm
parents:
64148
diff
changeset
|
9 |
cp "$ISABELLE_HOME/Admin/cronjob/self_update "$HOME/cronjob/self_update" |
9cb263dbb2f7
plain identify job for Isabelle + AFP, independent of any Isabelle technology;
wenzelm
parents:
64148
diff
changeset
|
10 |
cp "$ISABELLE_HOME/Admin/cronjob/plain_identify "$HOME/cronjob/plain_identify" |
9cb263dbb2f7
plain identify job for Isabelle + AFP, independent of any Isabelle technology;
wenzelm
parents:
64148
diff
changeset
|
11 |
|
64148 | 12 |
- crontab: manual update on target machine |
13 |
crontab -l |
|
14 |
crontab -e |
|
15 |
||
16 |
- $HOME/cronjob/run/ -- run-time state |
|
17 |
||
18 |
- $HOME/cronjob/log/ -- cumulative log area |
|
67748 | 19 |
|
20 |
||
21 |
Build Log Database Server |
|
22 |
========================= |
|
23 |
||
68996 | 24 |
- Ubuntu 18.04 LTS Linux Server standard installation |
67748 | 25 |
https://help.ubuntu.com/lts/serverguide |
26 |
||
27 |
- apt install unattended-upgrades |
|
28 |
||
29 |
- special user account: |
|
30 |
useradd -m -s /bin/bash isatest |
|
31 |
||
32 |
- SSH access for jsch (on each client): |
|
33 |
LOCALHOST$ ssh-keyscan -t rsa DBSERVER |
|
34 |
>> ~/.ssh/known_hosts |
|
35 |
||
36 |
- PostgreSQL: |
|
37 |
||
38 |
$ apt install postgresql |
|
39 |
$ apt install postgresql-client |
|
40 |
||
41 |
$ sudo -u postgres psql template1 |
|
42 |
ALTER USER postgres with encrypted password '***'; |
|
43 |
||
68996 | 44 |
$ edit /etc/postgresql/10/main/pg_hba.conf |
67748 | 45 |
local all postgres md5 |
46 |
local all all md5 |
|
47 |
||
48 |
$ systemctl restart postgresql.service |
|
49 |
||
50 |
$ createuser -U postgres --interactive isatest |
|
51 |
ALTER USER isatest with encrypted password '***'; |
|
52 |
||
53 |
$ createdb -E UTF8 -T template0 --locale=en_US.utf8 -U postgres -O isatest isatest |
|
54 |
||
55 |
- Database backup or migration: |
|
56 |
https://www.postgresql.org/docs/9.5/static/backup-dump.html |
|
57 |
||
58 |
pg_dump -U postgres -Fc -v -d isatest > db.dump |
|
59 |
pg_restore -U postgres -Fc -v -d isatest < db.dump |