Source: Rsync Preserve / Copy Hard Links ( Backup Rsnapshot Directory Tree )
Continue reading »Source: Linux 使用 rsync 進行增量備份、建立檔案快照教學與範例
資料的備份方式可分為完全備份(full backup)、差異備份(differential backup)與增量備份(incremental backup),各種備份方式各有優缺點,其差別可以參考維基百科與 YouTube 的影片。
Continue reading »Source: Handling renamed files or directories in rsync
Here is a tool that is designed to work before rsync
is run: rsync-sidekick
This propagates following changes from source directory to destination directory (or any combination of below):
- Change in file modification timestamp
- Rename of file/directory
- Moving a file from one directory to another
rsync
options such as --detect-renamed
, --detect-renamed-lax
, --detect-moved
and --fuzzy
don’t work reliably and sometimes are dangerous! rsync-sidekick
is reliable alternative to all these options and much more.
Source: Creating differential backups with hard links and rsync
You can use a hard link in Linux to create two file names that both point to the same physical location on a hard disk. For instance, if I type:
Continue reading »Source: Efficiently delete large directory containing thousands of files
Using rsync is surprising fast and simple.
mkdir empty_dir
rsync -a --delete empty_dir/ yourdirectory/
@sarath’s answer mentioned another fast choice: Perl! Its benchmarks are faster than rsync -a --delete
.
cd yourdirectory
perl -e 'for(<*>){((stat)[9]<(unlink))}'
Sources:
- http://stackoverflow.com/questions/1795370/unix-fast-remove-directory-for-cleaning-up-daily-builds
- http://www.slashroot.in/which-is-the-fastest-method-to-delete-files-in-linux
rsync
can be faster than plain rm
, because it guarantees the deletes in correct order, so less btress recomputation is needed. See this answer serverfault.com/a/328305/105902
原文(source): Rsync 中文參數說明 | cafetw | gaaan.com
在網路上一篇說明RSYNC參數的文章!! 超詳細!! 怕網站不見,在此備份一份。
原文是http://support.clara.com.tw/ 的內容,
網址於:http://support.clara.com.tw/index.php?_m=knowledgebase&_a=viewarticle&kbarticleid=66&nav=0
AppleBOY’s Blog » [Linux] cwRsync [rsync for windows] SSH 加密異地備份
December 14, 2006 on 8:35 pm | Posted in windows, Linux, FreeBSD at 8:35 pm by appleboy
這個我找了好久~因為館內用的系統2003server跟前端系統linux,2個是不同的作業系統