Skip to content

incus file pull no way to pull physical file of an instance symlink #3017

@robe2

Description

@robe2

Is there an existing issue for this?

  • There is no existing issue for this feature

What are you currently unable to do

I have it described here - https://discuss.linuxcontainers.org/t/incus-file-pull-not-pulling-file-behind-a-symlink/26337/2

In lxc you could pull a physical file behind a symlink with the -r the -r flag doesn't seem to do that in incus.
I understand not wanting to overload the recurse flag with pulling a physical file, but it would be nice to have a switch to allow that so I'm putting this in as a feature request instead of a bug.

Use case from my discuss post:

I have a script that pulls letsencrypt certs from one instance to another.

Note in the nginx container - this is a symlink - /etc/letsencrypt/live/site-name/fullchain.pem to a file in archive folder

In lxd, this worked and brought over the physical file:

lxc file pull nginx/etc/letsencrypt/live/site-name/fullchain.pem fullchain.pem.new -r

In incus, it pulls over the symlink instead of the physical file:

incus file pull nginx/etc/letsencrypt/live/site-name/fullchain.pem fullchain.pem.new -r

I’m running incus 6.22

What do you think would need to be added

Addition of an extra switch to lxc file pull bring over physical file.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions