proxmox:pbs:backup-server
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| proxmox:pbs:backup-server [2026/08/16 17:31] – [CHAP] gsys | proxmox:pbs:backup-server [2026/10/03 14:14] (current) – [SMB] gsys | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Proxmox Backup Server ====== | ====== Proxmox Backup Server ====== | ||
| + | |||
| + | ===== Install on Proxmox VE ===== | ||
| + | |||
| + | ==== No Subscription ==== | ||
| + | |||
| + | < | ||
| + | cat <<EOF >> / | ||
| + | |||
| + | Types: deb | ||
| + | URIs: http:// | ||
| + | Suites: trixie | ||
| + | Components: pbs-no-subscription | ||
| + | Signed-By: / | ||
| + | EOF | ||
| + | apt update | ||
| + | apt install proxmox-backup-server | ||
| + | </ | ||
| + | |||
| + | ==== Enterprise ==== | ||
| + | |||
| + | < | ||
| + | cat <<EOF >> / | ||
| + | |||
| + | Types: deb | ||
| + | URIs: https:// | ||
| + | Suites: trixie | ||
| + | Components: pbs-enterprise | ||
| + | Signed-By: / | ||
| + | EOF | ||
| + | apt update | ||
| + | apt install proxmox-backup-server | ||
| + | </ | ||
| ===== iSCSI ===== | ===== iSCSI ===== | ||
| Line 6: | Line 38: | ||
| nano / | nano / | ||
| </ | </ | ||
| - | set startup to automatic in ''/ | ||
| + | set startup to automatic in ''/ | ||
| < | < | ||
| - | # ************* | + | # To request that the iscsi service scripts startup a session, use " |
| - | # CHAP Settings | + | # node.startup = automatic |
| - | # ************* | + | |
| - | + | ||
| - | # To enable CHAP authentication set node.session.auth.authmethod | + | |
| - | # to CHAP. The default is None. | + | |
| # | # | ||
| - | # NOTE: currently this attribute is checked for validity but then | + | # To manually startup |
| - | # ignored, so even if it is set to None, CHAP will be used if the | + | node.startup |
| - | # credentials (username/ | + | |
| - | # are set. This behavior is deprecated, and in the future CHAP will | + | |
| - | # not be used if authmethod is set to None. | + | |
| - | # | + | |
| - | node.session.auth.authmethod = CHAP | + | |
| - | + | ||
| - | # To configure which CHAP algorithms to enable, set | + | |
| - | # node.session.auth.chap_algs to a comma separated list. | + | |
| - | # The algorithms should be listed in order of decreasing | + | |
| - | # preference - in particular, with the most preferred algorithm first. | + | |
| - | # Valid values are MD5, SHA1, SHA256, and SHA3-256. | + | |
| - | # The default is MD5. | + | |
| - | #node.session.auth.chap_algs = SHA3-256, | + | |
| - | + | ||
| - | # To set a CHAP username and password for initiator | + | |
| - | # authentication by the target(s), uncomment the following lines: | + | |
| - | node.session.auth.username = initiator-iscsi | + | |
| - | node.session.auth.password = <12-16 alphanumeric> | + | |
| - | + | ||
| - | # To set a CHAP username and password for target(s) | + | |
| - | # authentication by the initiator, uncomment the following lines: | + | |
| - | node.session.auth.username_in = target-iscsi | + | |
| - | node.session.auth.password_in | + | |
| </ | </ | ||
| Line 59: | Line 64: | ||
| < | < | ||
| UUID=d6ed961a-717e-404b-9d8c-71cea8ecda04 /mnt/backup ext4 _netdev 0 0 | UUID=d6ed961a-717e-404b-9d8c-71cea8ecda04 /mnt/backup ext4 _netdev 0 0 | ||
| + | </ | ||
| + | |||
| + | load new fstab | ||
| + | < | ||
| + | systemctl daemon-reload | ||
| </ | </ | ||
| Line 67: | Line 77: | ||
| ==== CHAP ==== | ==== CHAP ==== | ||
| + | configure chap settings in ''/ | ||
| < | < | ||
| # ************* | # ************* | ||
| Line 103: | Line 114: | ||
| - | ---- | + | ==== Commands ==== |
| < | < | ||
| Line 109: | Line 120: | ||
| iscsiadm --mode node --targetname iqn.2004-04.com.qnap: | iscsiadm --mode node --targetname iqn.2004-04.com.qnap: | ||
| </ | </ | ||
| + | |||
| + | ===== SMB ===== | ||
| + | < | ||
| + | apt update | ||
| + | apt install | ||
| + | </ | ||
| + | |||
| + | test mount smb share | ||
| + | < | ||
| + | mount -t cifs -o user=< | ||
| + | </ | ||
| + | |||
| + | create credentials file | ||
| + | < | ||
| + | cat <<EOF >> ~/ | ||
| + | user=username | ||
| + | password=password | ||
| + | EOF | ||
| + | </ | ||
| + | |||
| + | make file only readable by root / current user | ||
| + | < | ||
| + | chmod 0400 ~/ | ||
| + | </ | ||
| + | |||
| + | add to ''/ | ||
| + | < | ||
| + | //< | ||
| + | #//< | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | proxmox-backup-manager datastore create remote-smb /backup | ||
| + | </ | ||
| + | |||
| + | ===== Client ===== | ||
| + | |||
| + | < | ||
| + | proxmox-backup-client backup etc.pxar:/ | ||
| + | </ | ||
| + | |||
| + | <file sh backup-pve-config.sh> | ||
| + | #!/bin/bash | ||
| + | export PBS_REPOSITORY=pbs-pveuser@pbs!pve-config-backup@pbs01: | ||
| + | export PBS_PASSWORD=< | ||
| + | export PBS_FINGERPRINT=< | ||
| + | |||
| + | / | ||
| + | </ | ||
proxmox/pbs/backup-server.1786894299.txt.gz · Last modified: by gsys