Commit Graph
61 Commits
Author SHA1 Message Date
verhoek 30cd41585b Corrected spelling function name. 2018-05-16 20:08:40 +02:00
Kenneth Skovhede 2b54bb9415 Removed the redundant byte-array-to-string method from the MD5 module, and added a using directive.
Added some additional logging to better diagnose issues with VSS/LVM snapshots.
2018-05-09 10:44:32 +02:00
Daniel Gehriger 0b43c467c7 Merge remote-tracking branch 'upstream/master' into feature/usn 2018-04-25 17:19:13 +02:00
Kenneth Skovhede e51e1b9e5a Implemented option to use exclude filenames to mark folders for exclusion by placing a specially named file inside 2018-04-24 11:25:37 +02:00
Daniel Gehriger 6ce298b4af Fixed USN in conjunction with snapshots on Windows 2018-04-22 23:37:45 +02:00
Daniel Gehriger 96d1390412 Disabling USN for now when snapshots are used - this will be enabled shortly 2018-04-20 09:44:48 +02:00
Daniel Gehriger 8af63b1d5d Fixed some of the issues reported by codacy. The others are incorrect warnings. 2018-04-20 09:17:06 +02:00
Daniel Gehriger 2c1a0ddb4e Implemented backup based on changes recorded in NTFS USN journal 2018-04-19 22:59:28 +02:00
Kenneth Skovhede 842fd96543 Implemented a new logging system that is more transparent and allows a more granular way of picking log messages.
Added ID's to each log message and each exception to allow later introduction of a Knowledgebase service that explains each error in more detail.
2018-03-15 09:12:34 +01:00
Tyler Gill 08e0708a95 Change Duplicati's handling of reparse points, so that not all reparse points are treated as symlinks.
This is inspired largely by the new (/ returning) feature of OneDrive in Windows 10 Fall Creator's Update, which downloads files on-demand.
A side effect of that change is that the OneDrive folder (and subfolders of it) are marked as reparse points, even though they are not technically standard symlinks.
With this change, a new extension method IsSymlink is added for ISnapshotService and ISystemIO, which checks both the file attributes (for reparse point) and the symlink target path (if null, the path is not treated as a symlink).
All places that previously checked only the file attributes have been updated to use either this method (or at least the same logic, in the case of the core BackupHandler file check).
One side effect of this change is that '--symlink-policy=store' no longer ignores empty symlinks - they are now treated as regular files.
If there are empty symlinks, they will now be backed up as if they were regular files, but I don't know what the conditions are that create symlinks like that, so this might not effect anything in practice.
2018-02-06 13:24:49 -07:00
Kenneth Hsu 8810e0130d Make string comparisons use ordinal (binary) sort rules.
These string comparisons should not be culture-aware.
2017-11-26 11:19:54 -08:00
Kenneth Hsu 65593ddd93 Remove unncessary sorting.
The original implementation only sorted the collection if there were
duplicates.  This indicates that the result does not really need to be
sorted.
2017-09-29 21:41:41 -07:00
Kenneth Hsu c8ac480c09 Use helper method to get unique items and duplicates. 2017-09-28 22:02:05 -07:00
Kenneth Skovhede cafb8e6ff1 Fixed issues with reporting the correct error message when enumerating files 2017-01-23 20:53:18 +01:00
Kenneth Skovhede 1f7110503a Updated unix symlinks handling to store correct metadata for symlinks 2016-11-03 13:11:53 +01:00
Max 5c7dfcada7 Refactor of hyper-v backup 2016-10-22 23:08:27 +02:00
Max e4a1ee9afa ability to see hyperv vms paths 2016-10-16 22:36:29 +02:00
Max f56d4f6ab9 changed structure of hyper-v source 2016-10-16 02:18:56 +02:00
Max c09e69765e Merge branch 'master' 2016-10-15 16:18:38 +02:00
Max f68695ca41 Added ability to backup hyperv using webgui 2016-10-15 16:18:26 +02:00
Max 8ede30b0a1 small adjust vss 2016-10-10 23:25:27 +02:00
Max b62c6d73ea fixes 4 2016-10-07 15:21:17 +02:00
Max d03c794d0f fixes 3 2016-10-07 15:03:53 +02:00
Max 1434447614 fixes2 2016-10-07 10:37:39 +02:00
Max bac9dcca05 fixes 2016-10-07 10:04:52 +02:00
Max b6eb6d444b error handling 2016-10-06 00:45:41 +02:00
Max 0cbd292924 fixes for hyper-v
basic logging
added safe checks
2016-10-06 00:26:54 +02:00
Kenneth Skovhede 3441bdb1c5 Tabs-to-spaces fix 2016-09-23 14:11:53 +02:00
Kenneth Skovhede 8fe190f28c Cleaned up the support for HyperV backups, and added proper options 2016-09-23 10:16:42 +02:00
Kenneth Skovhede f7d5fa4137 Merge branch 'Hyper-V_Backup' of https://github.com/GNicho/duplicati into GNicho-Hyper-V_Backup
Removed unwanted app.config etc

# Conflicts:
#	Duplicati/CommandLine/RecoveryTool/Duplicati.CommandLine.RecoveryTool.csproj
#	Duplicati/Library/Snapshots/Duplicati.Library.Snapshots.csproj
#	Duplicati/Library/Snapshots/packages.config
2016-09-23 09:30:28 +02:00
Kenneth Skovhede 0c68daff6c Fixed all whitespace to be 4 spaces instead of tabs 2016-09-15 11:39:27 +02:00
Kenneth Skovhede a942c48172 Fixed accessing metadata through the snapshot, if one exists.
This fixes #1911 and #1693
2016-08-31 09:19:24 +02:00
Kenneth Skovhede f393f6b8c2 Fixed #1905
The AlphaVSS library now returns path from the listfiles/listfolders without the UNC prefix, so the code re-adds this to ensure the mapping from snapshot path to logical path is maintained.
2016-08-30 12:28:17 +02:00
GNicho c664157547 Finished gathering VHD's
Finished the feature to merge all VHD's before backing up. It now
collects information of the VM and merges the VHD's. We still need to
edit the XML to start from the base VHD and remove the Snapshottree.
2016-05-17 16:36:23 +02:00
GNicho 2a983175a7 Working on collecting parent paths 2016-05-13 15:12:21 +02:00
GNicho 2dd364ee9b Rewrote the m_sourcepaths as a List
Tried to stay clear of existing code but I eventually changed this to be
a List instead of an array. It's much more flexible. There really is no
performance gain with Arrays unless when we know that data is fixed
length and we want to micro-optimise.

Removed lot's of comments since all documentation can come here now.

Note: HyperV vss-writer; are already implicitly included in the
vss-writers vss-writer will disable all other vss-writers.
2016-05-13 10:43:20 +02:00
GNicho 7e788398c8 Merging AVHD's and VHD's
Implemented a feature to merge all VHD's in one. We could present this
as an option the the end-user.

It would also make up for a cleaner backup.

The XML still needs to be edited after the merge so that the config will
point to the parent VHD. Also the snapshots should be removed, these can
still be viewed in the Hyper-V Manager.
2016-05-11 16:50:32 +02:00
GNicho d9cdf55bd8 XML Reader Helpers
Wrote a function to load a XML file. We always copy the XML to the
tempfolder since it might be used by another process when we try to load
the file.

The other function will retrieve the associated active VHD of the
configuration.

The next step would be to copy certain configurations settings from the
backup XML to implement in the previously created Hyper-V machine.
2016-05-10 17:01:14 +02:00
GNicho 03d51410f0 Refactoring Creating Hyper-V in HyperVUtility
Cleaned up the code. Creating Hyper-V Machines
2016-05-10 11:27:41 +02:00
GNicho cd32ef98d5 Creating a VM
Trying to create Test VM from within Duplicati
Refactored some code backup up VM
2016-05-09 17:00:06 +02:00
GNicho c38d4a38cf Added Hyper V Support
Wrote a class and edited the Windowssnapshot to retrieve VM files on a
local Hyper. These will be added to the sourcepath. Duplicati takes care
of the rest.
2016-05-02 14:12:18 +02:00
Kenneth Skovhede 8d13e698eb Updated copyright notices 2015-01-20 21:44:52 +01:00
Kenneth Skovhede e3c6682d29 Improved handling of metadata, especially on Linux/OSX 2014-11-06 01:23:31 +01:00
Kenneth Skovhede b1ce24d504 Added hardlink detection on Linux/OSX 2014-04-02 11:02:06 +02:00
Kenneth Skovhede 8e6b034173 Changed all file timestamps to read utc directly instead of converting from local time 2014-02-27 14:14:48 +01:00
Kenneth Skovhede 26be8628cd Added support for detecting block devices under OSX/Linux.
Added support for reading extended attributes under OSX/Linux
2013-09-08 00:37:49 +02:00
Kenneth Skovhede a9ca999962 Updated to allow files as input arguments to backup 2013-06-29 12:17:52 +02:00
Kenneth Skovhede 8f69fc85c2 Removed a bunch of warnings 2013-06-26 21:29:03 +02:00
Kenneth Skovhede a3b25d273e Merge branch 'master' into sandboxes/Kenneth/ForestHash 2013-06-17 21:07:32 +02:00
Kenneth Skovhede 17bdd64108 Updated the AlphaVSS library to newest version 2013-06-17 21:06:55 +02:00