cleanup more stuff no one ever reads
parent
74d28b7b07
commit
55bb7076db
|
@ -1,37 +0,0 @@
|
|||
|
||||
# Server backup replication
|
||||
|
||||
## Methodology
|
||||
|
||||
Backups are taken daily with the help of lvm snapshots.
|
||||
Here the backup-script from a host on the private cluster:
|
||||
|
||||
```sh
|
||||
#!/bin/sh
|
||||
cd $(dirname $0)
|
||||
|
||||
# prepare variables
|
||||
TIMESTAMP=$(date +%Y-%m-%d_%H-%M-%S)
|
||||
REMOTE=root@pandorabox.io
|
||||
|
||||
# create the LVM-snapshot on the main server
|
||||
ssh $REMOTE "/sbin/lvcreate -l 90%FREE -s -n backup /dev/mapper/vg0-data"
|
||||
|
||||
# mount the snapshot data read-only (remote)
|
||||
ssh $REMOTE "mount -o ro /dev/mapper/vg0-backup /mnt/snapshot/"
|
||||
|
||||
# rsync the snapshotted directory tree
|
||||
rsync -avz --bwlimit 8000 --delete ${REMOTE}:/mnt/snapshot/pandorabox.io/ /backup/pandorabox.io/
|
||||
|
||||
# cleanup
|
||||
ssh $REMOTE "umount /mnt/snapshot"
|
||||
ssh $REMOTE "lvremove /dev/mapper/vg0-backup -f"
|
||||
|
||||
# create incremental backups with borg
|
||||
borg create --ignore-inode .::${TIMESTAMP} /backup/pandorabox.io
|
||||
|
||||
# prune old backups
|
||||
borg prune . --keep-daily 5 --keep-monthly 3 --keep-yearly 10
|
||||
```
|
||||
|
||||
**NOTE**: The snapshot volume fills up with data during the backup process
|
|
@ -29,10 +29,6 @@ As the name suggests, restarts the minetest-server
|
|||
Converts the server to the test-instance (url's, announce-name, /news)
|
||||
**WARNING** Don't do this on the main server! This is intended to execute on a restored backup only!
|
||||
|
||||
## psql.sh
|
||||
|
||||
Starts a sql-shell on the main database (blocks, players)
|
||||
|
||||
## /data/minetest/world
|
||||
|
||||
The main directory for all things minetesty..
|
||||
|
|
|
@ -1,132 +0,0 @@
|
|||
[img]http://imgur.com/glmFDM5l.png[/img]
|
||||
|
||||
[size=150]
|
||||
[b]Notice:[/b]
|
||||
[color=#FF0000]We will migrate the server to v5.0 on saturday, the 16th around 21:00 CEST
|
||||
Please upgrade your clients until then:
|
||||
[list]
|
||||
[*] Linux: https://launchpad.net/~minetestdevs/+archive/ubuntu/stable
|
||||
[*] Windows: https://www.minetest.net/downloads/
|
||||
[*] MacOs: ¯\_(ツ)_/¯[/list]
|
||||
[/color][/size]
|
||||
|
||||
|
||||
[u]Multi-layered, space themed Server (but with much more than that:)[/u]
|
||||
|
||||
[b]Directions[/b]
|
||||
Server-Adress: [b]pandorabox.io[/b]
|
||||
Server-Port: [b]30000[/b]
|
||||
|
||||
Main Page: [url]https://pandorabox.io[/url]
|
||||
Map (realtime): [url]https://pandorabox.io/map/#-1782.25/493.5/10[/url]
|
||||
Highscore: [url]https://pandorabox.io/highscore/[/url]
|
||||
Issue tracker (technical issues): [url]https://github.com/pandorabox-io/pandorabox.io/issues[/url]
|
||||
Github: [url]https://github.com/pandorabox-io/pandorabox.io[/url]
|
||||
|
||||
|
||||
[b]About[/b]
|
||||
Survial Minetest server with hunger, vacuum and xp.
|
||||
The main aspects are:
|
||||
[list]
|
||||
[*] Space-exploration (with jumpdrive: [url]https://forum.minetest.net/viewtopic.php?f=11&t=20073[/url])
|
||||
[*] Mining on the moon (very rich on ores but hard to survive)
|
||||
[*] Missions (in-game creation with: [url]https://forum.minetest.net/viewtopic.php?f=11&t=20125[/url])
|
||||
[*] Experience points and statistics (Mod: [url]https://forum.minetest.net/viewtopic.php?f=11&t=20124[/url] Statistics: [url]https://pandorabox.io/highscore[/url])
|
||||
[*] Admin shop for ores (currency) and Player-Shops for other items[/list]
|
||||
|
||||
You spawn at the sky-platform above earth. On this platform is the admin-shop and the priv-building.
|
||||
There are a few Teleporters up there which lead you to earth,moon or deep space.
|
||||
On earth and under ground spawn dangerous monsters, best to avoid them or gear up!
|
||||
Buildings on earth can be viewed in the realtime map: [url]https://pandorabox.io/maphttps://pandorabox.io/map/#-1782.25/493.5/10[/url]
|
||||
|
||||
[b]Moon/Mars/Space[/b]
|
||||
Everything above y 1000 has no atmosphere/air, you have to use a spacesuit to survive there.
|
||||
Also: torches won't stick and if you build a building there you have to make it air-thight (full blocks and corners) and use the air-pump (HV-machine)
|
||||
|
||||
[b]Spaceship[/b]
|
||||
You are encouraged to build your own spaceship for mining on the Moon and traveling among the stars. A basic layout and inspiration can be found on the BuckarooBanzai travelnet ([url]https://pandorabox.io/map/#-1789.03125/472.5/13[/url]) at Station [b]MSS Behemoth[/b]
|
||||
|
||||
[b]Tutorial section[/b]
|
||||
Also on the spawn platform is a Tutorial-teleporter with various player-contributed Tutorials (mesecons, space, etc)
|
||||
|
||||
[b]Chat commands[/b]
|
||||
[list]
|
||||
[*] [b]/spawn[/b] teleports you spawn (shop at skyplatform)
|
||||
[*] [b]/home[/b] /sethome
|
||||
[*] [b]/mission_abort[/b] aborts the current mission (also in unified inv as button)
|
||||
[*] [b]/tpr (playername)[/b] Teleport request to player
|
||||
[*] [b]/tphr (playername)[/b] Teleport request to bring a player to your position[/list]
|
||||
|
||||
[b]Rules (brief version)[/b]
|
||||
[list]
|
||||
[*] Simply: [url=https://en.wikiquote.org/wiki/Bill_%26_Ted%27s_Excellent_Adventure]Be excellent to each other[/url][/list]
|
||||
|
||||
[b]Rules (for those who need clear, spelled out boundaries)[/b]
|
||||
[list]
|
||||
[*] NO Hacking
|
||||
[*] NO Griefing
|
||||
[*] NO Stealing
|
||||
[*] NO obstructing bones
|
||||
[*] NO spamming the chat[/list]
|
||||
|
||||
[b]Active Moderators[/b]
|
||||
[list]
|
||||
[*] IcemanDs
|
||||
[*] Adventurer
|
||||
[*] Denis2
|
||||
[*] DarkRoy[/list]
|
||||
|
||||
[b]Mods[/b]
|
||||
|
||||
[spoiler]Some installed mods:
|
||||
|
||||
[list]
|
||||
[*] Technic
|
||||
[*] Advanced trains
|
||||
[*] Missions
|
||||
[*] Homedecor
|
||||
[*] Vacuum
|
||||
[*] Jumpdrive
|
||||
[*] xp
|
||||
[*] pipeworks
|
||||
[*] mesecons[/list][/spoiler]
|
||||
|
||||
[b]Server[/b]
|
||||
|
||||
[list]
|
||||
[*] HP Proliant Intel(R) Xeon(R) CPU E3-1225 v5 @ 3.30GHz
|
||||
[*] 24 GB Ram
|
||||
[*] Postgres Database
|
||||
[*] Minetest-Version 0.4.17.1
|
||||
[*] Incremental backup and offsite sync[/list]
|
||||
|
||||
[b]Map server[/b]
|
||||
|
||||
The realtime map can be accessed with: [url]https://pandorabox.io/map/#-1782.25/493.5/10[/url]
|
||||
[img]http://imgur.com/cv4pl6Cl.png[/img]
|
||||
|
||||
[b]Roadmap[/b]
|
||||
[list]
|
||||
[*] Add procedural generated space-ships in space with aliens and loot on board
|
||||
[*] Provide a backup to players in case something happens to the admin (weekly torrent?)
|
||||
[*] Add a space battle zone in which battle-ship can fight each other (https://github.com/pandorabox-io/spacecannon)[/list]
|
||||
|
||||
[b]Screenshots[/b]
|
||||
|
||||
[spoiler]Old Spawn house with initial mission
|
||||
[img]https://pandorabox.io/img/screenshot_20180615_181459.png[/img]
|
||||
|
||||
More missions
|
||||
[img]https://pandorabox.io/img/screenshot_20180615_181421.png[/img]
|
||||
|
||||
Cloud platform (shop, privs, level teleporter)
|
||||
[img]https://pandorabox.io/img/screenshot_20180615_181519.png[/img]
|
||||
|
||||
Castle
|
||||
[img]https://pandorabox.io/img/screenshot_20180615_181441.png[/img]
|
||||
|
||||
Technic city
|
||||
[img]https://pandorabox.io/img/screenshot_20180615_181728.png[/img]
|
||||
|
||||
Moon resources and spaceship (jump-capable:)
|
||||
[img]https://pandorabox.io/img/screenshot_20180615_182026.png[/img][/spoiler]
|
|
@ -1,95 +0,0 @@
|
|||
|
||||
# Disaster recovery procedure
|
||||
|
||||
## Packages
|
||||
```bash
|
||||
apt install git docker.io docker-compose
|
||||
```
|
||||
|
||||
## Hostname
|
||||
```bash
|
||||
echo pandorabox > /etc/hostname
|
||||
```
|
||||
|
||||
## Partitions
|
||||
```
|
||||
Disk /dev/sda: 480 GiB, 515396075520 bytes, 1006632960 sectors
|
||||
Units: sectors of 1 * 512 = 512 bytes
|
||||
Sector size (logical/physical): 512 bytes / 512 bytes
|
||||
I/O size (minimum/optimal): 512 bytes / 512 bytes
|
||||
Disklabel type: gpt
|
||||
Disk identifier: 7C397D76-5FDF-AD44-BA49-97EB4FA4D146
|
||||
|
||||
Device Start End Sectors Size Type
|
||||
/dev/sda1 2048 6143 4096 2M BIOS boot
|
||||
/dev/sda2 6144 2103295 2097152 1G Linux filesystem
|
||||
/dev/sda3 2103296 20971486 18868191 9G Linux filesystem
|
||||
/dev/sda4 20971520 1006630912 985659393 470G Linux LVM
|
||||
```
|
||||
|
||||
## LVM
|
||||
```
|
||||
pvcreate /dev/sda4
|
||||
vgcreate vg-01 /dev/sda4
|
||||
lvcreate -L 400G -n data vg-01
|
||||
mkfs.ext4 /dev/mapper/vg--01-data
|
||||
mkdir /data
|
||||
```
|
||||
|
||||
## /etc/fstab
|
||||
```
|
||||
/dev/mapper/vg--01-data /data ext4 defaults,noatime 0 0
|
||||
```
|
||||
|
||||
## Directories
|
||||
* mt-files in /data/pandorabox.io
|
||||
|
||||
## Docker config
|
||||
|
||||
/etc/docker/daemon.json:
|
||||
```json
|
||||
{
|
||||
"ipv6": true,
|
||||
"fixed-cidr-v6": "2001:db8:1::/64"
|
||||
}
|
||||
```
|
||||
|
||||
Autostart:
|
||||
```bash
|
||||
systemctl enable docker
|
||||
```
|
||||
|
||||
## Git config
|
||||
/root/.gitconfig
|
||||
```
|
||||
[user]
|
||||
mail = thomas@rudin.io
|
||||
name = Thomas Rudin
|
||||
email = thomas@rudin.io
|
||||
|
||||
```
|
||||
|
||||
## Stacks
|
||||
|
||||
```bash
|
||||
docker login registry.rudin.io
|
||||
```
|
||||
|
||||
### Terminator
|
||||
```bash
|
||||
cd /data && git clone https://git.rudin.io/infra/terminator.git
|
||||
docker network create terminator
|
||||
cd /data/terminator && docker-compose up -d
|
||||
```
|
||||
|
||||
### Minetest
|
||||
```bash
|
||||
cd /data/pandorabox.io && docker-compose up -d
|
||||
```
|
||||
|
||||
## Crontab
|
||||
```
|
||||
# m h dom mon dow command
|
||||
* * * * * /data/pandorabox.io/jobs/update-worldmods.sh
|
||||
0 * * * * /data/pandorabox.io/jobs/update-mapserver-colors.sh
|
||||
```
|
|
@ -21,7 +21,7 @@ List of services used by the server
|
|||
### Highscore
|
||||
|
||||
* URL: https://pandorabox.io/highscore
|
||||
* Repository: https://github.com/thomasrudin-mt/xp-highscore/
|
||||
* Repository: https://github.com/BuckarooBanzay/xp-highscore/
|
||||
* Tech-stack: nodejs, html, javascript, sql
|
||||
|
||||
### Webmail
|
||||
|
@ -29,4 +29,3 @@ List of services used by the server
|
|||
* URL: https://pandorabox.io/webmail
|
||||
* New Repository: https://github.com/minetest-mail/mail
|
||||
* Tech-stack: nodejs, html, javascript, lua
|
||||
|
||||
|
|
Loading…
Reference in New Issue