Last active
December 20, 2021 00:29
-
-
Save Bubbgump209/b7d209434d6c1468157c74977a8dd80d to your computer and use it in GitHub Desktop.
Proxmox Backup Client host based backup example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
export PBS_PASSWORD="somepassword" | |
proxmox-backup-client backup pve-etc.pxar:/etc --include-dev /etc/pve --repository some.ip.or.dns:Backups > /dev/null | |
#Parameter descriptions | |
#The password of the user *on the target PBS server* that is running the script. If you run the script as user 'johndoe', the PBS server must have a user 'johndoe' on the system with proper ACLs in PBS and this is that user's password. If you're using LDAP or something non-local, that's a another story. | |
#export PBS_PASSWORD="somepassword" | |
#The backup file to create and/or use as the backup target within the datastore AND the path to backup. In this case, all of /etc. | |
#pve-etc.pxar:/etc | |
#Include the mount point /etc/pve. /etc/pve is actually a fuse mount, so without this, /etc/pve is skipped which is bad. If there are other mount points within etc you want to include, specify them too. | |
#--include-dev /etc/pve | |
#The host and datstore to use for this backup | |
#--repository some.ip.or.dns:Backups | |
#Put any output from this script into the bitbucket rather than filling up logs or /var/spool/mail | |
#> /dev/null |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment