Moved backup script to .sh format and it now fully works