def write_file(self, filepath, stdin):
        self.logger.info("Writing: %s", filepath)
        with open(filepath, 'wb') as fd:
            copyfileobj(stdin, fd)
Write the specified file from stdin.
dataset/ETHPy150Open django-dbbackup/django-dbbackup/dbbackup/dbcommands.py/DBCommands.write_file