rsync backup script

Alibabacloud.com offers a wide variety of articles about rsync backup script, easily find your rsync backup script information here online.

Rsync-image backup tool User Guide

max@144.16.251.213: Test test 4. Some useful scripts These scripts are examples on the rsync Website:   1) Incrementally back up data to the central server every seven days #! /Bin/sh # This script does personal backups to a rsync backup server. You will end up# With a 7-day rotating Incremental

To perform a mirrored backup of a Web site with rsync step _linux

the client also deleted the file, to maintain a true consensus. In the back of the Inburst@ip, Inburst is the username in the specified password file, followed by:: Inburst This inburst is the module name, which is the custom name in/etc/rsyncd.conf. The last/TMP is a backup To the local directory name. In this case, you can also use the e-ssh parameter to establish an encrypted connection. You can use--password-file=/password/path/file to specify a

Rsync Backup Service configuration process

]# tail/etc/rc.local#!/bin/sh## This script is executed *after* all theother init scripts.# can put your own initialization stuff inhere if you don ' t# want to does the full Sys V style init stuff.Touch/var/lock/subsys/local>/etc/udev/rules.d/70-persistent-net.rules/usr/bin/rsync–daemonTo view logs:[Email protected] oldboy]# Tail/var/log/rsyncd.log2016/09/09 00:49:34 [2143] Receiving file list2016/09/09 00

Using Rsync+inotify-tools to realize real-time synchronous backup of data in Linux

/rsyncd.conf #创建配置文件, add the following code Log file =/var/log/rsyncd.log #日志文件位置, which automatically generates this file when you start rsync, without having to create it in advance Pidfile =/var/run/rsyncd.pid #pid文件的存放位置 Lock file =/var/run/rsync.lock #支持max connections parameter Secrets file =/etc/rsync.pass #用户认证配置文件, which saves the user name and password, which is later created MOTD file =/etc/rsyncd. MOTD #

Powerful rsync website automatic backup tool

/rsync-vzrtopg -- progress -- delete $ dstdir $ rsyncuser @ $ ip: $ module -- password-file = $ rsyncpasswordEcho "$ {file} was rsynced">/tmp/rsync. log 2> 1DoneDone 9. chmod 755 rsync. sh 10. Run the shell script and check whether the operation is successful in the corresponding directory. 11. Set auto-start upon sta

Rsync + SSH Incremental backup file in FreeBSD system

Rsync + SSH Incremental backup file in FreeBSD system There are two machines. One is called a server and the other is called a backup machine. How can we copy the server data to the backup machine on a daily or regular basis? The powerful functions of rsync will be used here

Data mirroring Backup tool for Rsync Linux system

recursive (recursion), TOPG is to keep the original attributes of the file, such as the main, time parameters. --progress is the display of detailed progress,--delete is that if the server side delete the file, then the client will also delete the file, to maintain true consistency.[Email protected]::98html means that the command is a backup of the 98html module in Server x.x.x.168, where 98syn means a 98syn user is used to back up the module. ---PAS

Rsync data image backup tool in Linux

(recursive ), topg is a parameter that maintains the original attributes of the file, such as the owner and time. -- Progress indicates that the detailed progress is displayed. -- delete indicates that if the server deletes the file, the client also deletes the file to ensure true consistency.98syn@x.x.x.168: 98 HTML indicates that the command is to back up the 98html module in server x. x. x.168, where 98syn indicates that 98syn is used to back up the module. -- Password-file =/etc/rsync98.scr

Rsync data image backup tool in Linux

parameter that maintains the original attributes of the file, such as the owner and time. -- Progress indicates that the detailed progress is displayed. -- delete indicates that if the server deletes the file, the client also deletes the file to ensure true consistency.98syn@x.x.x.168: 98 html indicates that the command is to back up the 98html module in server x. x. x.168, where 98syn indicates that 98syn is used to back up the module. -- Password-file =/etc/rsync98.scrt to specify the passwor

Rsync+inotify for full-network Automation data backup-technology flow Ken

*:* LISTEN 0 5 ::873 :::* 4. Configure the INotify service sideDownload inotify need to configure the Epel warehouse, copy the following code into your Yum config file can be[Ken]name=kenenabled=1gpgcheck=0baseurl=https:// mirrors.aliyun.com/epel/7server/x86_64/Download inotify[email protected] ~]# Yum install rsync inotify-tools-yCreate a directory where

Xtrabackup+rsync backing up the database and synchronizing to the remote backup machine

}.tar.gz[emailprotected]${rsync_hostip}::$ rsyncmodule| | exit1# Delete Compressed Files rm-f${backuptodir}mysql_full_${ip}_${lastfull_backup}.tar.gz To create a scheduled task:Crontab-e#对数据库进行全备份0 1 * * * CD/DATA/SCRIPTS/MYSQL;. /mysql_full_backup.shThis script only executes the VI mysqlbinlog_backup.sh#!/bin/bash# on the Passport server This script is used to back up the binary log files and is completed

Linux uses rsync remote file synchronization and backup tools teaching and learning examples __linux

rsync Simple The role of rsync is like the general Linux CP and SCP directive, which can be copied from the source location to the destination location, however, rsync is more efficient than CP and SCP in a copy of the file, and supports both the connection and the devices, as well as the retention of the file's owner, group Group and permissions, In the first c

Real-time backup configuration of data is realized through Rsync+inotify _linux

First, the advantages and disadvantages of rsync Compared with the traditional CP and tar backup methods, Rsync has the advantages of high security, fast backup, support incremental backup, etc., through rsync can solve the real-

How to configure Rsync to synchronize backup storage in linux

Article Title: linux Rsync synchronization backup storage configuration tutorial. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source. Master server: 192.168.0.220 (CentOS 4.4) Slave server: 192.168.0.248 (CentOS 5) ============================ 1> install

Backup of Linux servers rsync

situations.In this example, I added the archive switch (-a), which is actually equivalent to using several rsync switches at the same time. It includes a recursive and duplicate symbolic link switch, a retention group and a master attribute switch, in short, to make rsync suitable for archival copies. Note that the-a does not retain hard links, and you should also add a hard-link switch (-h) if you want.An

Rsync Remote synchronization backup data (SSH mode)

I did not use, save the reference later Reprint Source: Http://outofmemory.cn/wr/?u=http%3A%2F%2Fsmilejay.com%2F2012%2F02%2Frsync_remote%2F Two days ago, I checked the department's test data and file backup situation, see the crontab has an rsync script, I look carefully, manual execution is actually not working properly, mainly because

Remote disaster recovery backup via Linux Data mirroring Backup tool rsync

First, the introduction of rsync Rsync is a data mirroring Backup tool under the Linux system that enables you to back up local system data over the network to any remote host, and Rsync has the following characteristics: Can be mirrored to save the entire directory tree and file system Data can be incrementally syn

Rsync+inotify for remote Data backup

logging to the machine, with "ssh" [email protected] ' ", and check in:. Ssh/authorized_keysTo make sure we haven ' t added extra keys so you weren ' t expecting.Test: SSH [email protected][Email protected] ~]# RSYNC-AZP--delete [email protected]:/usr/local/nginx/html//web-backup/[Email protected] ~]# ll-l/web-backup/Total 12-RW-RWXR--. 1 root root 537 Sep 8 10:

Scripts for SVN backup and recovery, remote backup based on rsync, and logging

_docs1-lt $NUM _docs2];then svnadmindump $SVN _dir_docs-r $NUM _docs1: $NUM _docs2--incremental > $SVN _bak_dir/docs_bak_$dateif[$?-eq0];thenecho $NUM _ docs2>/data/svnnum/docs_svn_idelseecho "$ (date+%f) docsbackupfail ..." >>/tmp/svnback.logfifiif [ $NUM _tools1-lt $NUM _tools2];thensvnadmindump $SVN _dir_tools -r $NUM _tools1: $NUM _tools2--incremental> $SVN _bak_dir/tools_bak_$ dateif[$?-eq0];thenecho $NUM _tools2>/data/svnnum/tools_svn_ idelseecho "$ (date+%f) toolsbackupfail ..." >>/tmp/

Scripts for SVN backup and recovery, remote backup based on rsync, and logging

_docs1-lt $NUM _docs2];then svnadmindump $SVN _dir_docs-r $NUM _docs1: $NUM _docs2--incremental > $SVN _bak_dir/docs_bak_$dateif[$?-eq0];thenecho $NUM _ docs2>/data/svnnum/docs_svn_idelseecho "$ (date+%f) docsbackupfail ..." >>/tmp/svnback.logfifiif [ $NUM _tools1-lt $NUM _tools2];thensvnadmindump $SVN _dir_tools -r $NUM _tools1: $NUM _tools2--incremental> $SVN _bak_dir/tools_bak_$ dateif[$?-eq0];thenecho $NUM _tools2>/data/svnnum/tools_svn_ idelseecho "$ (date+%f) toolsbackupfail ..." >>/tmp/

Total Pages: 15 1 2 3 4 5 6 .... 15 Go to: Go

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.