1👍
I did it like this:
backup = env.path + '_bkup'
print backup
if exists(env.path):
if exists(backup):
sudo('rm -rf {}'.format(backup))
sudo('mv {} {}'.format(env.path, backup))
- Error reading file '/media/xml/example.xml': failed to load external entity "/media/xml/example.xml"
Source:stackexchange.com