by Ken Task.
As long as the data directories for production and dev are unique ... separate (same for DB's and code), yes, you can run the CLI only backup.php script.
Takes web service out of the loop ... and it will report errors as well ... which will give you some clues.
Just make sure you give a destination directory outside of sea of files in moodledata/filedir/
'SoS', Ken