Skip to content
Snippets Groups Projects
Commit ce80cb58 authored by Niko Ehrenfeuchter's avatar Niko Ehrenfeuchter :keyboard:
Browse files

Explicitly set DirectoryCopyFlags to "timestamps".

This parameter has a different default setting with RoboCopy in the
Server 2012 version: "DA" (data and attributes), compared to "T"
(timestamps) on e.g. Windows 7.

Forcing this setting to be the same for 2012 and 7 seems to fix the
issue of files not being transferred. More testing is needed though!

Refers to #11
parent e2f7af41
Branches
Tags
No related merge requests found
...@@ -75,6 +75,8 @@ namespace ATxService ...@@ -75,6 +75,8 @@ namespace ATxService
// _roboCommand.CopyOptions.CopyAll = true; // _roboCommand.CopyOptions.CopyAll = true;
_roboCommand.CopyOptions.CopyFlags = "DT"; _roboCommand.CopyOptions.CopyFlags = "DT";
_roboCommand.CopyOptions.DirectoryCopyFlags = "T";
// select options // select options
_roboCommand.SelectionOptions.ExcludeOlder = true; _roboCommand.SelectionOptions.ExcludeOlder = true;
// retry options // retry options
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment