In case someone find this useful ... for me almost worked but not the way I need to ....
Backup proxmox using UrBackup
Pre-requirements
A working Proxmox VE host
A spare server for running as UrBackup server with big enough storage
The Proxmox VE host and the UrBackup Server is connected and in the same LAN
1 Install UrBackup Server
The server can be Windows or Linux (Debian/Ubuntu etc.)
1.1 For Windows Server
1.1.1 Download the exe or msi file from here: UrBackup Windows Server [1]
1.1.2 Execute the downloaded binary file, install the UrBackup server
1.1.3 Open any browser from the server, navigate to “localhst:55414” or “127.0.0.1:55414”
Note 1: The web interface is available at port 55414. To restrict the access you have to create
an admin account in Settings->Users. Without this account everyone can access all backups using the web interface.
Note 2: This web interface is accessible from other device within the same LAN
1.2 For Linux (Ubuntu) Server
1.2.1 You can simply use following commands to install it
sudo add-apt-repository ppa:uroni/urbackup
sudo apt update
sudo apt install urbackup-server
or
wget
https://hndl.urbackup.org/Server/2.4.12/urbackup-server_2.4.12_amd64.deb
sudo dpkg -i urbackup-server_2.4.12_amd64.deb
sudo apt install -f
Note 1: It has some dependencies which you can automatically resolve by running apt-get -f install.
If it does not work you probably chose the wrong packet from stable/testing/unstable. [2]
Note 2: The web interface is available at port 55414. To restrict the access you have to create an admin account
in Settings->Users. Without this account everyone can access all backups using the web interface. [2]
Note 3: This web interface is accessible from other device within the same LAN
2 Install UrBackup Client on Proxmox VE host
2.1 Login to Proxmox VE terminal directly or via SSH or via web gui -> Shell
2.2 Execute following command to install UrBackup client
TF=$(mktemp) && wget "
https://hndl.urbackup.org/Client/2.4.10/UrBackup Client Linux 2.4.10.sh" -O $TF && sh $TF; rm -f $TF
Note: Unless you are sure you want to use snapshot, dattobd require manual installation, LVM requires free space that
equals to the size you are backing up. Choose not to use snapshot here if you are not sure even it says you can
use dattobd and LVM.
3 Configure the UrBackup Server (and Proxmox host)
3.1 Before you start to configure UrBackup server, you need to make sure Proxmox VE host’s firewall is disabled,
or you will have to open ports for UrBackup server, where are listed in following tables
The Server binds to following default ports:
Port Usage Incoming/Outgoing Protocol
55413 FastCGI for web interface Incoming TCP
55414 HTTP web interface Incoming TCP
55415 Internet clients Incoming TCP
35623 UDP broadcasts for discovery Outgoing UDP
[3]
The Client binds to following default ports (all incoming):
Port Usage Protocol
35621 Sending files during file backups (file server) TCP
35622 UDP broadcasts for discovery UDP
35623 Commands and image backups TCP
[3]
3.2 Login to UrBackup web interface
3.3 Check if the Proxmox VE host appear under “Status” tab, if not, wait 30 – 60 minutes, if you can see the
Proxmox VE is displayed under status tab, proceed to next step
3.4 Click on “Settings”
3.5 Click on “Client Settings”, then click on the name of Proxmox VE host
3.6 Check “Separate settings for this client”, make necessary changes for “File Backups”, no need to worry about
“Image Backups” since it is not supported on Linux. (Do not forget to click on “Save” button)
Important: Make sure for File Backups, you exclude zfs pool if you are backing up the root “/”
e.g. Backing up the root file system “/”
Excluded files (with wildcards): /rpool/*;/mnt/proxmox-hostname/*;/tmp/*
Default directories to backup: /
Note: You probably want to exclude “/mnt/data/*” as well.
If you are not doing any modification to system files, you can just backup following folder
/etc
What’s inside
# Note: replace <proxmox-hostname> with your node name
# Virtual machine .conf, LXC .conf, SSL certificates, storage related configuration, system settings etc.
/etc/pve/nodes/<proxmox-hostname>/
# Virtual machine .conf files
/etc/pve/nodes/<proxmox-host-name>/qemu-server/
# LXC .conf files
/etc/pve/nodes/<proxmox-hostname>/lxc/
# Mounting information
/etc/fstab
/root
/usr/local
/var
3.7 Click on “Client”, configure a value for “Soft client quota” if you have very limited storage, probably s
hould modify “File Backup” frequency and other numbers too if storage is very limited.
3.8 If everything is set, you can now start to backup.
(Note: You can use “urbackupclientctl status” command from Proxmox VE host to check UrBackup status)
4 Restore
To restore the Proxmox VE host, you just simply perform following steps
4.1 Install the same Proxmox VE version on the new hard drive
4.2 Install UrBackup client again on Proxmox VE host (Make sure the hostname is the same),
and the client connects to the server
Note: If you are restoring to a different hardware, you need to make sure that the hostname is the same and you need
the tokens in “/usr/local/var/urbackup/tokens” [4], or you can use “Download client for Linux” button
from UrBackup web gui, then the token will be included
4.3 There are two ways to restore file and folders, one is through server web gui, another is via client command with
“urbackupclientctl ….”
If you are using the client command on client, use “urbackupclientctl –help” to check available options,
“urbackupclientctl browse” to browse backups and “urbackupclientctl restore-start” to restore,
then simply use the “Restore” button from UrBackup server web gui to restore files/folders