Like 1

liannnix revised this gist 7 months ago · 991b58f

1 file changed, 4 insertions

README.md (file created)
@@ -0,0 +1,4 @@
1 + # Бэкап машины на PVE Backup Server
2 +
3 + Идея в том, что-бы использовать **proxmox-backup-client** для бэкапа системы целеком.
4 + Архивируем корень системы и заливаем его на PBS.

liannnix revised this gist 7 months ago · d28e7f6

3 files changed, 23 insertions

etc-sysconfig-pve-backup-scrip (file created)
@@ -0,0 +1,3 @@
1 + PBS_REPOSITORY='<user>@pbs!<token name>@<PVE backup server>:<datastore>'
2 + PBS_FINGERPRINT='<fingerprint>'
3 + PBS_PASSWORD='<API token>'
pve-backup-script.service (file created)
@@ -0,0 +1,11 @@
1 + [Unit]
2 + Description=Backup files to PVE Backup server
3 + After=network.target network-online.target
4 +
5 + [Service]
6 + Type=oneshot
7 + EnvironmentFile=-/etc/sysconfig/pve-backup-script
8 + ExecStart=/usr/bin/proxmox-backup-client backup <backup name>.pxar:/<backuping dir>/ --ns <namespace> --change-detection-mode=metadata
9 +
10 + [Install]
11 + WantedBy=multi-user.target
pve-backup-script.timer (file created)
@@ -0,0 +1,9 @@
1 + [Unit]
2 + Description=Backup files to PVE Backup server daily
3 +
4 + [Timer]
5 + OnBootSec=60min
6 + OnUnitActiveSec=24h
7 +
8 + [Install]
9 + WantedBy=timers.target