I know I can `pct pull` and `pct push` from the Proxmox server itself but how can I directly copy files from one container to another?
That’s ok but is there any Proxmox native command to do that? However, SSH is disabled on both containers.scp , can be a way if ssh is enable on the two container...
There is also the `pct mount` command. I guess you need to take care of destination permissions regardless of the method you chose.I know I can `pct pull` and `pct push` from the Proxmox server itself but how can I directly copy files from one container to another?
I think it's overkill for copy some files now and then but for something more regular it's ok.Create a directory on the host and add a mountpoint to that directory to both containers. Make sure to use the same user/group ID in both containers and allow read/write access for those user/group ID (+100000 when unprivileged) on the host.
So, I could also do:There is also the `pct mount` command. I guess you need to take care of destination permissions regardless of the method you chose.
cp /rpool/data/subvol-100-disk-0/tmp/myfile.txt /rpool/data/subvol-300-disk-0/tmp/
We use essential cookies to make this site work, and optional cookies to enhance your experience.