Quantcast
Channel: 2BrightSparks
Viewing all articles
Browse latest Browse all 9303

Re: keep 10 completes zip backup

$
0
0
There's no native facility to do that except by using Variables that 'cycle', thus eventually re-using the first Zip, then the second one, etc (optionally deleting all files inside first, otherwise 'refreshing' the contents, which is usually more efficient).

But there's no built-in Variable that cycles from 1 to 10 (though you could write* an installable script to add one). Built-in Variables are based on the clock and the calendar, though you could approximate what you want via

X:\Backup_%DAYOFWEEK%.Zip

to get a cycle of 7 or

X:\Backup_%WEEKOFODDEVEN%\%DAYOFWEEK%.Zip

to get a cycle of 14. Naturally such a schema would rely on you actually running it every day to get the requsite number of backups. There's no built-in functionality to specifically cater for 'ad-hoc' backups or to count how many previous backups exist and/or delete any 'surplus' (though you could call a stand-alone batch file / script to do the latter)


* Note that we don't write bespoke scripts for people, nor provide bespoke assistance in doing so. We provide the scripting facility, the Scripting section in the Help, and the examples provided in the program folder and the scripting page of the website. The rest is up to the user...

Viewing all articles
Browse latest Browse all 9303

Trending Articles