map<string, AWSSyncConfig_Connection> connections;
- string bucket_suffix;
-
AWSSyncConfig_S3 s3;
struct Target {
connections[new_conn["connection_id"]].init(new_conn);
}
- bucket_suffix = config["bucket_suffix"];
-
int r = s3.init(cct, config["s3"]);
if (r < 0) {
return r;
}
jf.close_section();
- encode_json("bucket_suffix", bucket_suffix, &jf);
s3.dump_conf(cct, jf);
{ // targets
owner += bucket_info.owner.id;
}
bucket_str += bucket_info.bucket.name;
- if (!bucket_suffix.empty()) {
- bucket_str = bucket_str + "-" + bucket_suffix;
- }
const Target *target{nullptr};
const string *path{nullptr};
if (find_target(bucket_info.bucket, &target)) {