I have some cron jobs which run rsync to copy data from an NSS volume at
HQ to the Disaster Recovery site. To avoid the job accidentally
decompressing files on the source volume I have been doing the following
whilst the rsync job is running (yes it's disgusting I know) ...

/sbin/nsscon /ConvertCompressedToUncompressedOption=0 &
sleep 2
killall nsscon

Unfortunately nsscon doesn't really lend itself to scripting in the same
way that ncpcon appears to (neither of them are very helpful but nsscon
is especially bad). Does anyone know how to script something like this? I
have considered using VFS instead but after reading through the API spec
of VFS I'm not sure that it gives me the option to change this particular