Added in the logic to check whether server/docroot/env exists in that configuration so when we run through the big nested foreach we only run the backup on existing configs
Started working on the SCP transfer steps of the command. Going to try to use libssh2 functions first but allowing a fallback to escape to shell
Removed my config files from the repo, will replace with some example ones in due course
I don't know wtf I was thinking trying to use ssh functions to transfer data. This is a preliminary commit that works and rsyncs etc. There'll be a butt-tonne of cleaning up code, documenting, error checking etc but eh this works.