Güvenlik

Automatic off-site backups with Restic

Encrypted, deduplicated daily backups of your VPS to remote storage. · 6 dk okuma

Bu sayfa şu anda İngilizce olarak mevcuttur. Çeviri yakında eklenecek.

Follow the 3-2-1 rule: three copies, two media, one off-site.

apt -y install restic
export RESTIC_REPOSITORY=sftp:backup@backup.example.com:/srv/restic/server1
export RESTIC_PASSWORD='long-random-password'
restic init

Back up website files and a database dump:

mysqldump --all-databases > /root/db.sql
restic backup /var/www /etc /root/db.sql
restic forget --keep-daily 7 --keep-weekly 4 --keep-monthly 6 --prune

Put the commands in a script and run it daily with cron. Test a restore regularly:

restic restore latest --target /tmp/restore-test
Mühendislerin kurduğu bir sunucu sipariş edin veya bize yazın — 7/24 çevrimiçiyiz. Destek →

Güvenlik

Tüm rehberler

Projenizi başlatmaya hazır mısınız?

Mühendislerin kurduğu bir sunucu sipariş edin veya bize yazın — 7/24 çevrimiçiyiz.