Incus File Transfers
Transfer files between incus and the host ... Its not complex
All commands in this Post are intended to be executed on the host machine and not in the container
Pulling a file from the container to the host
Assuming we are pulling a file named my-file from a container named container-name to the current working folder.
incus file pull container-name/path/to/my-file .DO NOT FORGET THE dot (.)
Pulling a folder from the container to the host
Assuming we are pulling a folder name my-folder from a container named container-name to the current working folder.
incus file pull -r conatiner-name/path/to/my-folder .Pushing a file from the host to the container
Assuming we are pushing a file named my-file from the host to a container named container-name
cd /path/to/my-file
incus file push my-file container-name/path/to/destination/directory/Pushing a folder from the host to the container
Assuming we are pushing a folder named my-folder from the host to a container named contaner-name
cd /path/to/my-folder
incus file push -r my-folder container-name/path/to/destination/directory/