@@ -85,6 +85,8 @@ int CmdSync::execute(std::string& output) {
85
85
out << format (" Syncing with {1}" , server_dir) << ' \n ' ;
86
86
}
87
87
replica->sync_to_local (server_dir, avoid_snapshots);
88
+
89
+ out << format (" Synced with {1}" , server_dir) << ' \n ' ;
88
90
} else if (aws_bucket != " " ) {
89
91
std::string aws_region = Context::getContext ().config .get (" sync.aws.region" );
90
92
std::string aws_profile = Context::getContext ().config .get (" sync.aws.profile" );
@@ -132,6 +134,8 @@ int CmdSync::execute(std::string& output) {
132
134
replica->sync_to_aws_with_default_creds (aws_region, aws_bucket, encryption_secret,
133
135
avoid_snapshots);
134
136
}
137
+
138
+ out << format (" Synced with AWS bucket {1}" , aws_bucket) << ' \n ' ;
135
139
} else if (gcp_bucket != " " ) {
136
140
std::string gcp_credential_path = Context::getContext ().config .get (" sync.gcp.credential_path" );
137
141
if (encryption_secret == " " ) {
@@ -141,6 +145,8 @@ int CmdSync::execute(std::string& output) {
141
145
out << format (" Syncing with GCP bucket {1}" , gcp_bucket) << ' \n ' ;
142
146
}
143
147
replica->sync_to_gcp (gcp_bucket, gcp_credential_path, encryption_secret, avoid_snapshots);
148
+
149
+ out << format (" Synced with GCP bucket {1}" , gcp_bucket) << ' \n ' ;
144
150
} else if (server_url != " " ) {
145
151
if (client_id == " " || encryption_secret == " " ) {
146
152
throw std::string (" sync.server.client_id and sync.encryption_secret are required" );
@@ -150,6 +156,8 @@ int CmdSync::execute(std::string& output) {
150
156
}
151
157
replica->sync_to_remote (server_url, tc::uuid_from_string (client_id), encryption_secret,
152
158
avoid_snapshots);
159
+
160
+ out << format (" Synced with sync server at {1}" , server_url) << ' \n ' ;
153
161
} else {
154
162
throw std::string (" No sync.* settings are configured. See task-sync(5)." );
155
163
}
0 commit comments