Are you sure you want to delete this task? Once this task is deleted, it cannot be recovered.
Jiarun Liu ed81b3dd10 | 2 years ago | |
---|---|---|
LICENSE | 2 years ago | |
README.md | 2 years ago | |
backup_all_server.sh | 2 years ago | |
backup_list.txt | 2 years ago | |
rsync_tmbackup.sh | 2 years ago |
This script offers incremental backups of a list of server directorys. The backup module is based on this proj and rsync. Specifically, our code only support on Linux.
git clone https://github.com/JiarunLiu/rsync-time-backup
Our backup between servers is based on the ssh connection with public key. You can set up the ssh connection following this link or any ssh setup guide.
Add your servers and directories in the backup_list.txt
following this format:
# FORMAT
{USER_NAME}@{IP_ADDR}:{TARGET_DIR}
# SAMPLES
usename@192.168.1.1:/file/folder
The scripts will backup all the files in backup_list.txt
. Notablly, the backup list file support comment by "#".
We use crontab to backup file automatically in Linux or MaxOS. The instruction of crontab.
Switch to the ${PATH_TO_PROJECT}
and mkdir logs
to create an logging directory.
Edit the crontab tasks by crontab -e
. Then add the scripts (absolute path) to the end of crontab tasks:
# back up all servers at 1:00 am each day
0 1 * * * bash ${PATH_TO_PROJECT}/backup_all_servers.sh >> "${PATH_TO_PROJECT}/logs/$(date | sed -e 's/ [ ]*/_/g' ).log"
You can see the original introduction of our base project.
Rsync-based backup for multiple servers.
Shell Text
Dear OpenI User
Thank you for your continuous support to the Openl Qizhi Community AI Collaboration Platform. In order to protect your usage rights and ensure network security, we updated the Openl Qizhi Community AI Collaboration Platform Usage Agreement in January 2024. The updated agreement specifies that users are prohibited from using intranet penetration tools. After you click "Agree and continue", you can continue to use our services. Thank you for your cooperation and understanding.
For more agreement content, please refer to the《Openl Qizhi Community AI Collaboration Platform Usage Agreement》