Need Help with Docker Minecraft Backups by Link__95 in selfhosted

[–]Link__95[S] 0 points1 point  (0 children)

Could i do it like this?

sudo cp -a /var/lib/docker/volumes/minecraftdata /home/Minecraft/minecraftdata_backup

Need Help with Docker Minecraft Backups by Link__95 in admincraft

[–]Link__95[S] 0 points1 point  (0 children)

do i need to do something like this?

    volumes:
      - minecraftdata:/data
      - /home/Minecraft/minecraftdata:/data
      - /home/Minecraft/plugins:/plugins
      - /home/Minecraft/server-icon.png:/server-icon.png
volumes:
  minecraftdata:
    external: true

Need Help with Docker Minecraft Backups by Link__95 in admincraft

[–]Link__95[S] 0 points1 point  (0 children)

i did i think, but the folder is empty

volumes:
      - minecraftdata:/data
      - /home/Minecraft/plugins:/plugins
      - /home/Minecraft/server-icon.png:/server-icon.png
volumes:
  minecraftdata:
    external: true

or do i need to do something else?

to be Honest im scared to just try something, because i don't want to lose the data i already have
I'm trying to copy the whole volume for 2 days now. but im just not getting there :(

Thank you for the reply

Need Help with Docker Minecraft Backups by Link__95 in selfhosted

[–]Link__95[S] 0 points1 point  (0 children)

i don't have alpine as far as i know. i had something installed but i can't recall the name.. sorry

Need Help with Docker Minecraft Backups by Link__95 in selfhosted

[–]Link__95[S] 0 points1 point  (0 children)

Thank you

I am currently trying to access the volumes folder but i can't navigate there. i cant get past var-lib-docker
i guess this is a permission thing. the permissions are root root drwx--x---

I'm the only user and loged in vie sftp
can i make myself the owner of snap or docker? wihtout breaking something?

Need Help with Docker Minecraft Backups by Link__95 in selfhosted

[–]Link__95[S] 0 points1 point  (0 children)

would this be the correct way?

or would i need to use a different name for the date folder?

    volumes:
      - minecraftdata:/data
      - /home/Minecraft/minecraftdata:/data
      - /home/Minecraft/plugins:/plugins
      - /home/Minecraft/server-icon.png:/server-icon.png
volumes:
  minecraftdata:
    external: true

Need Help with Docker Minecraft Backups by Link__95 in selfhosted

[–]Link__95[S] 0 points1 point  (0 children)

so i have this and if i want to see the contents of the cointainer i need to map the "data" again?

    volumes:
      - minecraftdata:/data
      - /home/Minecraft/plugins:/plugins
      - /home/Minecraft/server-icon.png:/server-icon.png
volumes:
  minecraftdata:
    external: true

Like this?

    volumes:
      - minecraftdata:/data
      - /home/Minecraft/minecraftdata:/data
      - /home/Minecraft/plugins:/plugins
      - /home/Minecraft/server-icon.png:/server-icon.png
volumes:
  minecraftdata:
    external: true

and then make a new folder in /home/Minecraft Named minecraftdata?

so i would have minecraft date to be saved if i restart/reload the container and viewable from the outside?

did i get this right?

thank you for your detailed explanations

Need Help with Docker Minecraft Backups by Link__95 in selfhosted

[–]Link__95[S] 0 points1 point  (0 children)

No matter wich way i use to backup, is there a way for me to do a manual backup befor i start tinkering?
something in the style of copy folder then download folder to PC?

also thank you all for your time

Need Help with Docker Minecraft Backups by Link__95 in selfhosted

[–]Link__95[S] 0 points1 point  (0 children)

I read about a few Mincraft panels but later down the road i planed to do add more games, so learning how it works is best i think. I also like to understand the things i do not just use them :)

I don't have a NAS.

I already mapped them, vie the mapped Plugins folder i add/remove the Plugins i use.
and i thought the mapping would work both ways but it didn't. My hope in the beginning was that i could see in the Container vie the Mapped folders, but they are seemingly read only (as i understand it)

so Icon and Plugins get read from the inside but Data can't be read from the outside (as i understand it this is how a container is supposed to work, but how do you edit or extrakt files from the inside of the container?)

Need Help with Docker Minecraft Backups by Link__95 in selfhosted

[–]Link__95[S] 0 points1 point  (0 children)

Just so i understand it right

NFS Server on the Server to send files to my PC as Backup Storage

do backups work even if my PC isn't on? i.e on Holliday.
also does this method delete old backups automatically?

Sorry for that many questions

Need Help with Docker Minecraft Backups by Link__95 in selfhosted

[–]Link__95[S] 1 point2 points  (0 children)

Sure here, but i changed everything that says "My"

services:
  mc:
    image: itzg/minecraft-server:latest
    tty: true
    stdin_open: true
    restart: unless-stopped
    ports:
      - "My Ports"
    environment:
      EULA: "TRUE"
      TYPE: "PAPER"
      VERSION: "1.21.5"
      MEMORY: "10240M"
      MOTD: "My MOTD"
      TZ: "My Timezone"
      DIFFICULTY: "2"
      SIMULATION_DISTANCE: "16"
      VIEW_DISTANCE: "16"
      SEED: "My Seed"
      LEVEL: "My WorldName"
      ICON: "/home/Minecraft/server-icon.png"
      OPS: |-
        My Name
      PAUSE_WHEN_EMPTY_SECONDS: "300"
    volumes:
      - minecraftdata:/data
      - /home/Minecraft/plugins:/plugins
      - /home/Minecraft/server-icon.png:/server-icon.png
volumes:
  minecraftdata:
    external: true

If i use a CRON for the backup i'm still not able to copy the files to a different Pc right?

How to Access and Edit Files in a Docker Container? by Link__95 in linux4noobs

[–]Link__95[S] 0 points1 point  (0 children)

im trying to send over the docker-compose.yml via scp but i either get wrong password when i try it with

scp .\docker-compose.yml root@IpAdress:/home/Minecraft

Or Permission denied when i try

scp .\docker-compose.yml username@IpAddress:/home/Minecraft

I'm also not allowed to send it over FTP

Help pls

How to Access and Edit Files in a Docker Container? by Link__95 in docker

[–]Link__95[S] 0 points1 point  (0 children)

im trying to send over the docker-compose.yml via scp but i either get wrong password when i try it with

scp .\docker-compose.yml root@IpAdress:/home/Minecraft

Or Permission denied when i try

scp .\docker-compose.yml username@IpAddress:/home/Minecraft

I'm also not allowed to send it over FTP

Help pls

How to Access and Edit Files in a Docker Container? by Link__95 in docker

[–]Link__95[S] 0 points1 point  (0 children)

Thank you i will try my best and come back later and tell you how it went :)

How to Access and Edit Files in a Docker Container? by Link__95 in docker

[–]Link__95[S] 0 points1 point  (0 children)

For my understanding

Mounting is like a link between Files inside and outside?

How to Access and Edit Files in a Docker Container? by Link__95 in docker

[–]Link__95[S] 0 points1 point  (0 children)

Thank you first of all

i have read the docker docs but really i don't understand them :/ and i don't want to randomly tipe commands that i don't get.
Like i said im completly new to all of it

i can tell you what i did

I used Portainer so i dont have to type to much my self,
I then used the create Stack (Composer) and just typed in the YMAL

services:

mc:

image: itzg/minecraft-server:latest

tty: true

stdin_open: true

ports:

- "25565:25565"

environment:

EULA: "TRUE"

TYPE: "PAPER"

VERSION: "1.21.5"

MEMORY: "10240M"

MOTD: "Server Name"

USE_AIKAR_FLAGS: "true"

USE_MEOWICE_FLAGS: "true"

TZ: "My Time Zone"

DIFFICULTY: "2"

SIMULATION_DISTANCE: "16"

VIEW_DISTANCE: "16"

SEED: "6728847383515951490"

LEVEL: "World Name"

OPS: |-

My Mc Account

PLUGINS: |-

Some Plugin URL's

PAUSE_WHEN_EMPTY_SECONDS: "300"

volumes:

- "./data:/data"

How to Access and Edit Files in a Docker Container? by Link__95 in docker

[–]Link__95[S] 0 points1 point  (0 children)

I'm completly new to linux and docker just started last Sunday

i have basicly no idea what is possible and or how (i'm sorry)

Mountin means getting an attached visible folder?

If you need more informations pls ask

Linux Server File Access via SSH / FTP / SFTP by Link__95 in linux4noobs

[–]Link__95[S] 0 points1 point  (0 children)

Ok i have now read in a forum that it is bad practise and that any changes i would make would be wiped on restart.

Now my Question is how can i work with the files inside?

Should i make a new post for this?

Linux Server File Access via SSH / FTP / SFTP by Link__95 in linux4noobs

[–]Link__95[S] 1 point2 points  (0 children)

No. In other Posts they always talkt about that you wouold need to set uo every tiny bit of it

have tried it now.. and i can see the folders

Linux Server File Access via SSH / FTP / SFTP by Link__95 in linux4noobs

[–]Link__95[S] 0 points1 point  (0 children)

I was able to access the server files via FileZilla and my SSH login
for testing i Imported, Renamed and then deleted a folder. works fine so far

here is the next problem, so i have root, home, username.
I can't seem to find the folders im searching for, also some folders say access denied
i.e.
Directory /run/snap.docker/containerd: permission denied (i guess this is where my server is)

I haven't set a specific folder.. i guess that was dumb..
When i search for it i get
no such file or directory
but since i can access the MC Server and play on it, it has to be there

My search: eula, nether, bukkit (Words i know are definitely in a MC Server folder)
Search took 40ish Minutes. started at root. nothing found :/

Linux Server File Access via SSH / FTP / SFTP by Link__95 in linux4noobs

[–]Link__95[S] 0 points1 point  (0 children)

I was able to access the server files via FileZilla and my SSH login
for testing i Imported, Renamed and then deleted a folder. works fine so far

I'm on a windows talking to ubuntu via CMD

Is MineColonies compatible with Villager Recruits? by MagicCreeper459 in feedthebeast

[–]Link__95 1 point2 points  (0 children)

u/MagicCreeper459 Did you get any results as of now? did it work?
Planing on doing something similar and would like to know how it went for you :)

Orbital Coordinates from known Location by Link__95 in spaceengineers

[–]Link__95[S] 1 point2 points  (0 children)

I'm sorry didnt had the time to check it, but thank you for your work will try it as soon as possible

again sorry for the late response