Skip to content

Commit 8e3d42d

Browse files
committed
Shush rsync
1 parent c8a7a09 commit 8e3d42d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

entrypoint.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -288,15 +288,15 @@ create_s3_config() {
288288
}
289289

290290
create_atomic_backup() {
291-
info "Starting atomic backup process for $SERVICE_NAME"
291+
debug "Starting atomic backup process for $SERVICE_NAME"
292292

293293
# To make the backup atomic we first create a copy of the data directory.
294294
TEMP_DIR=$(mktemp -d -t "backup-${SERVICE_NAME}-XXXXXXXX")
295295
TEMP_DATA_DIR="$TEMP_DIR/data"
296296
debug "Creating atomic copy of $DATA_DIR to $TEMP_DATA_DIR"
297297

298298
# Use rsync for reliable copying with proper handling of permissions, symlinks, etc.
299-
rsync -av --delete "$DATA_DIR/" "$TEMP_DATA_DIR/" || die "Failed to create atomic copy of data directory"
299+
rsync -qav --delete "$DATA_DIR/" "$TEMP_DATA_DIR/" || die "Failed to create atomic copy of data directory"
300300
debug "Atomic copy completed successfully to $TEMP_DATA_DIR"
301301

302302
# Create tar with temporary name first
@@ -309,7 +309,7 @@ create_atomic_backup() {
309309
tar -tzf "$TEMP_BACKUP_FILE" > /dev/null 2>&1 || die "Failed to verify tar archive"
310310
mv "$TEMP_BACKUP_FILE" "$BACKUP_FILE" || die "Failed to move temporary backup file"
311311

312-
info "Atomic backup created successfully: $BACKUP_FILE"
312+
debug "Atomic backup created successfully: $BACKUP_FILE"
313313
return 0
314314
}
315315

0 commit comments

Comments
 (0)