|
|
il y a 8 mois | |
|---|---|---|
| .vscode | il y a 8 mois | |
| backups | il y a 8 mois | |
| .gitignore | il y a 8 mois | |
| README.md | il y a 8 mois | |
| backup_nc6.sh | il y a 8 mois | |
| docker-compose.yml | il y a 8 mois | |
| docker_startstop_containers.sh | il y a 8 mois | |
| ds_chat.py | il y a 8 mois | |
| duplicati_analysis_server.py | il y a 8 mois | |
| duplicati_analysis_server_openai.py | il y a 8 mois | |
| duplicati_log_server.py | il y a 8 mois | |
| duplicati_logs.log | il y a 8 mois | |
| remove_containers_and_volumes_strict.log | il y a 8 mois | |
| rm_vol.sh | il y a 8 mois | |
| run.sh | il y a 8 mois | |
| startstop_containers.sh | il y a 8 mois |
This project provides tools for analyzing Duplicati backup logs using AI models via the OpenAI API (or compatible endpoints). The main goal is to automate the detection of abnormal backup events and provide diagnostic feedback.
ds_chat.py
duplicati_analysis_server_openai.py
duplicati_logs.log).ds_chat.py:Run directly to analyze a hardcoded log sample.
python3 ds_chat.py
duplicati_analysis_server_openai.py: Start the server to listen for log submissions (default port: 8680).
python3 duplicati_analysis_server_openai.py
Then, POST logs to http://<server>:8680/ as form data.
openai Python package (for API calls)Note: This project is designed for environments where Duplicati logs need to be programmatically analyzed for anomalies, leveraging AI for smarter diagnostics.
The backup_nc6.sh script automates the backup of critical Nextcloud volumes using Duplicati inside Docker. It is designed for reliability, flexibility, and easy integration with cron for scheduled backups.
Dependency:
The script requires that the nextcloud_duplicati Docker container (which runs Duplicati) is up and running before the backup jobs are executed.
Make the script executable:
chmod +x /home/yazoo/appdev/duptest/backup_nc6.sh
Run manually:
/home/yazoo/appdev/duptest/backup_nc6.sh
Set up as a cron job (every other day at 2:00 AM):
0 2 */2 * * [backup_nc6.sh](http://_vscodecontentref_/0) >> /var/log/backup_nc6.log 2>&1
NEXTCLOUD_CONTAINERS array to define which containers to stop/start. Adjust this list if your Nextcloud stack uses different container names.JOBS array defines each backup task, including source, destination, and Duplicati options. Add or remove entries as needed.nextcloud_duplicati) with access to all relevant volumes.openai Python package (for API calls)