VelocityAutoBackup
是一个面向 Velocity 代理服务器的全面插件,旨在提供完全自动化、灵活且安全的备份解决方案。通过直接集成 Google Drive(谷歌云端硬盘),该插件确保所有关键服务器数据都安全地存储在异地,并可随时访问。
本插件专为配合个人 Google 账号使用而设计,利用独特的授权流程来绕过常见的技术限制。
✨ 主要功能
灵活的调度设置 ⏰:通过 config.yml 配置一天中的多个备份时间。您可以安排每天执行两次、三次或更频繁的备份,并支持时区设置以实现精确调度。
即时手动备份 ⚡:通过 /backup-now 命令,管理员可以随时触发完整备份流程,无需等待预定时间。此功能非常适合在执行维护或重大服务器更改之前使用。
动态文件命名 ?:完全掌控备份文件的命名规则。使用如 {server_name} 和 {timestamp} 这样的占位符,以及可自定义的日期格式(例如 yyyy-M-d--HH-mm),生成条理清晰、易于搜索的文件名。
完整的 Google Drive 集成 ☁️:备份文件被压缩为 .zip 格式后,自动上传至您 Google Drive 中的指定文件夹。在完成一次安全的一次性授权过程后,插件支持使用个人 Google 账号。
可靠的防循环逻辑 ?️:内置智能机制,自动从备份过程中排除插件自身的目录,防止出现导致文件大小无限增长的“备份循环”问题。
如何设置 VelocityAutoBackup
配置
所有设置均在 /plugins/velocityautobackup/config.yml 中管理。
# 每日备份时间列表,格式为 "HH:mm"。
backup-times:
- "02:00"
- "14:00"
# 调度使用的时区。
timezone: "UTC"
# 备份将上传到的 Google Drive 文件夹 ID。
google-drive-folder-id: "在此粘贴您的文件夹ID"
# 凭据 JSON 文件的名称。
credentials-file-name: "credentials.json"
# 用于备份文件名中的服务器名称。
server-name: "proxy"
# 备份文件名的格式。
# 使用 {timestamp} 和 {server_name}。
backup-file-name: "Backup-{server_name}-{timestamp}.zip"
? 权限
| 命令 |
描述 |
权限 |
/backup-now |
强制立即备份。 |
velocityautobackup.command.backupnow |
? 许可证
本项目基于 MIT 许可证开源。
VelocityAutoBackup
is a comprehensive plugin for the Velocity proxy server, designed to provide a fully automated, flexible, and secure backup solution. With direct integration into Google Drive, this plugin ensures all your critical server data is stored safely off-site and is accessible at any time.
This plugin is specifically designed to work with personal Google accounts, utilizing a unique authorization flow to bypass common technical limitations.
✨ Key Features
Flexible Scheduling ⏰: Configure multiple backup times within a single day through the config.yml. You can schedule backups to run twice, three times, or as often as you need, complete with timezone settings for precise scheduling.
Instant Manual Backups ⚡: With the /backup-now command, administrators can trigger a full backup process at any moment without waiting for the schedule. This feature is perfect before performing maintenance or significant server changes.
Dynamic File Naming ?: Take full control of your backup file naming. Use placeholders like {server_name} and {timestamp} with a customizable date format (e.g., yyyy-M-d--HH-mm) to produce organized and easily searchable filename.
Full Google Drive Integration ☁️: Backups, compressed into a .zip format, are automatically uploaded to a specific folder in your Google Drive. The plugin supports the use of a personal Google account after completing a secure, one-time authorization process.
Reliable Anti-Loop Logic ?️: Built with a smart mechanism to automatically exclude its own directory from the backup process, preventing "backup loop" issues that can cause file sizes to grow uncontrollably.
How to setup VelocityAutoBackup
Configuration
All settings are managed in /plugins/velocityautobackup/config.yml.
# A list of daily backup times in "HH:mm" format.
backup-times:
- "02:00"
- "14:00"
# The timezone for the schedule.
timezone: "UTC"
# The ID of the Google Drive folder where backups will be uploaded.
google-drive-folder-id: "PASTE_YOUR_FOLDER_ID_HERE"
# The name of the credentials JSON file.
credentials-file-name: "credentials.json"
# The server name to be used in the backup filename.
server-name: "proxy"
# The format for the backup filename.
# Use {timestamp} and {server_name}.
backup-file-name: "Backup-{server_name}-{timestamp}.zip"
? Permissions
| Command |
Description |
Permissions |
/backup-now |
Force Backup. |
velocityautobackup.command.backupnow |
? Licence
This project is licensed under MIT.
评论 0
登录后参与评分
还没有评论,来抢沙发吧