forked from tdewin/rps
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathforkme.html
55 lines (43 loc) · 1.5 KB
/
forkme.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<html>
<head>
<title>Restore Point Simulator</title>
<link rel="stylesheet" type="text/css" href="pureengine.css">
<link href="jquery-ui.css" rel="stylesheet">
</head>
<body class="mainfont">
<script src="jquery-2.0.1.min.js"></script>
<script src="jquery-ui.min.js"></script>
<script src="URI.js"></script>
<script src="moment.min.js"></script>
<script src="filesize-mod.js"></script>
<script src="pureengine.js"></script>
<div id="result">
</div>
<script>
var retention = 14
var sourceSize = (1000*1024*1024*1024)
var backupstyle = 1
var interval = {hours:24}
var backupConfiguration = VeeamBackupConfigurationObject(backupstyle,retention,sourceSize);
//find more overrides here VeeamBackupConfigurationObject(style,simplePoints,sourceSize)
backupConfiguration.activeWeek = [0,0,0,0,0,0,1,0]
//in %
backupConfiguration.compression = 50
backupConfiguration.changeRate = 10
var backupResult = VeeamBackupResultObject()
var pureEngine = VeeamPureEngine()
pureEngine.reset()
var start = moment().add({days:1}).startOf('day').add({hours:22});
var end = pureEngine.predictEndDate(backupConfiguration,start.clone(),interval)
pureEngine.run(backupConfiguration,backupResult,start,interval,end)
var files = backupResult.getWorstCaseFiles()
var text = ""
for(var counter=0;counter < files.length;counter = counter + 1 ) {
//find more examples here function VeeamBackupFileObjectInheritable
//eg VeeamBackupFileObj.toString = function ()
text += files[counter].toString()+"<br>"
}
$("#result").html(text)
</script>
</body>
</html>