add sudo flag.

if sudo is true and current user don't have write permission,
  rhost try to backup and save files with sudo command.