wordpress icon indicating copy to clipboard operation
wordpress copied to clipboard

Disable tar extract file modified time

Open ffais opened this issue 1 year ago • 2 comments

I added the --touch flag as targetTarArgs to prevent the "Cannot utime: Operation not supported" error message from appearing, especially when some storage types (e.g. Azure FileShare) are used on Kubernetes.

ffais avatar Aug 22 '24 11:08 ffais

Hmm, I think copying the mtime is generally desirable, even if only cosmetic. I guess I wish there was a "try to preserve mtime but don't fail if you can't" flag. :disappointed:

tianon avatar Aug 23 '24 20:08 tianon

A solution could be to introduce a flag like "unsupportedmtime=true|false" and add the touch argument based on that, instead of setting it by default.

Something like that:


	if [ "$unsupportedmtime" != 'false' ]; then
			targetTarArgs+=(
				--touch
			)
	fi

ffais avatar Aug 28 '24 11:08 ffais