https://github.com/dsgnr/rclone-pbs-script
Proxmox Backup Server rclone script for BackBlaze
https://github.com/dsgnr/rclone-pbs-script
backblaze backup bash pbs proxmox script
Last synced: about 1 month ago
JSON representation
Proxmox Backup Server rclone script for BackBlaze
- Host: GitHub
- URL: https://github.com/dsgnr/rclone-pbs-script
- Owner: dsgnr
- Created: 2024-11-13T10:14:33.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-26T10:56:13.000Z (over 1 year ago)
- Last Synced: 2026-02-08T10:46:44.474Z (4 months ago)
- Topics: backblaze, backup, bash, pbs, proxmox, script
- Language: Shell
- Homepage:
- Size: 6.84 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# rclone-pbs-script
Inspired by [https://r00t.dk/post/2022/05/28/rsync-rclone-experience-backing-up-proxmox/](https://r00t.dk/post/2022/05/28/rsync-rclone-experience-backing-up-proxmox/), this script has been modified to support multiple backends, as well as send an optional notification to [healthchecks.io](healthchecks.io).
## Usage
### backup
```bash
bash -x rclone.sh [SRC] [BACKEND]:[BUCKET]/[DIR]
```
### Restoring
Create the restore directory in your Proxmox Backup Server appliance
```bash
root@pbs:~# mkdir /restore
```
Create the Repository in PBS
```bash
cat <> /etc/proxmox-backup/datastore.cfg
datastore: RestoreTest
path /restore
EOF
```
Perform the restore sync from the Rclone Backend
```
root@pbs:~# rclone sync \
--progress \
--stats-one-line \
--stats=30s \
--transfers=24 \
--checkers=24 \
--config=./.rclone.conf \
[BACKEND]:[BUCKET]/[DIR] /restore/.
```
## Secrets
Secrets are sourced from `env_conf`. There is an example at `env_conf.example` which should be updated and renamed for your use.