luthis

joined 2 years ago
[–] luthis@lemmy.nz 6 points 2 years ago (1 children)

Yes.. I just realised that X has two meanings now. Wait.. 3.

[–] luthis@lemmy.nz 4 points 2 years ago* (last edited 2 years ago)

Here's how I would approach this problem:

Dedicate 110% of my time to writing code to analyse every transaction and categorise it, and export to whatever format is required.
Use it for about 2 months, maintaining the code and adding different categories.
Quit using it after 3 months because my habits changed and just deal with the ambiguous financials indefinitely.

I hope there is better advice here.

[–] luthis@lemmy.nz 15 points 2 years ago* (last edited 2 years ago) (2 children)

Try a squeeze of lemon, half an orange, a little honey, a half-pinch of salt (it's really that little salt, it is just the tiniest bit to bring out the flavour) and about 2 drops of lysergic acid diethylamide. You'll thank me later.

[–] luthis@lemmy.nz 10 points 2 years ago (5 children)

I love it when corporations get told to go fuck themselves, I just wish it was by someone I actually respected.

[–] luthis@lemmy.nz 20 points 2 years ago* (last edited 2 years ago) (4 children)

'running the X into the ground' actually has a term, it's called elonning.

[–] luthis@lemmy.nz 1 points 2 years ago

Ok time to investigate ZFS

[–] luthis@lemmy.nz 1 points 2 years ago (1 children)

For fun and learning. It's just another tool to go with file level backup.

And the backup for this is 40mb and really fast, but backing up files even when compressed would be hundreds of GB, maybe terabytes, and then you're paying for that amount of storage online somewhere, uploading for hours..

[–] luthis@lemmy.nz 1 points 2 years ago (1 children)

Great tips, thanks!

I'm using ext4 across everything I think.

Can you enable superblocks after you've already formatted the drive?

Fdisk saves the offsets so keeping a record of that at least sounds like a good idea.

[–] luthis@lemmy.nz 2 points 2 years ago* (last edited 2 years ago)

The script takes the drives as arguments:

$ pwd
/usr/lib/systemd/system
$ cat drive_backup.service 
[Unit]
Description=backup fdisk + e2image
Wants=drive_backup.timer

[Service]
Type=oneshot
ExecStart=/usr/bin/backup_meta_data.sh /dev/sdc1 /dev/sdb1

[Install]
WantedBy=multi-user.target

Set to run at 3:40am every day, but probably could be once weekly really.

$ cat drive_backup.timer 
[Unit]
Description=timer to run drive backup
Requires=drive_backup.service

[Timer]
Unit=drive_backup.service
OnCalendar=*-*-* 03:40:00

[Install]
WantedBy=timers.target

Should be fairly self-explanatory.

$ cat /usr/bin/backup_meta_data.sh
#!/bin/bash

working_dir=/home/st/drive_recovery/working
backup_dir=/home/st/drive_recovery
backup_date=$(date +%Y%m%d-%H%M)

mkdir -p $working_dir

sudo fdisk -x > $working_dir/$backup_date.fdisk

for var in "$@"
do
	clean=$(echo $var | sed 's;/;-;g')
	sudo e2image $var $working_dir/$backup_date.$clean
done

sudo 7z a $backup_dir/$backup_date.archive $working_dir/"$backup_date"*
sudo rm $working_dir/"$backup_date"*
[–] luthis@lemmy.nz 2 points 2 years ago

Although I haven't smoked a cigar for over a decade, I do appreciate having the option to buy a genuine Cuban cigar.

Definitely in support of removing combustible tobacco products though.

[–] luthis@lemmy.nz 1 points 2 years ago

the right ... is completely disingenuous about why they support it

Are they ever ingenuous?

the men in their life just wont let them go to public buildings (including schools) anymore

This one is the most likely outcome.

[–] luthis@lemmy.nz 10 points 2 years ago (2 children)

FYI, LTT did a video showing ex crypto cards are totally fine. But let's keep that between us so the second hand market for those cards keeps low prices.

view more: ‹ prev next ›