Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Gogs
  3. Getting gogs backup

Getting gogs backup

Scheduled Pinned Locked Moved Gogs
5 Posts 2 Posters 1.1k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    ntnsndr
    wrote on last edited by ntnsndr
    #1

    I'm trying to migrate Gogs to Gitea. I've had too many issues with the limitations of Gogs and need something a bit more fully featured.

    I'm trying to follow these instructions but am getting stuck on the attempt to create a backup file:

    root@90d8b446-14e3-45a1-87e0-e669aa2581c0:/home/git/gogs# ./gogs backup
    2024/04/16 16:54:13 [ WARN] Custom config "/home/git/gogs/custom/conf/app.ini" not found. Ignore this warning if you're running for the first time
    2024/04/16 16:54:13 [FATAL] [gogs.io/gogs/gogs.go:40 main()] Failed to start application: init configuration: create SSH root directory: mkdir /root/.ssh: read-only file system
    root@90d8b446-14e3-45a1-87e0-e669aa2581c0:/home/git/gogs# mkdir /root/.ssh
    mkdir: cannot create directory ‘/root/.ssh’: Read-only file system
    

    How can I run this backup command in the Cloudron terminal environment?

    Apologies for my ignorance, and thank you in advance.

    1 Reply Last reply
    1
    • N Offline
      N Offline
      ntnsndr
      wrote on last edited by
      #2

      I'd also be grateful for any other tips on how best to migrate from Gogs to Gitea.

      1 Reply Last reply
      0
      • N Offline
        N Offline
        ntnsndr
        wrote on last edited by
        #3

        Update. I got some guidance on getting this running from the Gitea Cloudron docs, but I am still getting an error when trying to create a backup:

        root@90d8b446-14e3-45a1-87e0-e669aa2581c0:/home/git# sudo -u git /home/git/gogs/gogs backup /run/gogs/app.ini 
        2024/04/16 19:07:56 [ WARN] Custom config "/home/git/gogs/custom/conf/app.ini" not found. Ignore this warning if you're running for the first time
        2024/04/16 19:07:56 [FATAL] [gogs.io/gogs/gogs.go:40 main()] Failed to start application: set engine: create 'xorm.log': init: init file "/home/git/gogs/log/xorm.log": open file "/home/git/gogs/log/xorm.log": open /home/git/gogs/log/xorm.log: no such file or directory
        
        1 Reply Last reply
        0
        • girishG Do not disturb
          girishG Do not disturb
          girish
          Staff
          wrote on last edited by
          #4

          @ntnsndr It seems the CLI wants GOGS_CUSTOM env var. I have set this in the latest package.

          After updating it, can you try https://docs.cloudron.io/apps/gogs/#cli ?

          N 1 Reply Last reply
          0
          • girishG girish

            @ntnsndr It seems the CLI wants GOGS_CUSTOM env var. I have set this in the latest package.

            After updating it, can you try https://docs.cloudron.io/apps/gogs/#cli ?

            N Offline
            N Offline
            ntnsndr
            wrote on last edited by
            #5

            @girish Thank you, that worked. Though now I'm realizing that I'm not sure if this migration process will work, because the Gogs version we are running is newer than the upgrade process allows:( But glad we can now run these commands.

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Bookmarks
            • Search