rsync compressed backup

Discover rsync compressed backup, include the articles, news, trends, analysis and practical advice about rsync compressed backup on alibabacloud.com

Rsync+inotify automatic synchronized backup of folders

1 Configure the Rsync server, client, see previous article/www Backup to Rsync192.168.1.11/tmp/backup in 192.168.1.10web server2 Download and install INotifywget http://github.com/downloads/rvoicilas/inotify-tools/inotify-tools-3.14.tar.gzUnzip./configure make make Install3 IntroductionInotify-tools provides two command-line tools:Inotifywait: Class for continuou

Mysqldump backup into a compressed package

You can directly apply mysqldump directly to backup the tables in the MySQL database or the entire database into a compressed format packageNo more nonsense, just go to the code.[SQL]View PlainCopyprint? Mysqldump-h localhost-uroot-phb118114 DB_NDC Prod_customer | gzip >/home/prod_customer_${daystring}.sql.gz Mysqldump-h localhost-uroot-phb118114 DB_NDC prod_customer_20141209 | gzip >/home/prod

Python backup, delete expired compressed files

#!/usr/bin/python#-*-Coding:utf-8-*-Import Os,sys,datetimeImport ShutilImport timedef zipfile (s_dir,path= "."):target = path + os.sep + s_dir.split ('/') [-1] + time.strftime ('%y%m%d%h%m%s ') + '. Zip 'Zip_command = "Zip-qr%s%s-x ' *.gz '"% (Target,s_dir)If Os.system (zip_command) = = 0:print ' successful backup to ', targetElseprint ' Backup failed! 'def removefilesbeforedate (beforetime, Path = "."):For

Rsync + inotify Real-time backup

rsync configuration stepsServer-side1. Install rsyncYum Install rsync2. Modify the configuration fileVim/etc/rsyncd.conf #默认不存在需要自己创建##############################Uid=rsyncGid=rsyncUse Chroot =noMax connections=200timeout=600PID File=/var/run/rsyncd.pidLock file =/var/run/rsyncd.lockLog file =/var/log/rysncd.log[ZQ]Path=/zqIgnore errorsRead Only=noList =noHosts ALLOW=192.168.1.0/24Auth USER=ZQSecrets file=/etc/web.passwd3. Create login user and passwo

Linuxshell script using RSYNC+SSH for remote backup of Linux file system

Feature Description:The script is used to transfer the local directory to the remote server on a regular basis (in conjunction with crontab), with each execution generating a time-named directory, and the current version of the data is linked to a symbolic link with the first name, so it is easy to find and recover. Before the data transfer is complete, it is transferred to the TEMP directory, which is named "Time-incomplete". Backups older than 10 days will be deleted and log files older than 1

Simple server file backup method with VBS compressed file name automatically named _vbs by date

Simple server file backup method compressed file name automatically named by date Dim Filename,wshshell,fs,mycommandfilename=cstr (Now) + ". RAR " mycommand= "rar A" +filename+ "file name or directory name to compress" Set WshShell = WScript.CreateObject ("Wscript.Shell") Set fs=createobject ("Scripting.FileSystemObject") If Fs.fileexists (FileName) Then Fs. DeleteFile Filename,true End If Wshshell.run myco

Total Pages: 8 1 .... 4 5 6 7 8 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.