I am using the following command to upload a geopackage into a POSTGIS database using the OSGeo4W shell that comes with QGIS.
ogr2ogr -f “PostgreSQL” PG:”host=<hostname> dbname=<dbname> user=<yourusername> password=<yourpassword>” <dir>\geopackage.gpkg
I am following a guide online and know this is the command to use yet I am presented with the following error:
"FAILURE: Unable to open datasource `DATASOURCE' with the following drivers."
It then lists a bunch of file formats including the gpkg format.
Stumped for ideas on this one!