Git Product home page Git Product logo

Comments (5)

bradrydzewski avatar bradrydzewski commented on June 18, 2024 1

Git repositories are stored on disk at /data inside the container. Based on the configuration you posted, you are mounting /data (inside the container) to /home/gitness/data (outside the container). So you would backup /home/gitness/data on your host to backup Gitness. To restore a Gitness backup, you would simply restore the contents of the disk back to /home/gitness/data

If you have any follow-up questions you can post to our Slack channel
https://docs.gitness.com/support#slack

from gitness.

htcosta avatar htcosta commented on June 18, 2024

You should be able to backup your data by copying the contents of “/home/gitness/data” in your host (not the container).

Please read :
https://docs.gitness.com/administration/configuration
https://docs.docker.com/storage/bind-mounts/

I am not sure if gitness already has this functionality on the UI/CLI, but and export or import field under the Administration tab / CLI flag could be added to add this extra functionality, it’s a easy implementation.

from gitness.

matheusoreis avatar matheusoreis commented on June 18, 2024

It's not there, I want to have access to the source code of the projects, is that possible?

from gitness.

34code avatar 34code commented on June 18, 2024

I've been backing up /home/gitness nightly.. Now its the moment of truth to recover from backup.. gonna test today and report back if above worked.. I'm particularly curious since my backup medium (hetzner storage box) does not support symlinks for some reason..

mv: cannot create symbolic link '/root/backup/08-02-2024/repos/f1/in/chorootih83xv8es9ix26r2c74pq4w4b2x9cx3.git/hooks/pre-receive': Operation not supported

from gitness.

34code avatar 34code commented on June 18, 2024

I can confirm it works! Just needed to restart container after moving back up sqlite db and repos to /home/gitness!

from gitness.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.