Skip to content

Rao-Pranava/Proxmox-Scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Proxmox Automation Scripts

AI Images

All these scripts are to be run on the Proxmox Server

git clone https://github.com/Rao-Pranava/Proxmox-Scripts.git

Proxmox.sh

This file automates the process of exporting and importing Virtual machine Disk files

Useage

bash Proxmox.sh --help
image

export_all_vms.sh

This script is a part of automating the process of backing up all the power offed systems in your Proxmox Server.

You can find the Detailed Blog about reasons and Motives about this tool Here

Setup

  1. Make the export_all_vms.sh script executable
chmod +x export_all_vms.sh
  1. Add the followign cron job to the cron of your proxmox server.
crontab -e

Enter the following content:

5 0 * * 0 /home/export_all_vms.sh >> /var/log/vm_backup.log 2>&1

This will run the export_all_vms.sh script at 00:05 hours on all Sundays

image

Now, exit the editor

  1. That is it, if you want to have a test run, you can run the following command
./export_all_vms.sh

image


Useful Commands

If you want to download the file from your server to the local computer, you can use this command:

scp root@<IP Address>:<File Location> .

About

This repositry is a collection of all the scripts that is used for automating stuffs

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages