How to import data in small chunks if repos are large

Hell There,

we are following the same steps for nexus-repository-import-scripts/ at master · sonatype-nexus-community/nexus-repository-import-scripts · GitHub

bash ../ -u admin -p "${NEXUS_ADMIN_PASSWORD}" -r "$NEXUS3_HOME_URL/repository/project1/releases-local"

but our data is around 16GB, and for certain time it breaks and if we start it doesnt resume from where it has failed it starts fresh, do we have any way to use this script in batch wise like 2GB 2GB 2GB 2GB or first 4 repos to import.

Please help,