protected function backupFile($path) { $bakPath = $path . '.' . time() . '.bak'; copy($path, $bakPath); }