protected function removeBackupTask(
        $worker,
        AbstractAuth $auth,
        $remote,
        $opts = ['files' => false, 'data' => false]
    ) {
        $backupDir = $remote['backupsdir'] . '/' . $remote['time'];

        $collection = $this->collectionBuilder();
        $collection->taskSsh($worker, $auth)
            ->timeout($this->getTimeoutSetting('remove_backup'))
            ->exec('rm -rf ' . $backupDir);

        return $collection;
    }
protected function removeBackupTask(
        $worker,
        AbstractAuth $auth,
        $remote,
        $opts = ['files' => false, 'data' => false]
    ) {
        $backupDir = $remote['backupsdir'] . '/' . $remote['time'];

        $collection = $this->collectionBuilder();
        $collection->taskSsh($worker, $auth)
            ->timeout($this->getTimeoutSetting('remove_backup'))
            ->exec('rm -rf ' . $backupDir);

        return $collection;
    }
protected function removeBackupTask ( $ worker , AbstractAuth $ auth , $ remote , $ opts = [ 'files' => false , 'data' => false ] ) { $ backupDir = $ remote [ 'backupsdir' ] . '/' . $ remote [ 'time' ] ; $ collection = $ this -> collectionBuilder ( ) ; $ collection -> taskSsh ( $ worker , $ auth ) -> timeout ( $ this -> getTimeoutSetting ( 'remove_backup' ) ) -> exec ( 'rm -rf ' . $ backupDir ) ; return $ collection ; }
Remove a backup.

@param string $worker
The server to install the site on.
@param \DigipolisGent\Robo\Task\Deploy\Ssh\Auth\AbstractAuth $auth
The ssh authentication to connect to the server.
@param array $remote
The remote settings for this server.

@return \Robo\Contract\TaskInterface
The backup task.
Remove a backup .