Added version number to backup scripts because if multiple backup scripts

are run in sequence it can happen within one second.  This means that
the first backup of a file would be overwritten with the second backup.
This commit is contained in:
Paul Baranowski 2011-05-24 22:01:53 -04:00
parent fa17e63611
commit 435f9a9bd1
2 changed files with 3 additions and 2 deletions

View File

@ -236,7 +236,8 @@ function InstallBinaries()
exec("cp -R ".$AIRTIME_UTILS." ".CONF_DIR_BINARIES);
}
$suffix = date("Ymdhis");
// Backup the config files
$suffix = date("Ymdhis")."-1.8.1";
foreach ($configFiles as $conf) {
if (file_exists($conf)) {
echo "Backing up $conf to $conf$suffix.bak".PHP_EOL;

View File

@ -236,7 +236,7 @@ function InstallBinaries()
exec("cp -R ".$AIRTIME_UTILS." ".CONF_DIR_BINARIES);
}
$suffix = date("Ymdhis");
$suffix = date("Ymdhis")."-1.8.2";
foreach ($configFiles as $conf) {
if (file_exists($conf)) {
echo "Backing up $conf to $conf$suffix.bak".PHP_EOL;