Compile the tool https://github.com/ipfs/ipfs-ds-convert via your user account
echo "$GOPATH" -> if empty go to ~/go/bin/, else "$GOPATH/bin/"
copy the ipfs-ds-convert binary to /tmp/:
cp -a ipfs-ds-convert /tmp/
convert your datastore:
sudo su ipfs -s /bin/bash -c '/tmp/ipfs-ds-convert convert'