-
-
Notifications
You must be signed in to change notification settings - Fork 37
Add: GFS Backup Manager for LXC containers #384
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
This script implements a GFS (Grandfather-Father-Son) backup rotation scheme for LXC containers in Proxmox VE. Features: - Configurable retention periods for daily, weekly, and monthly backups - Dry-run mode for safe verification - Automatic backup storage detection - Comprehensive logging - Error handling The script has been tested in a production environment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One thing to add mybee:
When a user runs this script by hand and not as a cronjob, you get no output/visual clues for what is happening. Mybe you can incorporate /misc/core.func and use the msg_* function to make some nice messages for a user.
MONTHLY_RETENTION_MONTHS="12" # Months to keep monthly archives | ||
|
||
DRY_RUN="1" # 1: Only show what would be done. 0: Actually delete (CAUTION!). | ||
LOG_FILE="/var/log/lxc_backup_cleanup.log" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LOG_FILE="/var/log/lxc_backup_cleanup.log" | |
LOG_FILE="/opt/community-scripts/log/lxc_backup_cleanup.log" |
I know var/log is the typical place for logs, but we try to keep all community-script stuff in one folder.
@stlas can you change the little thing above? then we can test |
@MickLesk i am working on an much more advanced version as proxmox plugin. if it is tested i will come back. |
i put it into draft |
GFS Backup Manager for LXC Containers
This script implements a GFS (Grandfather-Father-Son) backup rotation scheme for LXC containers in Proxmox VE.
Features
Technical Details
The script has been tested in a production environment.
Configuration
Main configuration options at the start of the script:
Usage
The script can be run manually or as a cron job, ideal for automated backup management.