Təhlükəsizlik

Automatic off-site backups with Restic

Encrypted, deduplicated daily backups of your VPS to remote storage. · 6 dəq oxu

Bu səhifə hələlik ingilis dilindədir. Tərcümə tezliklə əlavə ediləcək.

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ühəndislərin əllə qurduğu server sifariş edin və ya bizə yazın — 24/7 onlaynıq. Dəstək →

Təhlükəsizlik

Bütün təlimatlar

Layihənizi işə salmağa hazırsınız?

Mühəndislərin əllə qurduğu server sifariş edin və ya bizə yazın — 24/7 onlaynıq.