Hi,
I'm trying to direct the output of
Code:
vagrant package vm_id --output file
to stdout, so that I can pipe it into gpg in order to encrypt it.
If I do:
Code:
vagrant package vm_id --output vagrant.box | gpg --encrypt -r my@example.com -o vagrant.box.gpg
of course I would end up with both vagrant.box and vagrant.box.gpg.
I also tried mkfifo /tmp/pipe, but running --output /tmp/pipe says (obviously) that the file already exists and that I should choose another path.
I'm trying to create encrypted backups, so I would have liked to avoid having to delete the unecrpyted backup afterwards, let alone the unncessary second process (which is gpg which created another file altogether).
Any ideas?