cizra

joined 1 year ago
[–] [email protected] 24 points 1 day ago* (last edited 1 day ago) (14 children)

So true. Sway forever.

[–] [email protected] 1 points 2 days ago

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.

[–] [email protected] 18 points 3 days ago* (last edited 3 days ago) (1 children)

BZ2-ing up a terabyte of zeroes (back when a TB was more than people commonly had, then zipping that file up together with another file, to bypass virus scanners in emails that prevent emailing .exe files.

I've also seen a self-referential .zip file somewhere that contains itself.

[–] [email protected] 2 points 3 days ago (1 children)

I use rsync with a custom shell script to manage the number of incremental copies. You'll probably prefer something less janky.

[–] [email protected] 2 points 3 days ago (3 children)

Does your FS support online resizing? EXT4 doesn't, so you'd have to use an installer stick.

Be super careful about partition sizes. I once tried to shrink my FS to an exact size, then shrink the LV to the same size - it ended up corrupting my FS. After that time, I started undersizing the FS, then resizing LV, finally expanding the FS again.

Have backups.

[–] [email protected] 4 points 3 days ago (5 children)

I'd recommend a Linux installer on a memory stick, instead. It's bound to have less network lag.

[–] [email protected] 5 points 3 days ago (7 children)

I needed to redo partitions, but didn't want to reboot.

[–] [email protected] 14 points 3 days ago (11 children)

Mounting a Samba share and moving my LVM pvolumes of / onto a losetup'ed file on it, while running the system. Bass ackwards.

[–] [email protected] 4 points 4 days ago (1 children)

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.

[–] [email protected] 11 points 5 days ago (4 children)

I started running my own Gitea instance because I wanted a private place to host my Obsidian notes.

I don't have the time to read the article now, but permit a question: what do you use Gitea for?

I'm holding my dotfiles on a SSH server, clone/push over SSH, and it's enough to do Git. I don't need a ticket system, or wiki or anything (I use plaintext notes).

$ cat ~/.ssh/config
Host srv
  Hostname srv.mywhatever.com

$ git clone srv:/path/to/repo
$ cd repo
$ git push
[–] [email protected] 2 points 6 days ago

It's not compulsory, so I get not to do it.

 

A fern is a plant. A plant is supposed to get pollinated by bees and whatnot. Yet ferns have sperm swimming around and fertilizing the lady-bits of other fern.

Mind blown.

view more: next ›