Re-use of external Hard drive with data from older nextcloud

I do not know your installation exactly, but it is pretty easy if you are not using encryption (otherwise you have to have DB and config backup to restore it).

Just update the config during installation (or read full how to for after installation case):

where /var/www/data-raid is mounting point or location of your older data directory.

P.S. With a new installation you will have new instanceid. After installation you can delete all folders under you data with *-oldInstanceId, e.g. appdata-OLDinstanceid, updater-OLDinstanceid