Translations:Manual:Backing up a wiki/Lanthanis backup CMD/21/en


 * ADD LAST SEQUENCE NUMBER TO ZIP

SET /A lastSequenceNumber=0 FOR /F "tokens=2 delims=-." %%A IN ('DIR /B "%pathBACKUP%\%backupFileName%-*.zip"') DO IF %%A gtr !lastSequenceNumber! SET /A lastSequenceNumber=%%A SET /A lastSequenceNumber=%lastSequenceNumber%+1