Skip Navigation

∟⊔⊤∦∣≶
∟⊔⊤∦∣≶ @ luthis @lemmy.nz
Posts
86
Comments
1,926
Joined
2 yr. ago

  • 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..

  • 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.

  • 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"*
    
      
  • 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.

  • No. It would be like a mild tap if anything.

    Unless you were closer than a few hundred metres. Then it starts to get serious.

  • And 'Hate, Dominate, Congregate, Eliminate' is a really great album. I would actually recommend listening to that one first.

    I found this band by accident because I was looking for Hate.

  • I'm sure Epica has that aspect, but I would instead recommend .. The Project Hate MCMXCIX!!!!!!

    Pretty much all of it is exactly as described, aggressive male, melodic female. They are excellent.

    Sorry, here's a Spotify link, couldn't find this track on youtube

    https://open.spotify.com/track/5yKIKRcUAlSW6H1JFdZIF1?si=8d9c960d206e4820

    Oh man, I had forgotten about these guys, they are freakin excellent. The track name is 'At the Entrance of Hell's Unholy Fire'

  • Trying to find some other suggestions, maybe the movie Vivarium?

    Was sure somewhere in the back of my mind I had something that fit exactly

  • I've seen Epica live, unfortunately whoever was on sound that day really fucked it up.

    I've seen Arch Enemy too, with good sound, but I would trade that experience to see Lacuna Coil.. I know they are popular but I still feel like they are massively underappreciated.

  • The Birthday Massacre is the audible version of rocky road icecream. Try this, either with headphones or decent speakers:

    https://www.youtube.com/watch?v=4iOPS0X3pbk

    Also, as already suggested, Lacuna Coil is delicious.

  • Hell yes. Man, the 90s even into the early 2000s we had some freakin great wierd movies. 1999 might be the best year ever for movies.

    I don't think we will ever see an era like that again.

  • This is entirely the responsibility of your phone provider. They should be blocking those numbers.

    Call them, tell them you have a csv with the list of spam numbers for them to block. (CSVs are very easily imported) Tell them if they don't add them to their blocklist you will change phone provider because it is unbearable and you are not receiving a good service.

    Phone companies are (often legally) obliged to block illegitimate usage and always have it in their terms and conditions.

  • Maybe we need to have a completely-bullshit-venture-capital-investor-bait-technology community.

  • Yeah definitely share your config! I've only just scratched the surface with wxHexEditor

  • That was my first thought, they are only last gen guys! And easily comparable to the top of the line in the current gen!

  • I needed a way to pass an argument into the command so it can be used in name="$1"

  • Dude, I use the CLI all day, every day and I can't freakin remember half the commands I need.

    If it's something I use often, I'll make an alias even if it's just so I can run 'alias' in the terminal to get a list of things I use often.

  • If I eventually get around to using a GUI, I'll check out portainer