'Power Automate: Need to copy sharepoint folder (create backup) and add the date to the end of it (E.g. "Folder 19052022")

Basically, I am trying to:

  1. Copy Folder name "LIVE" From Location_1 to Location_2
  2. Rename "LIVE" in Location_2 to "LIVE 19052022" or whatever the DDMMYYYY is as of today.
  3. Repeat every weekday.

Below is what I have done, but I think I am going the wrong way.

enter image description here

Expression is: formatDateTime(variables('todaysDate'), 'dd-MM-yyyy')

enter image description here

My issue is that in "If another folder is already there" how do I get to rename it to contain today's date?

EDIT: I was thinking I could create new folder with name "LIVE 19052022" (or whatever today's date is and then paste the contents of the folder in there?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source