 backup = $coroutine ({vm, remoteId, file, compress, onlyMetadata}) ->
   yield @backupVm({vm, remoteId, file, compress, onlyMetadata})
 
+backup.permission = 'admin'
+
 backup.params = {
   id: {type: 'string'}
   remoteId: { type: 'string' }

    sr = xapi.pool.$default_SR
    if not sr
      throw new InvalidParameters('there is not default SR in this pool')
  else
    xapi = @getXapi(sr)


    compress,
    onlyMetadata
  })

rollingBackup.permission = 'admin'

rollingBackup.params = {
  id: { type: 'string' }
