src/Cornford/Backup/Engines/BackupEnginePgsql.php
public function export($filepath)
	{
		$command = sprintf(
			'PGPASSWORD=%s %s -Fc --no-acl --no-owner -h %s -U %s %s > %s',
			escapeshellarg($this->getPassword()),
			$this->getExportCommand(),
			escapeshellarg($this->getHostname()),
			escapeshellarg($this->getUsername()),
			escapeshellarg($this->getDatabase()),
			escapeshellarg($filepath)
		);

		return $this->getBackupProcess()->run($command, __FUNCTION__);
	}
public function export($filepath)
	{
		$command = sprintf(
			'PGPASSWORD=%s %s -Fc --no-acl --no-owner -h %s -U %s %s > %s',
			escapeshellarg($this->getPassword()),
			$this->getExportCommand(),
			escapeshellarg($this->getHostname()),
			escapeshellarg($this->getUsername()),
			escapeshellarg($this->getDatabase()),
			escapeshellarg($filepath)
		);

		return $this->getBackupProcess()->run($command, __FUNCTION__);
	}
public function export ( $ filepath ) { $ command = sprintf ( 'PGPASSWORD=%s %s -Fc --no-acl --no-owner -h %s -U %s %s > %s' , escapeshellarg ( $ this -> getPassword ( ) ) , $ this -> getExportCommand ( ) , escapeshellarg ( $ this -> getHostname ( ) ) , escapeshellarg ( $ this -> getUsername ( ) ) , escapeshellarg ( $ this -> getDatabase ( ) ) , escapeshellarg ( $ filepath ) ) ; return $ this -> getBackupProcess ( ) -> run ( $ command , __FUNCTION__ ) ; }
Export the database to a file path.

@param string $filepath

@return boolean
Export the database to a file path .