3 ms·
A lot of these scripts have areas of nuance and subtlety that are likely not addressed. The backup script that essentially runs cp "$x" "$x.$(date +%y%m%d)" wo
by chasil 5y ago
A lot of these scripts have areas of nuance and subtlety that are likely not addressed.
The backup script that essentially runs cp "$x" "$x.$(date +%y%m%d)" would greatly benefit from the --reflink option to GNU cp, but only when running on a COW filesystem (ZFS or BtrFS). This particularly strikes me.
- chungy 5y agoZFS doesn't (yet) support reflink copies.
- chasil 5y agoZut alors! I thought it did.
- Self-Perfection 5y agoSince coreutils 9.0 you don't need to explicitly enable CoW in cp, this behaviour is default now. https://www.mail-archive.com/info-gnu@gnu.org/msg02953.html https://www.mail-archive.com/info-gnu@gnu.org/msg02953.html