BorgBackup (Borg)
BorgBackup je brz alat za deduplikovane i šifrovane rezervne kopije. Podržava rad sa Amazon S3 kompatibilnim skladištima, uključujući HostArena S3 Storage, direktno ili putem rclone-a, u zavisnosti od verzije i načina konfiguracije. (Borg Documentation)
Šta je potrebno?
Pripremite sledeće podatke iz korisničkog panela:
-
Endpoint
-
Access Key
-
Secret Key
-
Naziv Bucket-a
Primer:
| Polje | Primer |
|---|---|
| Endpoint | https://username.s3.hostarena.rs |
| Bucket | username |
| Access Key | Dostupan u panelu |
| Secret Key | Dostupan u panelu |
| Region | us-east-1 |
Kreiranje Repository-ja
Primer kreiranja Repository-ja:
borg repo-create \
s3://https://username.s3.hostarena.rs/username/borg-repo
Unesite lozinku za enkripciju Repository-ja.
Važno: Sačuvajte lozinku. Bez nje nije moguće vratiti podatke.
Kreiranje prvog Backup-a
borg create \
s3://https://username.s3.hostarena.rs/username/borg-repo::backup-2026-07-25 \
/home
Možete navesti jedan ili više direktorijuma.
Pregled Backup-a
borg list \
s3://https://username.s3.hostarena.rs/username/borg-repo
Vraćanje podataka
borg extract \
s3://https://username.s3.hostarena.rs/username/borg-repo::backup-2026-07-25
Provera Repository-ja
borg check \
s3://https://username.s3.hostarena.rs/username/borg-repo
Brisanje starih Backup-a
Primer zadržavanja poslednjih 7 bekapa:
borg prune \
--keep-last 7 \
s3://https://username.s3.hostarena.rs/username/borg-repo
Najčešći problemi
Authentication Failed
Proverite Access Key i Secret Key.
Could not connect
Proverite da li koristite:
https://username.s3.hostarena.rs
Repository not found
Proverite naziv Bucket-a i putanju Repository-ja.
Wrong passphrase
Uneta je pogrešna lozinka Repository-ja.
