Skip to content

Conversation

Adembc
Copy link
Owner

@Adembc Adembc commented Sep 12, 2025

This PR introduces a backup mechanism for files managed by lazyssh.
Before applying any changes, the original file will be backed up once, ensuring a safe rollback path if needed.

Changes

  • Added logic to create a one-time backup of the original file before management.
  • Works alongside the existing rolling backup system.

Motivation

While lazyssh already maintains rolling backups (up to 10 recent versions), it did not preserve the original unmodified file. This change ensures that users always have a safe restore point to the file’s pristine state, improving reliability and safety.

Notes

  • Original backup is created only once before the first modification.

  • Existing rolling backup system (last 10 versions) remains unchanged.

@Adembc Adembc self-assigned this Sep 12, 2025
@Adembc Adembc merged commit e75b61e into main Sep 12, 2025
This was referenced Sep 12, 2025
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.

1 participant