File tree Expand file tree Collapse file tree 1 file changed +1
-10
lines changed
Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -123,25 +123,16 @@ public static void DeleteLocal()
123123
124124 public static void RunBackups ( )
125125 {
126- string output ;
127126 try
128127 {
129128 var repos = new DirectoryInfo ( RepoPath ) . GetDirectories ( ) ;
130129 foreach ( var r in repos )
131130 {
132131 using ( Process p = new Process ( ) )
133132 {
134- p . StartInfo = new ProcessStartInfo ( $@ "{ SvnLocation } \svnadmin", $@ "dump { r . FullName } > { BackupLocation } \{ r . Name } _{ DateTime . UtcNow : yyyyMMddHHmm} .dump")
135- {
136- RedirectStandardError = true
137- } ;
133+ p . StartInfo = new ProcessStartInfo ( $@ "cmd /c", $@ "{ SvnLocation } \svnadmin dump { r . FullName } > { BackupLocation } \{ r . Name } _{ DateTime . UtcNow : yyyyMMddHHmm} .svndump") ;
138134 p . Start ( ) ;
139135 p . WaitForExit ( ) ;
140- output = p . StandardError . ReadToEnd ( ) ;
141- if ( p . ExitCode != 0 )
142- {
143- // TODO: Send email with output ?
144- }
145136 }
146137 }
147138 }
You can’t perform that action at this time.
0 commit comments