01-19-2020, 08:56 PM
(This post was last modified: 01-19-2020, 09:24 PM by wdt.
Edit Reason: sp
)
If you have util-linux,, there is fstrim (root) which will work on eMMC
(will NOT work on uSD or usb sticks)
Does a fine job zeroing, don't overuse
If you were trying to backup a running system, unless sudo there
would be all kinds of access denied messages, wouldn't work so well
And, for that matter, why wouldn't you back up to a usb stick,
which you could easily put into any computer, no need to unzip
to get a file or many off, just copy onto stick beside backup
--edit--
As for size, well the gz will be a lot smaller, only if the expanded contents are larger
than the target would there be a problem. Yes a straight dd without a zip in the middle
stands a risk of being too large,, you could use gparted to shrink the donor first, 1-200M
There could be a small problem with a gpt type disk, gdisk can repair the backup table
(will NOT work on uSD or usb sticks)
Does a fine job zeroing, don't overuse
If you were trying to backup a running system, unless sudo there
would be all kinds of access denied messages, wouldn't work so well
And, for that matter, why wouldn't you back up to a usb stick,
which you could easily put into any computer, no need to unzip
to get a file or many off, just copy onto stick beside backup
--edit--
As for size, well the gz will be a lot smaller, only if the expanded contents are larger
than the target would there be a problem. Yes a straight dd without a zip in the middle
stands a risk of being too large,, you could use gparted to shrink the donor first, 1-200M
There could be a small problem with a gpt type disk, gdisk can repair the backup table