From ae94cc6a73a938717856a696af62e8f0903a862e Mon Sep 17 00:00:00 2001 From: Carl Johnsen Date: Tue, 28 Jan 2025 14:31:40 +0100 Subject: [PATCH] Remote synchronization flavortext --- Tools/RemoteSynchronization/Program.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Tools/RemoteSynchronization/Program.cs b/Tools/RemoteSynchronization/Program.cs index 55518994a..65e61b26f 100644 --- a/Tools/RemoteSynchronization/Program.cs +++ b/Tools/RemoteSynchronization/Program.cs @@ -1,4 +1,4 @@ -// Copyright (C) 2025, The Duplicati Team +// Copyright (C) 2025, The Duplicati Team // https://duplicati.com, hello@duplicati.com // // Permission is hereby granted, free of charge, to any person obtaining a @@ -145,9 +145,11 @@ namespace RemoteSynchronization Console.WriteLine($"Deleted {deleted} files from {dst}"); } + // Copy the files var (copied, copy_errors) = await CopyAsync(b1s, b2s, to_copy, dry_run, verify); Console.WriteLine($"Copied {copied} files from {src} to {dst}"); + // If there are still errors, retry a few times if (copy_errors.Any()) { if (retries > 0) @@ -170,6 +172,7 @@ namespace RemoteSynchronization } } + // Verify the files if requested if (verify) { var not_verified = await VerifyAsync(b1s, b2s, to_verify); @@ -177,7 +180,7 @@ namespace RemoteSynchronization return not_verified.Count(); } - Console.WriteLine("Done"); + Console.WriteLine($"Remote synchronization completed successfully"); return 0; }