K3s Local Rancher ETCD maintenance

Hi. I saw this script for ETCD maintenance and it seems out of date and none of it works anymore.
E.G. it’s for etcd 3.2.1 and the cluster etcd is 3.4…

Rancher v2.2.0 single install etcd maintenance (github.com)

my Rancher installation is like 1 years old and could definitely do with some defragging. Any help?

— Update
I found a new GIST here:
Rancher v2.6.3 and up single install etcd maintenance (github.com)