On a sunny day (Mon, 16 May 2022 18:19:11 -0700 (PDT)) it happened Kruse Ludington <
rkludington@gmail.com> wrote in <
62132ea3-9f41-46cb-a3b9-964ef6b02b53n@googlegroups.com>:
Scenario:
I've got an RPI 4 (8GB RAM) booted up from a 1TB Samsung T3 external SSD. Unable
to clone or create a working copy of the 1TB T3 SSD on another brand new
1TB Samsung T7 (newer model) SSD.
....
Anyone
have any ideas before I decide to defenestrate or shoot myself in the
head (just kidding)?
Yes, I recently found internet is getting a bit stressed with so many things blocked, sucking MB web sites, etc.
Without internet would life be better?
The backups:
I do not have SSDs but large 3.5 TB harddisks.
[I] Never backup from a running system
as you pointed out I simply copy what changed and was important to the other disk on the other raspi.
For backups of Pi SDcards I power down the Pi, take the card out, put it in the laptop,
and link to the other Pi with the other 3.5TB disk (but I also have a USB card reader I could use).
I tried scp -p /dev/raspi_card IP_OTHER_PI:/mnt/sda2/backups/my_pi4_card.img scp then complained /dev/raspi_card is not a file....
(all in UNIX is a file so whats that about??)
(rapi_card stands for sdc or sdd depending whatever else you have hanging from the laptop)
and make sure it is NOT MOUNTED, some system like to mount things automatically I think.
OK, so then netcat to the rescue!
on the destination Pi I ran:
netcat -l -p 1029 > /mnt/sda2/backups/my_pi4_card.img
here netcat listens on port 1029 and sends output /mnt/sda2/backups/my_pi4_card.img
And on the sending site (laptop) did:
cat /dev/raspi_card | netcat -a IP_OTHER_PI -p 1029
sends whole card image to IP IP_OTHER_PI
took a while via the LAN..
There are different versions of netcat around with different arguments to stop transfer on EOF, so check man netcat.
Anyways, if you want easier access to files later, then zip the partitions mount /dev/raspi_partition1 /mnt/raspi_partition1
mount /dev/raspi_partition2 /mnt/raspi_partition2
tar -zcvf raspi_partition1.tgz /mnt/raspi_partition1
tar -zcvf raspi_partition2.tgz /mnt/raspi_partition2
then copy the compressed partitions in the normal way (scp should work :-) ) That allows you to unzip it later and get a specific file.
Having the backup thing saved me recently from disaster,
I also backup Raspi SDcards to other SDcards (all Samsung here) so I can just swap cards if something strange happens.
There is a bit more to it, but OK.
As to data transfer via internet, maybe using a drone and MicroSDcards is faster and cheaper,
couple of TB ... over miles.. :-)
http://panteltje.com/panteltje/quadcopter/index.html
or posting pigeons with SDcards..
Anyways after WW3 nukin likely none of the electronics shit will still work.
I do keep some optical backups too though, among those M-Discs, say for the archaeologists..
http://panteltje.com/pub/CD_box_binnenkant_IXIMG_0549.JPG
--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)