Proxmox-Backup Restore: Difference between revisions

Initial
 
spelling and using pre and cats
Line 2: Line 2:
= Proxmox Backup and Restore =
= Proxmox Backup and Restore =


This guide aims to provide options for consistently Backup a server and to provide some instructions and best practices for restoring from backup and for testing backups prior to needing them.
This guide aims to provide options for consistently Backing up a server, some instructions, and best practices for restoring from backup, and testing backups prior to needing them.
 
Back to [[Server_Guides]]


<span id="assumptions"></span>
<span id="assumptions"></span>
Line 9: Line 11:
This guide focuses on proxmox servers and assumes a directory is established on that server for backups.
This guide focuses on proxmox servers and assumes a directory is established on that server for backups.


In this case we use /datadrive/Backups/
In this case, we use /datadrive/Backups/


This guide also assumes that services are running within containers and vms on the proxmox server (host) and that ssh keys have been established and copied into each vm and container. [[ssh-keys.md|ssh-keys]] covers more on ssh key generation and usage. ## Individual Guides See individual guides here: [[Authentik-Backup.md|Authentik-Backup]]
This guide also assumes that services run within containers and VMs on the proxmox server (host) and that SSH keys have been established and copied into each VM and container. [[ssh-keys.md|ssh-keys]] covers more on ssh key generation and usage. ## Individual Guides See individual guides here: [[Authentik-Backup.md|Authentik-Backup]]


<span id="backup"></span>
<span id="backup"></span>
== Backup ==
== Backup ==


<syntaxhighlight lang="bash">#!/bin/bash
<pre>#!/bin/bash
#/usr/local/bin/proxmox-backup.sh
#/usr/local/bin/proxmox-backup.sh
= Define variables =
= Define variables =
Line 50: Line 52:
echo "Remote backup completed successfully."
echo "Remote backup completed successfully."
= sync from authentik server to proxmox backup =
= sync from authentik server to proxmox backup =
rsync -avz --progress $AUTHENTIK_REMOTE_USER@$AUTHENTIK_REMOTE_HOST:$AUTHENTIK_REMOTE_BACKUP_DIR $LOCAL_BACKUP_DIR/authentik_backups</syntaxhighlight>
rsync -avz --progress $AUTHENTIK_REMOTE_USER@$AUTHENTIK_REMOTE_HOST:$AUTHENTIK_REMOTE_BACKUP_DIR $LOCAL_BACKUP_DIR/authentik_backups</pre>
<span id="restore"></span>
<span id="restore"></span>
== Restore ==
== Restore ==
[[Category:Self-hosting]]
[[Category:Guides]]