IIRC Affa requires SME to be running on the backup server, as it uses the e-smith database etc.
That said, in essence all Affa does is dial in to the production box over ssh and then copy any changed files to the backup server. You could probably use the code on your Debian box with a few modifications.