mirror of
https://github.com/community-scripts/ProxmoxVE-Local.git
synced 2026-03-31 06:23:54 -04:00
[PR #118] [MERGED] feat: Add backup and restore functionality for scripts directories #197
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/community-scripts/ProxmoxVE-Local/pull/118
Author: @michelroegl-brunner
Created: 10/13/2025
Status: ✅ Merged
Merged: 10/13/2025
Merged by: @michelroegl-brunner
Base:
main← Head:feature/backup-restore-scripts-directories📝 Commits (1)
b473e11feat: Add backup and restore functionality for scripts directories📊 Changes
1 file changed (+76 additions, -2 deletions)
View changed files
📝
update.sh(+76 -2)📄 Description
Description
This PR enhances the update.sh script to backup and restore the scripts directories (ct/, install/, tools/, vm/) during the update process.
Changes Made
🔧 Enhanced Functions
🛡️ Protection Mechanisms
📁 Directories Protected
scripts/ct/- Container templatesscripts/install/- Installation scriptsscripts/tools/- Utility toolsscripts/vm/- Virtual machine scriptsBenefits
✅ Data Preservation: Custom scripts are never lost during updates
✅ Safe Updates: Scripts are backed up before and restored after updates
✅ Rollback Support: Failed updates restore all scripts from backup
✅ Comprehensive Logging: Full visibility into backup/restore operations
Testing
Backward Compatibility
This change is fully backward compatible and doesn't affect existing functionality.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.