Commit Graph

181 Commits

Author SHA1 Message Date
Martin
11c8fa8aa6 Fix symbolic link to file deletion on Windows 2016-09-29 11:35:06 +02:00
Martin
e9deebab36 Log about backup being scheduled/manually started 2016-09-26 18:36:10 +02:00
Martin
aac08d5283 Make btrfs subvolumes read only after backup 2016-08-19 19:48:10 +02:00
Martin
932488a4b0 Add sparse file entries even if hashes are currently not in the database 2016-08-18 14:07:21 +02:00
Martin
135100ec9f Save partial backup after disk error 2016-08-13 01:37:17 +02:00
Martin
b1471a0c6d Fail backup if referencing/deleting shadow copy fails 2016-08-08 13:34:27 +02:00
Martin Raiber
2b8bffba81 Fix directory symlink to directory change 2016-08-01 15:10:02 +02:00
Martin
b47680a901 WIP: Windows component backup 2016-07-27 02:01:08 +02:00
Martin
70f59062cc Escape metadata filenames while deleting in hash snapshot 2016-07-22 20:46:23 +02:00
Martin
346b9f3697 Fix directory to directory symlink change 2016-07-22 18:30:12 +02:00
Martin
210f789939 Fix directory to directory symlink change 2016-07-22 17:32:24 +02:00
Martin
7fe2651423 Fix directory to directory symlink change 2016-07-22 16:42:06 +02:00
Martin
71bebfd7fc Preserve last error across logging 2016-07-08 20:47:23 +02:00
Martin
4998fbcaa2 Sync filesystem before setting file backup to done, not to complete 2016-06-14 15:14:15 +02:00
Martin
44f9ae62df Fix some typos and spellings 2016-06-13 16:19:05 +02:00
Martin
00938f77f5 Option to ignore read and hash errors 2016-06-10 19:18:58 +02:00
Martin
6ead30936d Improved read error handling during file backup 2016-06-09 23:33:32 +02:00
Martin
25e94fb975 Log block differences download into backup log, not client log 2016-06-08 17:25:18 +02:00
Martin
c70e345d8d Fix: Write symbolic link orig path 2016-06-07 15:26:07 +02:00
Martin
21a40dbdf0 Do not try to add sparse file entries for special and symlink files 2016-06-07 12:49:23 +02:00
Martin
5f4f8672cb Fix Linux root dir metadata 2016-06-03 02:08:46 +02:00
Martin
cce936ade7 Gracefully handle case where symlinking data directory succeeds and symlinking metadata directory fails 2016-05-31 00:09:21 +02:00
Martin
958bc7f2fd More consistent backup running accounting 2016-05-30 13:41:33 +02:00
Martin
ec5b774a3a Modulo operator result in C can be negative 2016-05-28 23:31:49 +02:00
Martin
0efb779e27 Adler32 does not work well with small strings. Use md5 instead 2016-05-28 22:37:59 +02:00
Martin
87c93b9cc0 copy_file_entries_sparse_modulo should be at least one 2016-05-25 15:13:59 +02:00
Martin Raiber
5abdf19266 Prevent clientlist deletion during backup 2016-05-18 13:15:41 +02:00
Martin Raiber
cf9b8b33f1 Only link files with at least 2K size 2016-05-16 18:47:19 +02:00
Martin
35e133212e New file backup status "completed with issues" and OS and client version persistence 2016-05-11 14:25:50 +02:00
Martin
a8c53ca89f Improved file meta-data shutdown procedure 2016-05-08 22:16:12 +02:00
Martin
19d79e8e8f Improved handling of case where snapshot removal is delayed because of still ongoing meta-data transfers 2016-05-08 16:28:38 +02:00
Martin
a97a2d41c5 Propagate incremental file backup result correctly 2016-05-03 18:52:04 +02:00
Martin
e3135f18df Option to set orig_path for scripts/tar files 2016-05-02 02:52:51 +02:00
Martin
f537a62ced Set urbackup_backup_scripts permissions to allow all 2016-05-01 20:30:19 +02:00
Martin
a6f792b049 Verify number of files loaded via meta-data 2016-05-01 17:17:30 +02:00
Martin
d132146ce0 Print warnings with no_error
(cherry picked from commit 9b163bf8f1a29aa65ffc821dcc096ae41a2c35d4)
2016-04-20 13:16:52 +02:00
Martin
b5e5e6ca30 Fix deleting script dir from snapshot
(cherry picked from commit 5be54ab41a20cd7c455a0bd6074e7ce2b4651006)
2016-04-20 13:16:47 +02:00
Martin
8fd68ce723 Delete client list before using it
(cherry picked from commit 02d6869a5797b524745dfbfcde1f3950802e2e2f)
2016-04-19 17:51:37 +02:00
Martin
b20065d2fa Get new session identity after image backup reconnect if needed 2016-04-19 02:42:19 +02:00
Martin
01a99e0efe Handle read errors from file list
(cherry picked from commit ad88e9bca6d3c8bc8062f46a8f17684044e99a14)
2016-04-07 16:18:56 +02:00
Martin
2cd26251cf Fix deletion logic
(cherry picked from commit 02e7d8970e0da6dfe3c825a993ef95fc785094f4)
2016-04-07 12:24:36 +02:00
Martin
3bc5756db3 A file can be a directory in the scripts directory
(cherry picked from commit ca1bdf7730569f3471c4826dc6ec98d9e4752fb5)
2016-04-05 13:16:51 +02:00
Martin
57e1570aac Consistent pre/post backup scripts/hooks 2016-04-01 00:37:24 +02:00
Martin
68062c693d Correctly log full file backup if started by incremental file backup
(cherry picked from commit 650188eb857ed87d531356447d7cb5163b83f78e)
2016-03-02 21:21:05 +01:00
Martin
228223f0aa New tree hashing method 2016-02-16 02:17:57 +01:00
Martin
1fb1cde092 Copy last file entries on resumed file backup via temporary table again 2016-02-11 19:38:22 +01:00
Martin
7b0bc88ec6 Exponential back off if file does not exist with snapshot 2016-02-06 20:17:44 +01:00
Martin
ffc6ebffba In progress: Tar file backup 2016-02-05 21:42:24 +01:00
Martin
62834a6e18 Check for metadata of symlinks or special files if not using snapshots 2016-02-03 23:36:01 +01:00
Martin Raiber
48c5641141 Bugfix: Put symlinked files into client file list on incremental backup 2016-01-31 15:13:12 +01:00
Martin Raiber
f77b6d6571 Do not check client side hash with 1.x clients 2016-01-27 19:21:29 +01:00
Martin
b0c7d1443a Show progress bytes and block restore on command line till it is finished per default 2016-01-24 15:07:06 +01:00
Martin
f8f523df69 Shorter thread names 2016-01-21 02:29:47 +01:00
Martin
6da3e72509 Log how much could be linked via client-side hashes 2016-01-21 01:31:10 +01:00
Martin
108711a57a Show download speed and ETA 2016-01-21 00:45:13 +01:00
Martin
2fadd9d973 Fail backup if file does not exist and there is a snapshot for the file present 2016-01-17 17:28:09 +01:00
Martin
b3903cc1c4 Checkpoint files.db in separate thread and give all threads nice names 2016-01-15 16:19:23 +01:00
Martin
b63c5d6b78 Refresh file backup progress more regularly 2016-01-15 03:31:19 +01:00
Martin
fdc20d5c48 The database queries need to be freed in the same thread 2016-01-14 00:33:19 +01:00
Martin
1a3bb3865d Separated files, links and link journal into three new database files 2016-01-13 22:22:16 +01:00
Martin
60e77964ad + Linux sparse file support - some bugs 2016-01-11 21:11:14 +01:00
Martin
95e76550cd Sparse file handling (TODO: Linux) 2016-01-11 00:29:46 +01:00
Martin
7a29c2aea7 Clientsubname as parameter when stopping snapshot 2016-01-08 18:16:16 +01:00
Martin
5345149dd9 In the hash snapshot a symlinked directory is represented by a file 2016-01-08 15:04:14 +01:00
Martin
8905f1f972 Show correct process action when resuming file backup 2016-01-03 17:14:13 +01:00
Martin
c00827d8d2 Show backed up volume in progress 2016-01-02 17:42:00 +01:00
Martin
9ee64e650a Updated copyright 2016-01-02 16:38:00 +01:00
Martin Raiber
dc96d1c592 Log which metadata is missing 2015-12-25 10:20:11 +01:00
Martin
bb525b355c Optimized file list a bit 2015-12-22 17:32:17 +01:00
Martin
c3d36bd55c Compatiblity fix 2015-12-21 16:39:45 +01:00
Martin
7c71291555 Fixed incremental script download and new clientlist filename scheme 2015-12-20 20:52:12 +01:00
Martin
9e54628380 Fixed some bugs 2015-12-20 02:19:57 +01:00
Martin
4da3f08927 End-to-end checksumming of script outputs and script error handling improvement 2015-12-19 23:40:41 +01:00
Martin
5fbb571411 REad file hashes from metadata + refactoring 2015-12-19 21:47:58 +01:00
Martin
07e704156d Added checksums to metadata and improved partial metadata handling 2015-12-19 18:01:21 +01:00
Martin
7cb5d0678a Made Linux restore working 2015-12-18 16:58:50 +01:00
Martin
9f16a4c1ac Option to send report only if the failure is not caused by client timeout 2015-12-17 01:39:41 +01:00
Martin
0a27d96463 Do not exponentially backoff if backup fails because of client timeout 2015-12-17 01:28:34 +01:00
Martin
7c76a493b4 Refactored incremental directory creation/metadata logic 2015-12-16 20:10:51 +01:00
Martin
9eff84f105 Fix symlink creation during incremental backups 2015-12-16 19:37:16 +01:00
Martin
dc1b5cd734 Move stop action back to end of queue if it is not at the end already 2015-12-16 15:42:00 +01:00
Martin
f04481f1b5 Lower readd size limit significantly 2015-12-16 00:40:13 +01:00
Martin
2f9adb1bec Fixed readding of file entries 2015-12-16 00:36:31 +01:00
Martin
cefd5c7b59 Bug fixes with regards to streaming and queuing 2015-12-15 12:05:25 +01:00
Martin
87e67672d3 Small cleanup 2015-12-14 01:29:57 +01:00
Martin
f12c0d57f5 Made restore work on Windows 2015-12-13 21:45:59 +01:00
Martin
9bab514e22 Removed UTF16 string (std::wstring) in most places. UTF8 everywhere! 2015-12-13 16:17:36 +01:00
Martin
9397f8ef03 Removed deleteFilesInSnapshot log message 2015-12-12 19:23:15 +01:00
Martin
7151865663 Handle directory differences with snapshots 2015-12-12 19:21:57 +01:00
Martin
dff15ecbc6 Transfer and use directory change indicator to correctly update directory metadata if it changes 2015-12-12 17:15:51 +01:00
Martin
f771cad0ca Delete folder normally when using snapshotting mode 2015-12-12 14:56:53 +01:00
Martin Raiber
a84334c052 Merge branch 'dev' of 192.168.0.40:/home/git/urbackup_backend into dev
Conflicts:
	urbackupserver/FullFileBackup.cpp
	urbackupserver/ImageBackup.cpp
2015-12-11 22:22:15 +01:00
Martin Raiber
fffb7326b8 Transfer image bitmap during image backup 2015-12-11 22:19:46 +01:00
Martin
f1c7eff094 Improved clientctl command line interface and fixed creation, modified and access time backup and display 2015-12-11 20:34:05 +01:00
Martin
3fdb4112a3 Make hash compile-time configurable
(cherry picked from commit 0f9cbb1812fa957672fca20240b8b544757cfad8)

Conflicts:
	urbackupclient/ClientServiceCMD.cpp
	urbackupclient/client.cpp
	urbackupclient/client.h
	urbackupserver/server_get.cpp
	urbackupserver/server_get.h
	urbackupserver/server_prepare_hash.cpp
2015-12-11 12:16:48 +01:00
Martin
b24b7b7266 Save file path correction for later metadata application 2015-12-11 11:50:52 +01:00
Martin
5051e184c1 Properly reorder setting directory modified time; "one_filesystem" flag for directories and fixes 2015-12-10 18:19:10 +01:00
Martin
e90cb501ae Multiple virtual clients per real client 2015-12-09 22:53:57 +01:00
Martin
27686b08d6 Linux file backups with snapshots and symbolic links 2015-12-07 01:06:32 +01:00
Martin
5f4b13c987 Flush file index before setting file backup to done 2015-12-05 18:43:14 +01:00