iarp Posted January 22, 2021 Share Posted January 22, 2021 Essentially I have a 60GB vdisk with only 15GB in use. If I attempt to copy it in any way it copies 60GB fully, not 15GB. # qemu-img info vdisk1.img image: vdisk1.img file format: raw virtual size: 60 GiB (64424509440 bytes) disk size: 14.9 GiB Quote Link to comment
itimpi Posted January 22, 2021 Share Posted January 22, 2021 You can achieve this using rsync to do the copy with the --sparse parameter. I think the cp command has an equivalent option. 1 Quote Link to comment
JorgeB Posted January 22, 2021 Share Posted January 22, 2021 cp --sparse=always /path/to/source /path/to/dest 1 Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.