Tag: Linux
-
ShellCheck helps you learn to shell script
This is a lot of feedback for a shell script in progress!
-
Deduplication, continued.
OK, so what started out as a bash script grew into a rather finicky Perl script. I used a bunch of parallel hashes, judging things by combinations duplicate names, identical file sizes and actually scoring the path name and taking the highest score. I ended up no using the file hashes, because I decided that…
-
Recreating my Backup Pool
Sing out if you know what I’m doing with this one command: zpool create -f -o ashift=12 tank \raidz ata-Hitachi_HTS547575A9E384_J2190059G5PXYC-part1 ata-Hitachi_HTS547575A9E384_J2190059G6GMGC-part1 ata-Hitachi_HTS547575A9E384_J2190059G6LUDC-part1 \raidz ata-Hitachi_HTS547575A9E384_J2190059G95JPC-part1 ata-Hitachi_HTS547575A9E384_J2190059G95REC-part1 ata-Hitachi_HTS547575A9E384_J2190059G9LH9C-part1 \raidz ata-Hitachi_HTS547575A9E384_J2190059G9PDPC-part1 ata-Hitachi_HTS547575A9E384_J2190059G9SBBC-part1 ata-TOSHIBA_MQ01ABD050_933PTT0ZT \raidz ata-TOSHIBA_MQ01ABD050_933PTT11T ata-TOSHIBA_MQ01ABD050_933PTT12T ata-TOSHIBA_MQ01ABD050_933PTT13T \raidz ata-TOSHIBA_MQ01ABD050_933PTT14T ata-TOSHIBA_MQ01ABD050_933PTT15T ata-TOSHIBA_MQ01ABD050_933PTT17T \log /dev/sda5 \cache /dev/sda6 \spare ata-TOSHIBA_MQ01ABD050_X3EJSVUNS ata-TOSHIBA_MQ01ABD050_X3EJSVUOS
-
ZFS, Bash, and Piped Loops
Fellow Linux Nutjobs! Here is your evening lesson in how to reclaim space from a ZFS partition by destroying snapshots. In my setup, my remote backup has a subset of the snapshots I’m automatically creating from my backup scripts. To reclaim space, I’m deleting those snapshots that have been backed up off-site. Assume alias Zfs=”sudo…
-
Backups: Using `find` Across a Panalopy of Directories
I love using the find command. In DOS, find is like grep. In Linux, find is the most powerful recursive DOS dir /s or Linux ls -r command you could ever put your saddle on. One of the things you can do with find is to avoid directories, using the -prune switch. Like so: find…
-
Backups: Sorting Through a Restore
When you need to be rough with your data–change a bunch of files at once…and you might not do it right the first time. Or you need to recover something that grew a few bad sectors and you only have a bits of your file left. Do you have to restore ALL your work? How…
-
Linux Photography: Basic Darktable Tutorial
I know why my first few minutes with Darktable seemed so frustrating–they were all me scrubbing this modal interface looking for things I thought all should be in a menubar. But there are no menubars. While DT has quite a bit of keyboard shortcuts (not discussed today) Those were no help because you have to…
-
Backups: one quick file backup alias
When you have a file you need to edit and you have the foresight to think, “whoa, make a copy before I destroy…” you often copy hulk.txt to hulk.txt.old (that’s using the minimum of keystrokes: cp hul[tab][tab] hul[tab][tab].old[enter]. Well, a week later, what do you rename your next .old file? .old2? No time to put…
-
Lightroom vs Darktable [Tutorial Geek]
Here is a more in-depth comparison of features and processes available in Darktable and Lightroom. Lightroom vs Darktable – RAW photo editing ~ Tutorial Geek.
