I’m trying to build a workflow to backup my ESXi homelab snapshots. My first step is to list the folders using an execute command node: ssh -i ./id_rsa [email protected] "ssh -i ./id_rsa [email protected] “find /vmfs/volumes/datastore1/backup/ -maxdepth 1 | tail -n +2”
I’m getting the following result in the stdout
/vmfs/volumes/datastore1/backup/opnsense /vmfs/volumes/datastore1/backup/debian /vmfs/volumes/datastore1/backup/keeweb
those are the directories returned by the find command. my purpose is to parse those directories in order to iterate over them and execute a tar command using another node.
my question is: what is the best way to iterate over this stdout output?