     compress,
     onlyMetadata
   })
+
+rollingBackup.permission = 'admin'
 
 rollingBackup.params = {
   id: { type: 'string' }

backup = $coroutine ({vm, remoteId, file, compress, onlyMetadata}) ->
  yield @backupVm({vm, remoteId, file, compress, onlyMetadata})

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')

    # FIXME: must have administrate permission on default SR.
  else
    xapi = @getXapi(sr)

