• 0 Posts
  • 58 Comments
Joined 1 year ago
cake
Cake day: August 6th, 2023

help-circle
  • It didn’t, but due to unrelated reasons. The root FS was mounted r/w, so the regular IO eventually overwhelmed the network’s ability to copy stuff.

    But no worries, a reboot later, with unmounted FS, I finished the same thing.

    Copying the disk of a running system appears to be fine in LVM. Copying is done block-by-block, and the only thing it has to do to make it atomic is: in case of a conflict (writing into a block that’s being copied right now), postpone writing to a block until it’s copied, then finish the write in the new location. Or else, abort the copy, finish the write, then copy again.








  • If you have a place to host Forgejo/Gitea, you have a place to store a Git server. Set it up like this:

    $ git clone --bare myrepo myrepo.bare
    $ scp -r myrepo.bare srv:
    $ cd myrepo
    $ git remote add origin srv:myrepo.bare
    # or
    $ git remote set-url origin srv:myrepo.bare
    

    Now git push etc work similar to GitHub, but you’re using your server (named srv in SSH config, as shown in my previous post) as the remote storage.

    Selfhosted Gitea is a way to get a wiki, bug tracker or whatnot - collaborate, for example, but it’s not necessary to have a Git server for your personal use.