File tree Expand file tree Collapse file tree 2 files changed +12
-9
lines changed Expand file tree Collapse file tree 2 files changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -6,8 +6,7 @@ Table of Contents
6
6
- [ Install PostgreSQL] ( #install-postgresql )
7
7
- [ User Database] ( #user-database )
8
8
- [ Socket Connection] ( #socket-connection )
9
- - [ Shared Buffer] ( #shared-buffer ) ** to do
10
- - [ Making Dumps] ( #creating-backups ) ** to do
9
+ - [ Making Dumps] ( #creating-backups )
11
10
##
12
11
13
12
1 . ### Repository Keyring
@@ -73,12 +72,7 @@ createdb -O psqluser authdb && \
73
72
createdb -O psqluser mapserverdb
74
73
```
75
74
76
- - Find the database(s) in the dump
77
- ``` sh
78
- postgres@host:~ $ pg_dumpall
79
- ```
80
-
81
- - Verify you can log in with the user
75
+ - Verify you can connect to a database with the user
82
76
``` sh
83
77
postgres@host:~ $ psql -d mapdb -h localhost -U psqluser
84
78
```
@@ -111,6 +105,14 @@ root@host:~# /etc/init.d/postgresql restart
111
105
user@host:~ $ psql -d mapdb -U psqluser
112
106
```
113
107
108
+ 5 . ### Backup and Restore
109
+
110
+ - To create a backup
111
+ ``` sh
112
+ postgres@host:~ $ pg_dumpall
113
+ ```
114
+
115
+
114
116
You now have a running PostgreSQL service. Next step is to [ Compile Minetest] ( /compile_minetestserver.md ) or [ MultiCraft] ( /compile_multicraftserver.md )
115
117
116
118
Original file line number Diff line number Diff line change @@ -33,7 +33,8 @@ root@host:~# apt-get install rsync
33
33
root@host:~ # mkdir -p /home/user/.ssh && \
34
34
touch /home/user/.ssh/authorized_keys && \
35
35
chown -R user:user /home/user/.ssh && \
36
- chmod -R 700 /home/user/.ssh
36
+ chmod 700 /home/user/.ssh && \
37
+ chmod 600 /home/user/.ssh/authorized_keys
37
38
```
38
39
39
40
- Generate new SSH keypair on local machine
You can’t perform that action at this time.
0 commit comments