开发者

real estate linux back up solution [closed]

开发者 https://www.devze.com 2023-01-31 00:56 出处:网络
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.

This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.

Closed 5 years ago.

Improve this question

I did a lot of research..but I couldnt find what I exactly want. Can anyone have any/some knowledge regarding how a real estate company backup strategy should be. I mean, there are different backup types such as full, incremental and differential backups.

Which solution(s) a real estate company should use to backup its resources and how frequently (daily, weekly, etc)?

assume that they have 开发者_如何学Golinux servers...

many thanks..


This belongs to serverfault, However you need to provide more details.

You should run incremental daily backups and a weekly fully backup.

  • for MySQL databases check : http://dev.mysql.com/doc/refman/5.1/en/backup-methods.html
  • for other files you can use rsync with hard copies.
  • Check this TLDPhowto and LJ article
  • Concider using encryption on the backup drive, either full disk using dmcrypt or if you use tar/cpio pipe it to openssl (ex : tar -xf - path1 path2 | openssl enc -aes-128-cbc -salt > backup.$(date --iso).tgz.aes

Example daily rsync backup script:

#!/bin/sh
BACKUP_DIR=/mnt/backups/
BACKUP_PATHES="/var /home"

cd ${BACKUP_DIR}
rm -rf backup.5 backup.5.log.bz2 &>/dev/null

recycle() {
    i=$1; y=$(($i+1))
    b=${2-backup}
    mv "${b}.$i" "${b}.$y" &>/dev/null
    mv "${b}.$i.log.bz2" "${b}.$y.log.bz2" &>/dev/null
}

recycle 4
recycle 3
recycle 2
recycle 1
recycle 0

OPTS="--numeric-ids --delete --delete-after --delete-excluded"
nice -n20 ionice -c2 -n2 rsync -axlHh -v --link-dest=../backup.1 ${OPTS} ${BACKUP_PATHES} backup.0/ --exclude-from=/root/.rsync-exclude 2>&1 | bzip2 -9 > backup.0.log.bz2
cd /root &>/dev/null
0

精彩评论

暂无评论...
验证码 换一张
取 消