diff --git a/vsphere_backup/README.md b/README.md similarity index 86% rename from vsphere_backup/README.md rename to README.md index 71a0584..38b620a 100644 --- a/vsphere_backup/README.md +++ b/README.md @@ -1,6 +1,7 @@ -# vSphere Snapshot Backup Tool +# vSphere Backup Manager + +A web interface and CLI tool to automate, schedule, and manage snapshot-based backups for virtual machines on VMware vCenter/ESXi. -Simple CLI to automate the snapshot -> copy -> compress -> delete workflow for a VM on vCenter/ESXi. Requirements - Python 3.8+ @@ -50,8 +51,9 @@ PM2 natively supports Python applications and can keep the server running across 3. **Useful PM2 Commands**: - Status: `pm2 status` - - Logs: `pm2 logs vsphere-backup-gui` - - Restart: `pm2 restart vsphere-backup-gui` - - Stop: `pm2 stop vsphere-backup-gui` + - Logs: `pm2 logs vsphere-backup-manager` + - Restart: `pm2 restart vsphere-backup-manager` + - Stop: `pm2 stop vsphere-backup-manager` - Setup auto-start on server boot: `pm2 startup` and then run the command it outputs, followed by `pm2 save`. + diff --git a/vsphere_backup/__pycache__/backup_core.cpython-310.pyc b/__pycache__/backup_core.cpython-310.pyc similarity index 100% rename from vsphere_backup/__pycache__/backup_core.cpython-310.pyc rename to __pycache__/backup_core.cpython-310.pyc diff --git a/vsphere_backup/__pycache__/gui_app.cpython-310.pyc b/__pycache__/gui_app.cpython-310.pyc similarity index 100% rename from vsphere_backup/__pycache__/gui_app.cpython-310.pyc rename to __pycache__/gui_app.cpython-310.pyc diff --git a/vsphere_backup/__pycache__/vsphere_backup.cpython-310.pyc b/__pycache__/vsphere_backup.cpython-310.pyc similarity index 100% rename from vsphere_backup/__pycache__/vsphere_backup.cpython-310.pyc rename to __pycache__/vsphere_backup.cpython-310.pyc diff --git a/vsphere_backup/backup_core.py b/backup_core.py similarity index 100% rename from vsphere_backup/backup_core.py rename to backup_core.py diff --git a/vsphere_backup/ecosystem.config.js b/ecosystem.config.js similarity index 93% rename from vsphere_backup/ecosystem.config.js rename to ecosystem.config.js index 58e7a92..1b84bd8 100644 --- a/vsphere_backup/ecosystem.config.js +++ b/ecosystem.config.js @@ -1,7 +1,7 @@ module.exports = { apps: [ { - name: 'vsphere-backup-gui', + name: 'vsphere-backup-manager', script: 'gui_app.py', // If you are using a virtual environment (recommended), set the interpreter to: // interpreter: './venv/bin/python3', diff --git a/vsphere_backup/gui_app.py b/gui_app.py similarity index 100% rename from vsphere_backup/gui_app.py rename to gui_app.py diff --git a/vsphere_backup/requirements.txt b/requirements.txt similarity index 100% rename from vsphere_backup/requirements.txt rename to requirements.txt diff --git a/vsphere_backup/templates/base.html b/templates/base.html similarity index 100% rename from vsphere_backup/templates/base.html rename to templates/base.html diff --git a/vsphere_backup/templates/batch_job.html b/templates/batch_job.html similarity index 100% rename from vsphere_backup/templates/batch_job.html rename to templates/batch_job.html diff --git a/vsphere_backup/templates/create_job.html b/templates/create_job.html similarity index 100% rename from vsphere_backup/templates/create_job.html rename to templates/create_job.html diff --git a/vsphere_backup/templates/job_detail.html b/templates/job_detail.html similarity index 100% rename from vsphere_backup/templates/job_detail.html rename to templates/job_detail.html diff --git a/vsphere_backup/templates/jobs.html b/templates/jobs.html similarity index 100% rename from vsphere_backup/templates/jobs.html rename to templates/jobs.html diff --git a/vsphere_backup/templates/login.html b/templates/login.html similarity index 100% rename from vsphere_backup/templates/login.html rename to templates/login.html diff --git a/vsphere_backup/templates/nfs.html b/templates/nfs.html similarity index 100% rename from vsphere_backup/templates/nfs.html rename to templates/nfs.html diff --git a/vsphere_backup/templates/vms.html b/templates/vms.html similarity index 100% rename from vsphere_backup/templates/vms.html rename to templates/vms.html diff --git a/vsphere_backup/vsphere_backup.py b/vsphere_backup.py similarity index 100% rename from vsphere_backup/vsphere_backup.py rename to vsphere_backup.py