Hi teams.
I have some critical data on our server, I would like to copy it to another storage.
I want to create a powershell secript for this task and schedule it in the task manager on the windows server.
I want to schedule the copying of data to a backup storage every week, and keep 3 latest versions, i.e.
- first week copy the data o the backup storage.
- the second week copy the data to the backup storage without deleting the backup of the first week.
- Third week copy the data to the backup storage without deleting the backup of the first and second week.
4)fourth week copy the data to the backup storage with deleting the backup of the first week and keeping the backups of the second and third and fourth weeks. - fifth week copy the data into the backup storage with deleting the backup from the second week and keep the backups from the third and fourth week.
please help
thanks in advance