summaryrefslogtreecommitdiff
path: root/bin/bbackupd/BackupClientDirectoryRecord.cpp
Commit message (Collapse)AuthorAge
* There is no S_FIFO on Windows, fixes MSVC compile.Chris Wilson2011-03-26
|
* Rate limit file uploads using the configured MaxUploadRate, if any.Chris Wilson2011-01-12
|
* Workaround for apparent btrfs bug, where symlinks appear to be on aChris Wilson2011-01-09
| | | | | | | | different filesystem than their containing directory, by only checking for a different filesystem when checking directories, because files and special files can't be mount points anyway. Thanks to Toke Hoiland-Jorgensen.
* Log the device and inode numbers of directories and their entries whileChris Wilson2010-11-17
| | | | | scanning them, to debug Toke's report of symlinks appearing to be mounts.
* Log the total number of bytes uploaded to the server for each file.Chris Wilson2010-11-17
|
* Don't back up sockets and pipes, thanks to Mick Kappenburg for spotting Chris Wilson2010-05-20
| | | | | that the fix for Debian bug was incorrect.
* Notify about uploading changed attributes for files as well as Chris Wilson2010-02-24
| | | | | directories.
* Add notification about uploading new file attributes.Chris Wilson2010-02-24
| | | | | | Add check for changing file creation times on Windows, to cause the attributes to be uploaded again.
* Add missing space before file age in not uploading log message.Chris Wilson2009-11-26
|
* Ignore stat() errors on excluded directories.Chris Wilson2009-06-22
|
* Change type of BackupStoreFilename not to derive from std::string, soChris Wilson2009-03-29
| | | | | | | | it can't accidentally be used as one. Fix use of encrypted filename in deleted file message, thanks to Kenny Millington for reporting.
* Fix tests (hopefully) on Win32 for struct stat ino_t change from 16 toChris Wilson2009-03-21
| | | | | 64 bits.
* Catch exceptions from BackupClientFileAttributes::ReadAttributesChris Wilson2008-12-05
| | | | | | | | | | | | | | | | | during backup, and report which file caused them. If we cannot read the attributes of a directory to find its inode number, assume that it hasn't been renamed. Reformat "Storing uploaded file ID" log line to shorten source code lines. Change "Storing uploaded file ID" and "Found conflicting parent ID" messages not to print the path, which duplicates data earlier in the same message. Fix typo in comment.
* Fix missing parentheses on stored file ID messages.Chris Wilson2008-12-01
|
* Reformat comments for readability.Chris Wilson2008-10-03
|
* Log creation of directory records and warn on conflicting records.Chris Wilson2008-10-03
|
* Add file logging support (LogFile and LogFileLevel config options).Chris Wilson2008-09-26
| | | | | | | | | | | | | | | | Ensure that backup-finish is always called, and add a new event, backup-ok, which is called just before backup-finish when the backup run was successful. Keep track of the last backup status notification sent (excluding backup-start and backup-finish) and send a notification whenever it changes. Add a new boolean option, NotifyAlways, to override that check and always send notifications to the NotifyScript after every backup run, for notify scripts which do their own state tracking or otherwise require notification on every event.
* Make upload decision messages (logged with LogAllFileAccess) clearerChris Wilson2008-09-26
| | | | | to help automated log processing.
* Propagate BackupStoreException::SignalReceived up to BackupDaemon to Chris Wilson2008-08-21
| | | | | | abort the run, rather than treating it as a failure to upload a single file.
* More use of new interfaces, compile fix for [2245].Chris Wilson2008-08-21
|
* Pass a RunStatusProvider and a ReadLoggingStream::Logger from Chris Wilson2008-08-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | BackupDaemon through BackupClientDirectoryRecord, BackupStoreFile and BackupStoreFileEncodeStream to ReadLoggingStream, to allow progress callbacks during file upload and cancelling upload part-way. Implement ReadLoggingStream::Logger in BackupClientDirectoryRecord::SyncParams, which thunks the notifications back to the ProgressNotifier. Add the SysadminNotifier interface from Boxi. Add NotifyIDMapsSetup() to ProgressNotifier. Change BackupClientDirectoryRecord::SyncParams to store references to the individual callback interfaces rather than BackupDaemon. Initialise all members in BackupDaemon. Add ability for BackupDaemon user to override the ProgressNotifier, LocationResolver, SysadminNotifier and RunStatusProvider that will be used during the backup. Make BackupDaemon::Location class public and provide access to the configured locations for Boxi (dangerous, they could be modified without BackupDaemon knowing it).
* Reformat comments for readability.Chris Wilson2008-08-10
|
* Don't warn about ignoring sockets and FIFOs during backup, thanks toChris Wilson2008-07-03
| | | | | Tollef Fog Heen (http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=479145)
* Track and log file deletions by name.Chris Wilson2008-05-28
| | | | | | | | | | | | Split crypto init and file sync process into its own method, to reduce call depth and facilitate calling in process from tests. Differentiate between 3 uses of stat in BackupClientDirectoryRecord by renaming the structures. Use stat instead of lstat when checking the filesystem that's holding an entity, in case it's a symbolic link to a different filesystem.
* Improve LogAllFileAccess logging by making the simple case (file notChris Wilson2008-04-09
| | | | | changed) easier to read.
* Undo mangling by tailorChris Wilson2008-04-04
|
* TailorizationChris Wilson2008-04-04
| | | | | | | | | | | Import of the upstream sources from Repository: http://localhost:8000/ Kind: hg Revision: 7807b7768163f1c2537756abe5416063989cebb1 Original author: tailor@rocio.int.aidworld.org Date: 2008-03-16 19:44:36+00:00
* Replace all remaining use of TRACEx() macros with logging framework.Chris Wilson2008-03-29
| | | | | Remove the old TRACEx macros to catch any remaining uses.
* Don't warn about mount points which are excluded, thanks to Matt Brown forChris Wilson2008-01-20
| | | | | reporting this bug.
* Fix comments. (merges [1812])Chris Wilson2007-09-07
|
* Use ProgressNotifier to report upload exceptions (merges last part of [1342])Chris Wilson2007-09-01
|
* Log more detailed errors when the server returns an error while uploadingChris Wilson2007-09-01
| | | | | a file. (merges [1781])
* Notify about full file uploads. (refs #3)Chris Wilson2007-04-28
|
* Trace reasons for uploading (or not) each fileChris Wilson2007-03-22
|
* Moved MakeFullPath into its own library file so that we can share itChris Wilson2007-01-17
| | | | | (BackupQueries needs it too) (refs #3)
* Allow suppressing warnings about unsupported file types by excluding thoseChris Wilson2007-01-16
| | | | | files by name, using ExcludeFile (refs #3)
* Cosmetic whitespace fix (refs #3)Chris Wilson2007-01-16
|
* Skip mount points and NTFS reparse points inside a location, even ifChris Wilson2007-01-15
| | | | | not excluded (refs #3)
* Don't die on unreadable files (refs #3)Chris Wilson2007-01-14
|
* Added logging of directory scans and excluded files. (refs #3)Chris Wilson2007-01-11
|
* Added a new config option, LogAllFileAccess, which will log access to every Chris Wilson2007-01-11
| | | | | | file and scanning every directory. The current implementation is taken straight from the Boxi branch. To be extended shortly. (refs #3)
* Send keepalives when needed while scanning large directories (refs #3, Chris Wilson2006-12-03
| | | | | refs #9)
* * Use readdir's d_type field to determine type of directory entry withoutChris Wilson2006-10-14
| | | | | | statting the entry, which allows users to exclude unreadable entries to suppress warnings about them on Win32 (refs #3)
* * bin/bbackupd/BackupClientDirectoryRecord.cppChris Wilson2006-08-31
| | | | | | - Sync subdirectories even when store is full, allows user to exclude files to free up space to complete their backups
* * bin/bbackupd/BackupClientDirectoryRecord.cppChris Wilson2006-08-30
| | | | | | - Restructured the backup decision logic to make it easier to understand and debug
* * bin/bbackupd/BackupClientDirectoryRecord.cppChris Wilson2006-08-30
|
* * infrastructure/BoxPlatform.pm.inChris Wilson2006-08-30
| | | | | | | * win32.bat * bin/bbackupd/BackupClientDirectoryRecord.cpp - Merged back changes from trunk
* * mergeChris Wilson2006-07-27
| | | | | | | - This is my current patch queue. I think that all of these are safe to apply. This is just under half of the pending changes in chris/general (the easy half).
* Merge chris/win32/vc2005-compile-fixes @ r455, add infrastructure/msvc to ↵Ben Summers2006-02-13
| | | | distribution
* Merge chris/bb-save-state, resolving conflictsBen Summers2006-01-30
|