From 7383c50134c44cea13ef0c96ea8935dd8cf47c30 Mon Sep 17 00:00:00 2001 From: Laurent Cozic Date: Fri, 23 Feb 2018 18:16:37 +0000 Subject: Documented backup expiration strategy and added test file --- tests/populate_dest.php | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 tests/populate_dest.php (limited to 'tests/populate_dest.php') diff --git a/tests/populate_dest.php b/tests/populate_dest.php new file mode 100644 index 0000000..0603c27 --- /dev/null +++ b/tests/populate_dest.php @@ -0,0 +1,30 @@ +sub(new DateInterval('P' . $totalDays . 'D')); + +for ($i = 0; $i < $backupsPerDay * $totalDays; $i++) { + $d->add(new DateInterval($intervalBetweenBackups)); + mkdir($destDir . '/' . $d->format('Y-m-d-His'), 0777, true); +} \ No newline at end of file -- cgit v1.2.3