Hmmm it doesn’t work when giving it a destination name. i.e:
lxc file pull -r nginx/etc/letsencrypt/live/mail.sjomar.eu/fullchain.pem mail_latest.nginx
This will create a directory with the name mail_latest.nginx.
When I do :
lxc file pull -r nginx/etc/letsencrypt/live/mail.sjomar.eu/fullchain.pem .
It creates a file fullchain.pem with the actual contents.
As you can see I use an nginx container with letsencrypt to renew certificates and use them as well for a mail server in another container (I pull the certificate out of nginx and check if it changed. If so I push it together with the key file to the mail container and restart the imap/smtp processes)
edit: I see that the directory it created does hold the actual file though…I can work with that…