Added support to backup environments

Apparently this functionality was missing.