Guess who just nuked the work of about an hour with a git stash command he doesn't even know what he did wrong with.
-
Guess who just nuked the work of about an hour with a git stash command he doesn't even know what he did wrong with.

-
@mmeier Ah,
git trash.@wq Turns out no, issue was purely with Magit. It's "stash" commands don't actually use stash in the background.
Instead, it runs command like this:
0 git … update-ref --create-reflog -m On\ user-creation\:\ 2268f86\ DB\ testing\:\ Introduce\ helper\ for\ migrating\ up refs/stash 25b55a5b648b1703eb8bb89117d61cc16f6e2d6f ''
Followed by a git clean.
WTAF?!
-
@wq Turns out no, issue was purely with Magit. It's "stash" commands don't actually use stash in the background.
Instead, it runs command like this:
0 git … update-ref --create-reflog -m On\ user-creation\:\ 2268f86\ DB\ testing\:\ Introduce\ helper\ for\ migrating\ up refs/stash 25b55a5b648b1703eb8bb89117d61cc16f6e2d6f ''
Followed by a git clean.
WTAF?!
-
Guess who just nuked the work of about an hour with a git stash command he doesn't even know what he did wrong with.

@mmeier oh no! No scheduled restic backup or so in place?
Hope you can recover some things at least partially, maybe from brain memory
-
@james
Yeah, I was also really confused. I don't use stashes too often, but I was pretty sure that I knew how they worked. And that they actually did store unversioned files with the "-u" flag. Took me quite a bit to realize that Magit was doing some weird stuff in the background and that's why stash was working differently than the command line variant. -
@mmeier oh no! No scheduled restic backup or so in place?
Hope you can recover some things at least partially, maybe from brain memory
@stefan No, sadly. I only do daily backups of my home dir, so that hour was lost. Luckily, I still had the file with the test code open, and that gave me enough of a memory crutch to reproduce everything I had written reasonably quickly.
-
@stefan No, sadly. I only do daily backups of my home dir, so that hour was lost. Luckily, I still had the file with the test code open, and that gave me enough of a memory crutch to reproduce everything I had written reasonably quickly.
@mmeier good to read.
btw. what are you using for your home dir backup?I‘m using restic or on the Mac ArqBackup
-
@mmeier good to read.
btw. what are you using for your home dir backup?I‘m using restic or on the Mac ArqBackup
@stefan Yupp, exactly the same for me. I'm using restic for both, my home dir and all of my Homelab backups. In the first stage, everything gets backed up into S3 buckets on my Ceph storage cluster, one bucket per Homelab app and per host, currently my desktop and laptop, which both get not only the home but also /etc backed up, because I've got neither under Ansible.
Do you do offsite backups? That's currently still entirely missing for me, besides my unencrypted pw manager in a bank vault.
-
@stefan Yupp, exactly the same for me. I'm using restic for both, my home dir and all of my Homelab backups. In the first stage, everything gets backed up into S3 buckets on my Ceph storage cluster, one bucket per Homelab app and per host, currently my desktop and laptop, which both get not only the home but also /etc backed up, because I've got neither under Ansible.
Do you do offsite backups? That's currently still entirely missing for me, besides my unencrypted pw manager in a bank vault.
@mmeier sounds good. Everything gets backed up to my Synology NAS. From there I do encrypted backups to a cheap hetzner storagebox in Germany via the built-in Hyperbackup.
was using Wasabi S3 storage for some years before switching to Hetzner.
Storage Box: Günstiger Online Speicher und Datenarchivierung
Günstigen Online Speicher von Hetzner: Perfekt für Backup Speicher und Datenarchivierung ✓ höchste Sicherheit ✓ DSGVO-konform ✓ 100 % grüne Energie
(www.hetzner.com)
-
@mmeier sounds good. Everything gets backed up to my Synology NAS. From there I do encrypted backups to a cheap hetzner storagebox in Germany via the built-in Hyperbackup.
was using Wasabi S3 storage for some years before switching to Hetzner.
Storage Box: Günstiger Online Speicher und Datenarchivierung
Günstigen Online Speicher von Hetzner: Perfekt für Backup Speicher und Datenarchivierung ✓ höchste Sicherheit ✓ DSGVO-konform ✓ 100 % grüne Energie
(www.hetzner.com)
@stefan Are you happy with the storagebox? It's at the top of my for when I finally get around to implementing offsite backups.
-
@stefan Are you happy with the storagebox? It's at the top of my for when I finally get around to implementing offsite backups.
-
@stefan Are you happy with the storagebox? It's at the top of my for when I finally get around to implementing offsite backups.
-
R relay@relay.mycrowd.ca shared this topic