Works for docker compose files
Save files
tar -cf docker.tar /var/lib/docker/volumes /opt/docker-containers/ # Or where the docker containers areMove them to the new server via scp and run these commands.
| # Only allow user <user> | |
| AllowUsers <user> | |
| # Auth global | |
| PasswordAuthentication no | |
| PubkeyAuthentication yes | |
| PermitRootLogin no | |
| # Localnets access | |
| Match Address 10.0.0.0/8,172.16.0.0/12,192.168.0.0/16,127.0.0.1/32 |
Works for docker compose files
Save files
tar -cf docker.tar /var/lib/docker/volumes /opt/docker-containers/ # Or where the docker containers areMove them to the new server via scp and run these commands.
| ! | |
| ! Title: Adguard Allowlist | |
| ! | |
| # [discord.com] | |
| 127.0.0.1 click.discord.com | |
| # [ojrq.net] | |
| 127.0.0.1 www.ojrq.net |
| ! | |
| ! Title: Windows Blocklist | |
| ! | |
| # [microsoft.com] | |
| 127.0.0.1 licensing.mp.microsoft.com | |
| # [windows.com] | |
| 127.0.0.1 client.wns.windows.com |
| ! | |
| ! Title: Battleye Blocklist | |
| ! | |
| # [battleye.com] | |
| 127.0.0.1 paradise-s1.battleye.com | |
| 127.0.0.1 test-s1.battleye.com | |
| 127.0.0.1 paradiseenhanced-s1.battleye.com |
| # Configuration file for ddclient generated by debconf | |
| # | |
| # /etc/ddclient.conf | |
| protocol=dyndns2 | |
| use=web, web=ip4only.me | |
| server=dynv6.com | |
| ssl=yes | |
| login=none | |
| password='password' |
This setup provides a multi-instance Minecraft server using systemd templates.
adduser --disabled-password --gecos "" minecraft/usr/lib/systemd/system/minecraft@.service
| tar cvf - /path/to/file | gzip -9 - > filename.tar.gz |
| > /boot/firmware/config.txt | |
| # Disable the PWR LED | |
| dtparam=pwr_led_trigger=none | |
| dtparam=pwr_led_activelow=on | |
| # Disable the Activity LED | |
| dtparam=act_led_trigger=none | |
| dtparam=act_led_activelow=off |
| SELFOLDER="/foldername/" tar cf - ${SELFOLDER} -P | pv -s $(du -sb ${SELFOLDER} | awk '{print $1}') | gzip > ${SELFOLDER}.tar.gz |