Fix backup issue

Moved backup to only affect the target.