How to clone a NC installation?

could you provide more notes / explanation on your commands?
Im just trying to rescue / clone my old nextcloud installation as written here:

any help appreciated!