User avatar
greeen blobcatpresentgreen (simulacrum edition) @green@mk.absturztau.be
1mo
how do i best take a full image of my rpi and download that over ssh
1
0
0
0
User avatar
greeen blobcatpresentgreen (simulacrum edition) @green@mk.absturztau.be
1mo
like i would just tar the / filesystem, but there's not enough space on disk to have a tarball of everything else
2
0
0
0
User avatar
freya therian :4 (she/it) @freyalikesgirls@transfem.social
1mo
@green dd into compression?
1
0
0
0
User avatar
greeen blobcatpresentgreen (simulacrum edition) @green@mk.absturztau.be
1mo
@freyalikesgirls elaborate?
1
0
0
0
User avatar
minwlfNotice flori_ava_star~cursor_blinking @star@amazonawaws.com
1mo
@green @freyalikesgirls dd with if being your rootfs and you pipe that into tar
❤️1
2
0
0
1

User avatar
freya therian :4 (she/it) @freyalikesgirls@transfem.social
1mo
@green @star u mean straight up like zstd or xz or gzip or whatever? tar doesnt make sense here
1
0
0
0
User avatar
minwlfNotice flori_ava_star~cursor_blinking @star@amazonawaws.com
1mo
@freyalikesgirls @green Tar does make sense, -czf creates a gzip
1
0
0
0
User avatar
v @vesen@chaos.social
1mo
@star @green @freyalikesgirls yes, by invoking gzip and adding an unused header. tar is for packing many files into one, the other tools for compressing the file. tar czf foo.tar.gz bar does the same as tar c bar | gzip > foo.tar.gz
0
0
0
0
User avatar
minwlfNotice flori_ava_star~cursor_blinking @star@amazonawaws.com
1mo
@green @freyalikesgirls And you pipe that output stream over ssh onto another device
❤️1
3
0
0
1
User avatar
greeen blobcatpresentgreen (simulacrum edition) @green@mk.absturztau.be
1mo
@star @freyalikesgirls that's gonna be a very annoying backup to later recover. i would have to somehow turn the file into a block device and then mount it
2
0
0
0
User avatar
freya therian :4 (she/it) @freyalikesgirls@transfem.social
1mo
@green @star yeah..
arent rhere ways to make it seekable
mybe something w squashfs?
2
0
0
0
User avatar
freya therian :4 (she/it) @freyalikesgirls@transfem.social
1mo
@green @star omg yeah squashfs seems like the play
0
0
0
0
User avatar
greeen blobcatpresentgreen (simulacrum edition) @green@mk.absturztau.be
1mo
@freyalikesgirls @star i think it would be easier to just do a normal tar, and pipe the output over stdout. or the normal way of rsyncing the whole filesystem and tar.gz-ing it locally
2
0
1
0
User avatar
freya therian :4 (she/it) @freyalikesgirls@transfem.social
1mo
@green @star sure ig, you can also do that..... make sure file extended attributes arent being murdered
1
0
0
0
User avatar
freya therian :4 (she/it) @freyalikesgirls@transfem.social
1mo
@green @star Unironically tho mksquashfs is fire
0
0
0
0
User avatar
minwlfNotice flori_ava_star~cursor_blinking @star@amazonawaws.com
1mo
@green @freyalikesgirls But if you don't want to compress it right away, don't use TAR, just pipe the raw bytes of the disk image into a .img file
:neocat_heart@transfem.social:1
2
0
0
1
User avatar
minwlfNotice flori_ava_star~cursor_blinking @star@amazonawaws.com
1mo
@green @freyalikesgirls That's the absolute closest you can get to a 1:1 copy anyway, since that is literally what it is
0
0
0
0
User avatar
freya therian :4 (she/it) @freyalikesgirls@transfem.social
1mo
@green @star atp just of=file.img
0
0
0
0
User avatar
[ASTRL] Lyna @lynastral@catgirl.center
1mo
@green @star @freyalikesgirls you can use losetup to expose that file as a block device (on /dev/loopX) and then mount that or do whatever you need to do

sudo losetup -f MYFILE and it'll give you a loop device to do your stuff with
0
0
0
0
User avatar
freya therian :4 (she/it) @freyalikesgirls@transfem.social
1mo
@green @star Its crazy how clever unix philosophy is in cases where it actually works and makes sense
1
0
1
0
User avatar
minwlfNotice flori_ava_star~cursor_blinking @star@amazonawaws.com
1mo
@freyalikesgirls @green Yaaaa its so nice, like little functions u build together :3

Shame that bash is so ass thoooo
:neocat_heart@transfem.social:1❤️1🩷1
0
0
0
3
User avatar
Staraven1 (she/her) @Staraven1@transfem.social
1mo
@star @green @freyalikesgirls onto a git forge after cracking their ssh
0
0
0
0