You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Enable download of project with a filter to include/exclude certain files or filetype #233
In many cases we need to download a previous version of a project but only need the project files. In these cases, it would be useful to be able to add a filter to the project download, for example to exclude all media files, so we aren't downloading several GBs of data when we only need the project and config files.
Feel free to start testing of this functionality @RastoHu . When using command mentioned in description or client.download_project() method with exclude / include params - downloaded files are following this rules. Configuration of excluded / included files is stored in .mergin folder. Filters are stored just one time and after download - you do not have any option to revert these.
download project with include option, e.g. mergin --url https://app.dev.merginmaps.com/ download "<workspace>/<project>" ./<local_folder> --include "*.gpkg" --include "*.qgz"
go to local folder: cd local_folder
try download file with excluded type, e.g. test.txt (must exist in project on server): mergin --url https://app.dev.merginmaps.com/ download-file test.txt ./tmp/test.txt -> excluded file is downloaded to the local project
Activity
dracic commentedon Jun 9, 2025
And also this would be useful in db-sync. No need to download all images to sync gpgk to PostgreSQL.
MarcelGeo commentedon Sep 11, 2026
Feel free to start testing of this functionality @RastoHu . When using command mentioned in description or client.download_project() method with exclude / include params - downloaded files are following this rules. Configuration of excluded / included files is stored in .mergin folder. Filters are stored just one time and after download - you do not have any option to revert these.
RastoHu commentedon Sep 16, 2026
testing ok with one exception:
mergin --url https://app.dev.merginmaps.com/ download "<workspace>/<project>" ./<local_folder> --include "*.gpkg" --include "*.qgz"cd local_foldermergin --url https://app.dev.merginmaps.com/ download-file test.txt ./tmp/test.txt-> excluded file is downloaded to the local projectMarcelGeo commentedon Sep 17, 2026
@RastoHu let's provide some examples for cli calls.
RastoHu commentedon Sep 23, 2026