1

Have anyone created a git backup machine? Basically a machine in my network needs to be able to recieve git pushes from another computer.

Comments
  • 0
    Wouldnt it be incredible inefficient?.
  • 0
    @stop for experience? Also give me the reasons why that would be inefficent.
  • 0
    @24th-Dragon yes, please
  • 0
    @24th-Dragon ok here is the catch, I need to do it via termux 😛 (no root enabled)

    Is just enabling sshd enough?
  • 1
    @melezorus34 git is based on textbased diffs. Borgbackup for example can use ssh and also compress and encrypt it. For borg you only need to access the space where the backup lies.
  • 1
    @stop git works over ssh too
  • 1
    GitLab -> self host + pull from "live repo" on a regular basis. Then use incremental backup software.
  • 0
    You mean GitHub / GitLab ?
  • 1
    start_git_monitor_daemon() {
    local repodir=${1:?Missing repo directory}
    cd "${repodir}" || {
    echo "cannot access repo: ${repodir}" >&2;
    return 1;
    }

    while :; do
    git fetch && git pull;
    sleep 60;
    done
    }
  • 0
    @juanchdzl this will be on my local network, not on internet.

    @netikras as I said not the local computer itself either.
  • 0
    Probs sshd will do enough 😂
Add Comment