File tree 2 files changed +7
-3
lines changed
2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change
1
+ # 0.x (Unreleased yet)
2
+ * Radically improve speed of incremental backups (check recent snapshots first)
3
+
1
4
# 0.5 (17 May, 2015)
2
5
* Code moved into class
3
6
* Fix for Ubuntu 15.10 (binaries moved from ` /usr/sbin ` to ` /bin ` , now both cases are supported)
Original file line number Diff line number Diff line change @@ -261,15 +261,16 @@ protected function determine_mount_point ($destination_external) {
261
261
protected function get_last_common_snapshot ($ history_db , $ history_db_external ) {
262
262
$ snapshots = $ history_db_external ->query (
263
263
"SELECT `snapshot_name`
264
- FROM `history` "
264
+ FROM `history`
265
+ ORDER BY `date` DESC "
265
266
);
266
267
while ($ snapshot = $ snapshots ->fetchArray (SQLITE3_ASSOC )['snapshot_name ' ]) {
267
268
$ snapshot_escaped = $ history_db ->escapeString ($ snapshot );
268
269
$ snapshot_found = $ history_db
269
270
->query (
270
271
"SELECT `snapshot_name`
271
- FROM `history`
272
- WHERE `snapshot_name` = ' $ snapshot_escaped' "
272
+ FROM `history`
273
+ WHERE `snapshot_name` = ' $ snapshot_escaped' "
273
274
)
274
275
->fetchArray ();
275
276
if ($ snapshot_found ) {
You can’t perform that action at this time.
0 commit comments