{"id":13495821,"url":"https://github.com/marrobHD/proxmox-tools","last_synced_at":"2025-03-28T17:33:59.581Z","repository":{"id":38410660,"uuid":"243498334","full_name":"marrobHD/proxmox-tools","owner":"marrobHD","description":"📦 A collection of stuff that I and others wrote for Proxmox 📦","archived":false,"fork":false,"pushed_at":"2024-02-16T09:37:28.000Z","size":64,"stargazers_count":275,"open_issues_count":1,"forks_count":25,"subscribers_count":14,"default_branch":"master","last_synced_at":"2024-10-31T11:36:33.979Z","etag":null,"topics":["backup","cluster","maintenance","proxmox","proxmox-api","proxmox-apis","proxmox-backup","proxmox-cluster","proxmox-restore","proxmox-scripts","proxmox-tools","proxmox-ve"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/marrobHD.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-02-27T11:00:46.000Z","updated_at":"2024-10-26T23:27:13.000Z","dependencies_parsed_at":"2024-10-31T11:30:24.761Z","dependency_job_id":null,"html_url":"https://github.com/marrobHD/proxmox-tools","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marrobHD%2Fproxmox-tools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marrobHD%2Fproxmox-tools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marrobHD%2Fproxmox-tools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marrobHD%2Fproxmox-tools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marrobHD","download_url":"https://codeload.github.com/marrobHD/proxmox-tools/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246069663,"owners_count":20718766,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["backup","cluster","maintenance","proxmox","proxmox-api","proxmox-apis","proxmox-backup","proxmox-cluster","proxmox-restore","proxmox-scripts","proxmox-tools","proxmox-ve"],"created_at":"2024-07-31T19:01:38.577Z","updated_at":"2025-03-28T17:33:59.307Z","avatar_url":"https://github.com/marrobHD.png","language":"Shell","funding_links":[],"categories":["Shell","🛠️ Tools \u0026 Utilities"],"sub_categories":["🛠️ Utility Scripts \u0026 Extensions"],"readme":"# ProxmoxTools\n📦 A collection of stuff that I and others wrote for Proxmox 📦\n\n\n[![License][license-shield]](LICENSE.md)\n\n![Project Maintenance][maintenance-shield]\n[![GitHub Activity][commits-shield]][commits]\n\n[![Github][github]][github]\n\n\u003c!-- 🎉 Release of ProxmoxTools 0.0.2 --\u003e\n\n### Features\n\n-\u003c---\u003e-\n\u003c!-- also includes... --\u003e\n\n____________________________________________________________________________________________\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary markdown=\"span\"\u003e Remove Proxmox Nag \u003c/summary\u003e\n \n\u003cp align=\"center\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/2678585?s=200\u0026amp;v=4\" alt=\"@home-assistant\" width=\"100\" height=\"100\"/\u003e\u003c/p\u003e\n \n\u003ch1 align=\"center\" id=\"heading\"\u003e Remove Proxmox Nag | Tested 5.1-3 - 7.1-12 \u003c/h1\u003e\n\nTo remove the Proxmox Nag, run the following in the Proxmox Shell\n\n```yaml\nbash -c \"$(wget -qLO - https://raw.githubusercontent.com/marrobHD/proxmox-tools/master/ProxmoxNag.sh)\"\n```\n____________________________________________________________________________________________\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary markdown=\"span\"\u003e 🔸Remove ProxmoxVE Nag \u0026 Add Community Repo \u003c/summary\u003e\n \n\u003cp align=\"center\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/2678585?s=200\u0026amp;v=4\" alt=\"@home-assistant\" width=\"100\" height=\"100\"/\u003e\u003c/p\u003e\n \n\u003ch1 align=\"center\" id=\"heading\"\u003e Remove ProxmoxVE Nag \u0026 Add Community Repo | Tested 5.1-3 - 7.2-7 \u003c/h1\u003e\n\nTo remove the Proxmox Nag \u0026 add Community Repo, run the following in the Proxmox Shell\n\n```yaml\nbash -c \"$(wget -qLO - https://raw.githubusercontent.com/marrobHD/proxmox-tools/master/proxmoxve_community.sh)\"\n```\n\n____________________________________________________________________________________________\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary markdown=\"span\"\u003e 🔸Remove ProxmoxBS Nag \u0026 Add Community Repo \u003c/summary\u003e\n \n\u003cp align=\"center\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/2678585?s=200\u0026amp;v=4\" alt=\"@home-assistant\" width=\"100\" height=\"100\"/\u003e\u003c/p\u003e\n \n\u003ch1 align=\"center\" id=\"heading\"\u003e Remove ProxmoxBS Nag \u0026 Add Community Repo | Tested 2.2-1 - NAN \u003c/h1\u003e\n\nTo remove the Proxmox Nag \u0026 add Community Repo, run the following in the Proxmox Shell\n\n```yaml\nbash -c \"$(wget -qLO - https://raw.githubusercontent.com/marrobHD/proxmox-tools/master/proxmoxbs_community.sh)\"\n```\n\n____________________________________________________________________________________________\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary markdown=\"span\"\u003e Proxmox CPU Scaling Governor \u003c/summary\u003e\n \n\u003cp align=\"center\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/2678585?s=200\u0026amp;v=4\" width=\"100\" height=\"100\"/\u003e\u003c/p\u003e\n \n\u003ch1 align=\"center\" id=\"heading\"\u003e Proxmox CPU Scaling Governor \u003c/h1\u003e\n\nCPU Scaling Governor enables the operating system to scale the CPU frequency up or down in order to save power or improve performance.\n\n\n[Generic Scaling Governors](https://www.kernel.org/doc/html/latest/admin-guide/pm/cpufreq.html?#generic-scaling-governors)\n\nRun the following in the Proxmox Shell.\n\n```yaml\nbash -c \"$(wget -qLO - https://raw.githubusercontent.com/marrobHD/proxmox-tools/master/scaling-governor.sh)\"\n```\n\n____________________________________________________________________________________________\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary markdown=\"span\"\u003e Backup Proxmox Config \u003c/summary\u003e\n \n\u003cp align=\"center\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/2678585?s=200\u0026amp;v=4\" width=\"100\" height=\"100\"/\u003e\u003c/p\u003e\n \n\u003ch1 align=\"center\" id=\"heading\"\u003e Backup Proxmox Config Manual \u003c/h1\u003e\n\nTo create a new Proxmox Node Config Backup, do the following in the Proxmox Shell\n\n```yaml\n* Download the [script](https://raw.githubusercontent.com/marrobHD/proxmox-tools/master/prox_config_backup.sh)  \n```cd /root/; wget -qO- https://raw.githubusercontent.com/marrobHD/proxmox-tools/master/prox_config_backup.sh \u003e prox_config_backup.sh```\n* Set the permanent backups directory ```export BACK_DIR=\"/root/proxmox_backups/\"```\n* Create a proxmox_backups folder and make the script executable ```mkdir /root/proxmox_backups/; chmod +x ./prox_config_backup.sh```\n* Shut down ALL VMs + LXC Containers if you want to go the save way. (Not required) ```service pve-manager stop```\n* Run the script ```./prox_config_backup.sh```\n```\n\n____________________________________________________________________________________________\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary markdown=\"span\"\u003e Restore Proxmox Config \u003c/summary\u003e\n \n\u003cp align=\"center\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/2678585?s=200\u0026amp;v=4\" alt=\"@proxmox\" width=\"100\" height=\"100\"/\u003e\u003c/p\u003e\n \n\u003ch1 align=\"center\" id=\"heading\"\u003e Restore Proxmox Config \u003c/h1\u003e\n\nOn machine, you end up with a GZipped file of about 1-10 MB with a name like \"proxmox_backup_proxmoxhostname_2017-12-02.15.48.10.tar.gz\".  \nDepending upon how you schedule it and the size of your server, that could eventually become a space issue so don't  \nforget to set up some kind of archive maintenance.\n\nTo restore, move the file back to proxmox with cp, scp, webmin, a thumb drive, whatever.  \nI place it back into the /var/tmp directory from where it came. \n\n```\n# Unpack the original backup\ntar -zxvf proxmox_backup_proxmoxhostname_2017-12-02.15.48.10.tar.gz\n# unpack the tared contents\ntar -xvf proxmoxpve.2017-12-02.15.48.10.tar\ntar -xvf proxmoxetc.2017-12-02.15.48.10.tar\ntar -xvf proxmoxroot.2017-12-02.15.48.10.tar\n\n# If the services are running, stop them:\nfor i in pve-cluster pvedaemon vz qemu-server; do systemctl stop $i ; done\n\n# Copy the old content to the original directory:\ncp -avr /var/tmp/var/tmp/etc/* /etc/\ncp -avr /var/tmp/var/tmp/var/* /var/\ncp -avr /var/tmp/var/tmp/root/* /root/\n\n\n# And, finally, restart services:\nfor i in qemu-server vz pvedaemon pve-cluster; do systemctl start $i ; done\n```\n\nIf nothing goes wrong, and you have separately restored the VM images using the default ProxMox process.  \nYou should be back where you started. But let's hope it never comes to that.\n\n____________________________________________________________________________________________\n\n\u003c/details\u003e\n\n\n\u003cdetails\u003e\n\u003csummary markdown=\"span\"\u003e Leave Proxmox Cluster \u003c/summary\u003e\n \n\u003cp align=\"center\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/2678585?s=200\u0026amp;v=4\" alt=\"@home-assistant\" width=\"100\" height=\"100\"/\u003e\u003c/p\u003e\n \n\u003ch1 align=\"center\" id=\"heading\"\u003e Leave Proxmox Cluster \u003c/h1\u003e\n\nTo leave a Proxmox-Cluster, run the following in the Proxmox Node shell, which should leave the cluster.\n\n```yaml\nbash -c \"$(wget -qLO - https://raw.githubusercontent.com/marrobHD/proxmox-tools/master/leave-cluster.sh)\"\n```\n\n____________________________________________________________________________________________ \n\n\u003c/details\u003e\n\n\n\u003cdetails\u003e\n\u003csummary markdown=\"span\"\u003e Proxmox API - Guest Actions \u003c/summary\u003e\n \n\u003cp align=\"center\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/2678585?s=200\u0026amp;v=4\" alt=\"@home-assistant\" width=\"100\" height=\"100\"/\u003e\u003c/p\u003e\n \n\u003ch1 align=\"center\" id=\"heading\"\u003e Guest Actions \u003c/h1\u003e\n\nThe Proxmox API scripts are located in the API folder.\n\n```\n/api/lxc: startlxc.sh, stoplxc.sh, shutdownlxc.sh, restartlxc.sh, suspendlxc.sh and resumelxc.sh\n/api/vm: startvm.sh, stopvm.sh, shutdownvm.sh, restartvm.sh, resetvm.sh, suspendvm.sh and resumevm.sh\n```\n\n____________________________________________________________________________________________ \n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary markdown=\"span\"\u003e 🔸Proxmox LXC Updater\u003c/summary\u003e\n \n\u003cp align=\"center\"\u003e\u003cimg src=\"https://external-content.duckduckgo.com/iu/?u=https%3A%2F%2Felpuig.xeill.net%2FMembers%2Fvcarceler%2Farticulos%2Fcontenedores-con-lxd-lxc%2Fcontainers.png\u0026f=1\u0026nofb=1\" height=\"100\"/\u003e\u003c/p\u003e\n\n\u003ch1 align=\"center\" id=\"heading\"\u003eProxmox LXC Updater \u003c/h1\u003e\n\nUpdate All LXC's Fast \u0026 Easy\n \nRun the following in the Proxmox Shell.\n\n```yaml\nbash -c \"$(wget -qLO - https://raw.githubusercontent.com/marrobHD/proxmox-tools/master/upgrade-lxcs.sh)\"\n```\n\n\n____________________________________________________________________________________________ \n\n\u003c/details\u003e\n\n\n\u003cdetails\u003e\n\u003csummary markdown=\"span\"\u003e Home Assistant OS VM \u003c/summary\u003e\n \n\u003cp align=\"center\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/13844975?s=200\u0026amp;v=4\" alt=\"@home-assistant\" width=\"100\" height=\"100\"/\u003e\u003c/p\u003e\n \n\u003ch1 align=\"center\" id=\"heading\"\u003e Home Assistant OS VM \u003c/h1\u003e\n\nTo create a new Proxmox Home Assistant OS VM, run the following in the Proxmox Shell\n\n```yaml\nbash -c \"$(wget -qLO - https://raw.githubusercontent.com/marrobHD/proxmox-tools/master/install-HAOS.sh)\"\n```\n\u003ch3 align=\"center\" id=\"heading\"\u003e⚡ Default Settings:  4GB RAM - 32GB Storage - 2vCPU ⚡\u003c/h3\u003e\n \nAfter the script completes, click on the VM, then on the **_Summary_** tab to find the VM IP.\n\n**Home Assistant Interface - IP:8123**\n\n\n____________________________________________________________________________________________ \n\n\u003c/details\u003e\n\n\n### Sources\nhttp://ziemecki.net/content/proxmox-config-backups\n\n\n\nFeel free to post issues\n\n## Authors \u0026 contributors\n\nThe original setup of this repository is by [Marlon][TechHome].\n\nFor a full list of all authors and contributors,\ncheck [the contributor's page][contributors].\n\n\n\n[Troubleshooting]()\n\n[commits-shield]: https://img.shields.io/github/commit-activity/y/marrobHD/proxmox-tools.svg?style=for-the-badge\n[commits]: https://github.com/marrobHD/proxmox-tools/commits/master\n[contributors]: https://github.com/marrobHD/proxmox-tools/graphs/contributors\n[license-shield]: https://img.shields.io/github/license/marrobHD/proxmox-tools.svg?style=for-the-badge\n[maintenance-shield]: https://img.shields.io/badge/maintainer-TechHome-blue.svg?style=for-the-badge\n[TechHome]: https://github.com/marrobHD\n[releases-shield]: https://img.shields.io/github/release/marrobHD/proxmox-tools.svg?style=for-the-badge\n[releases]: https://github.com/marrobHD/proxmox-tools/releases\n[contributors]: https://github.com/hassio-addons/addon-ssh/graphs/contributors\n[license-shield]: https://img.shields.io/github/license/marrobHD/proxmox-tools.svg?style=for-the-badge\n[maintenance-shield]: https://img.shields.io/badge/maintainer-Marlon-blue.svg?style=for-the-badge\n[releases-shield]: https://img.shields.io/github/release/marrobHD/proxmox-tools.svg?style=for-the-badge\n[releases]: https://github.com/marrobHD/proxmox-tools/releases\n[github]: https://img.shields.io/github/followers/marrobHD.svg?style=social\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FmarrobHD%2Fproxmox-tools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FmarrobHD%2Fproxmox-tools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FmarrobHD%2Fproxmox-tools/lists"}