Skip to content

Conversation

@vargeeshj
Copy link

Modifed the backup_log file to handle the directory available if its not exist and backup the apps log as well.

@vargeeshj vargeeshj requested a review from a team as a code owner September 18, 2025 04:51
@vargeeshj vargeeshj requested a review from a team September 18, 2025 04:51
@CLAassistant
Copy link

CLAassistant commented Sep 18, 2025

CLA assistant check
All committers have signed the CLA.

Copy link
Contributor

@nhanasi nhanasi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please do proper test to ensure no breakage to existing logic,

@github-actions
Copy link

github-actions bot commented Sep 27, 2025

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@vargeeshj
Copy link
Author

I have read the CLA Document and I hereby sign the CLA

mkdir -p "$LogFilePathPerm/$APP_LOG"
backupLog "Move logs from $LOG_PATH to $LogFilePathPerm"
find "$LOG_PATH" -maxdepth 1 -mindepth 1 \( -type l -o -type f \) \( -iname "*.txt*" -o -iname "*.log*" -o -name "bootlog" \) -exec mv '{}' "$LogFilePathPerm" \;
find "$APP_LOG_PATH" -maxdepth 1 -mindepth 1 \( -type l -o -type f \) \( -iname "*.txt*" -o -iname "*.log*" \) -exec mv '{}' "$LogFilePathPerm/$APP_LOG" \;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not just about backup. A new sub directory in logs is not in alignment with the systems architecture. This also means that we will also loose capabilities to get telemetry insights.
Log monitoring, upload and other systems dealing with logging also might need to be thoughtfully revisisted.
This change cannot be taken in without involving system architects.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants