This script is used to backup a directory and all subdirectories to a specified location. Then it compress the results into a Zip (or 7Zip) file, and rename it to the current date (YYYY-MM-DD).
Provide the source path and the destination path.
sc =r’C:\Users\comodo\Desktop\dir’ #Provide the source folder path here
ew’ #Provide the destination path were the folder need to be copied.
Run the script as system user.
Refer the below link for the script to backup a directory and all sub-directories to a specified location and zipping the directory and rename it to the current date.