this post was submitted on 08 Mar 2025
12 points (100.0% liked)

Linux

7029 readers
199 users here now

A community for everything relating to the GNU/Linux operating system

Also check out:

Original icon base courtesy of [email protected] and The GIMP

founded 2 years ago
MODERATORS
 

I am new to podman, so please forgive me that I might be asking about the basics.

Today, I decided to migrate forgejo into a container, to harden my "server". For this, I backed up forgejo using forgejo dump, which gave me a ZIP file. Now I am lost on putting it into the podman container..

Basically, I want to know:

  1. How do I access files inside podman container, especially one created through quadlet? Does the quadlet part make a difference?
  2. How can I restore forgejo backup created by forgejo dump? Despite this being seemingly common task, there seems to be no documentation about how to restore the backup.

I have been struggling a lot with setting it up. Until moments ago, I had great difficulty debugging networking issue from firewall, which was quite exhausting. So I would like to ask help first for this problem. If anyone could give some pointers or help, it would be greatly appreciated!

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 2 points 1 month ago* (last edited 1 month ago)

Havent used forgejo, but -

Is the zip file a dump of the filesystem / data / config the application needs?

You could want to extract that somewhere, and mount the directory into the container.

https://docs.podman.io/en/latest/markdown/podman-volume-mount.1.html

so for example you extract to /home/forgejo you would map this to a container in podman

Stack to help? https://stackoverflow.com/questions/69298356/how-to-mount-a-volume-from-a-local-machine-on-podman/71576242#71576242