Get the App
SLTechnology News&Howtos  ›  Servers  › 

An indispensable part in the process of building an integrated architecture-- full network backup

Shulou Source: shulou.com Published: 2022-06-02 16:44:05 10月01日 Update

two。 Full network backup

2.1. The role of network-wide backup

This project can uniformly back up the data files and directories to the backup server by scripting the data from the web server and the storage server, and then remind the user by legal mail.

2.2. Network-wide backup deployment process

2.2.1. Server deployment

#! / bin/bash

# 01: verify backup data integrity find / backup/-type f-name "finger.txt" | xargs md5sum-c > / tmp/check_finger.txt# 02: send fingerprint file verification results to operation and maintenance personnel mail-s "$(date +% F) data check" 330882721@qq.com / etc/sysconfig/iptablestar zchPf / backup/$IP_info/system_data_$ (date +% Fweek% w). Tar.gz / var/spool / cron/root / etc/rc.local / server/scripts / etc/sysconfig/iptables# 03. Generate fingerprint file information find / backup/$IP_info/-type f-mmin-15 | xargs md5sum > / backup/$IP_info/finger.txt# 04. Backup and transfer the data files to rsync-az / backup/$IP_info/ rsync_backup@172.16.1.41::backup/$IP_info/-- password-file=/etc/rsync.password # 05. Delete data information backed up 7 days ago find / backup-type f-mtime + 7-delete

Tags: Backup data files services network-wide information server fingerprint method week directory authentication process personnel law function history integrity client client Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Docker MariaDB Xiaomi Shulou Tech Info Shulou Information