İçeriğe geç
YENİAlaaddin ile tanış: sesi olan yapay zekâ cinin. trig8n 1 Ocak 2027'de yayında. Yeniliklere bak

Kütüphane / Kod, Git ve Geliştirici Araçları

Kod, Git ve Geliştirici Araçları

Borg ve SSH kullanarak Linux sunucularını uzak bir sunucuya yedekle

Zamanlanmış olarak çalışır; Linux sunucularının Borg yedek arşivlerini SSH üzerinden uzak hedef sunucuda oluşturur ve arşivleri listeleme ile geri yükleme adımlarını belgeler.

Ne yapar

# Restore a Backup 1. Connect to the destination server. 2. List the available backup archives: bash borg list /path/to/repository 3. Restore the archive you want: bash borg extract /path/to/repository:: For more restore options and examples: https://borgbackup.readthedocs.io/en/stable/

Adımlar

  1. Create Borg Backup and Push to Second Server
  2. Create Single Up-to-date Backup (Borg, pruned)
  3. Install Borg on Source Server
  4. Install Borg on Destination Server
  5. Source: Check & Get SSH Key
  6. Destination: Create Restricted borg_backup User
  7. Store Borg Passphrase on Source Server
  8. Initialize Configuration Table
  9. Run Scheduled Backup
  10. Route by Backup Mode
  11. Parse SSH Setup Result
  12. Build Backup Config Code
  13. When Backup Setup Form Submitted
  14. Save Backup Configuration

Toplam 15 adım.

Benzer otomasyonlar