I would like to integrate my Time Machine backups with a manual script that will create a compressed and encrypted DMG image from some folders.
Reading about this issue, I can create a DMG, for instance
$ hdiutil create -verbose -encryption AES-256 -format UDBZ -stdinpass -srcfolder DIR FILE.DMG
The problem is that I don't have enough space to do that in the wild. So I was thinking about using my linux server as storage, but I don't know how.
How can I create a DMG remotely via SSH on a linux server?
I have tried to see if hdiutil
has a "dump to stdout" option, but I didn't see that, otherwise I'd be all set.
Note that I'd prefer just using macOS tools, without recompiling, if possible.
cat a.txt | grep something
... – senseiwa Jun 5 '19 at 10:03hdiutil
doesn't seem to allow to write to a named pipe, so this option doesn't seem to work – nohillside♦ Jun 5 '19 at 15:08