1) Modified main.cpp to save backup db to a tmp file.
[backups/.git] / main.cpp
index 2dd8048575903ac09b9214e56538db323c149158..81b3b2c897834c056d7bbd75f4ee98f6c3a73267 100644 (file)
--- a/main.cpp
+++ b/main.cpp
@@ -10,7 +10,7 @@
 using namespace std;
 
 static const unsigned int bytes_in_block = 0x800;
-static const char * dbname = "/var/lib/backups/backups.db";
+static const char * dbname = "/var/lib/backups/backups.db.tmp";
 
 unsigned long long read_time( istream &i ) {
   string date_string;