Eulanda / EulandaConnect

A PowerShell library that provides functionality for integrating and connecting with Eulanda, both within and outside of ERP contexts.
https://www.eulanda.eu
MIT License
1 stars 0 forks source link

Add support for rotating backups #11

Open cnEUL opened 1 year ago

cnEUL commented 1 year ago

By specifying a file name and a number of histories, a file is to be saved in a rotating scheme. e.g. max. 5 histories, then the file name sample.dat is to be saved as Sample.dat.1.bak to Sample.dat.5.bak. 1 should always be the newest backup, while in the case 5 should be the oldest.

Support of destination path and a Force parameter. If the destination path does not exist, an exception is thrown, but if Force is set, all required paths are created beforehand.

Think about using also vss support for open files, and a retry option. -usevss, -maxretry