Without need to backup, it would be quick. Estimate 20 to 60 minutes can be done.
If we need to backup or recover the data, time is depends how much data you had. It would be 1 hour to 6 hours around.
Example: a 128 GB almost fully used, it’ll takes about 4 hours.