Hi
My shell script on macOS to delete old backups:
#!/bin/bash
latest=$(sudo tmutil latestbackup -t)
sudo tmutil listbackups -t | while read backup; do
if [[ "$backup" != "$(basename $latest)" ]]; then
sudo tmutil delete -d '/Volumes/Backups of ztse-m2-2020 (3)' -t $backup
fi
done
I want to do the same thing on the server (TrueNAS) that I do on macOS (see shell script above). Is there a “tmutil delete” or similar command? How can I delete old Time Machine backups directly on TrueNAS?