iot- Proxmox,홈어시스턴트

[H.A] Proxmox Backup Server(PBS) 설치 및 설정방법

naholonaholo 2025. 4. 15. 23:27

https://youtu.be/pC4tdpllJYc

 

proxmox shell script 사이트
https://tteck.github.io/Proxmox/

 

사용한 shell, console 명령어 및 대략적인 순서 :

 

**PBS 설치 명령어 
1. wget https://enterprise.proxmox.com/debian/proxmox-release-bullseye.gpg -O /etc/apt/trusted.gpg.d/proxmox-release-bullseye.gpg
2. echo "deb http://download.proxmox.com/debian/pbs bullseye pbs-no-subscription" >> /etc/apt/sources.list
3. apt update && apt upgrade -y
4. apt install proxmox-backup

 

**SMB 관련 명령어 
1. nano /etc/samba/smb.conf
2. smb console : mkdir /mnt/pve/SSD250/PBSbackupSMB
3. smb console : chmod -R 777 /mnt/pve/SSD250/PBSbackupSMB
4. pbs shell : mkdir /mnt/pve/PBSbackupSMB
5. pbs shell : chmod -R 777 /mnt/pve/PBSbackupSMB
6. pbs shell : apt install cifs-utils
7. pbs shell : nano /root/.PBSbackupSMB
8. pbs shell : chmod 400 /root/.PBSbackupSMB
9. pbs shell : nano /etc/fstab

   //192.168.0.120/smbSSD/PBSbackupSMB /mnt/pve/PBSbackupSMB cifs vers=2.0,credentials=/root/.PBSbackupSMB,uid=34,gid=34,defaults 0 0

10. pbs shell : mount -a
11. pbs datastore 추가
12. pbs access control 사용자추가
    datastore permission 추가
13. proxmox로 이동 후 datacenter> storage> PBS추가

**알아두면 좋은 명령어:
- proxmox에서 sudo명령어를 사용하려면 설치 : apt-get install sudo
- 폴더 안에 있는 모든 파일,폴더조회 :   ls -la /path(경로)
- 폴더 생성 : mkdir /path
- 폴더와 그 안에 내용 전체 삭제 : rm -r /path
- 파일 삭제: rm /path/파일명
- PBS datastore 삭제하는 방법 : proxmox-backup-manager datastore remove 데이터스토어이름
- 마운트된 것들 확인방법 : df -h
- 마운트 해제 방법 :  umount /path
- 폴더 권한 조회 방법 :  ls -ld /path