Skip to content

This script is supposed to back up the root Linux filesystem to a tar file to a specified path, deleting anything prior to a specified number of backups

License

Notifications You must be signed in to change notification settings

Mikesco3/pve-node-backup.sh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 

Repository files navigation

pve-node-backup.sh

This is a script to backup proxmox ve nodes.
(Not necessarily the virtual machines, but the root filesystem of the proxmox VE node)

Syntax:
$pve-node-backup.sh DESTINATION 1 [OPTION]

OPTION:
The 3rd optional parameter is to tag backups, e.g. in case we schedule the job via cron,
it can tag and rename the backups and lists (e.g., manual, daily, weekly, monthly, etc)
So subsequent cleanups happen within a certain tagged backup group.
In other words, so that when running a weekly backup we don't delete the daily or manual backups.

Example:
$pve-node-backup.sh /Backup/Path 3 weekly

in the example we are:

  • backing up the root folder of proxmox,
  • to the destination: /Backup/Path
  • keeping 3 backups (deleting anything prior)
  • naming it our weekly backup. (This is optional)

Cron example:
weekly every sunday at 1:15 to /Backup/Path

15 1 * * SUN /usr/sbin/pve-node-backup.sh /Backup/Path 3 weekly

About

This script is supposed to back up the root Linux filesystem to a tar file to a specified path, deleting anything prior to a specified number of backups

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages