Files
使用 rsync 進行備份時,您過濾/排除列表是什麼?
我正在嘗試建構一個全面的過濾器/排除文件,以防止備份沒有意義的備份內容,例如臨時/記憶體數據或易於重新創建的文件。如果您能分享(部分)您的 rsync 備份排除列表,我將不勝感激。
這是我到目前為止所擁有的:
## Universal excludes lost+found ld.so.cache # backup text files (e.g. from Emacs) - *~ - \#*\# # Commonly distributed Mac OS X cache - .DS_Store # Commonly distributed Windows cache - Thumbs.db ## Root file system - /dev/ - /etc/modules.conf - /media/ - /proc/ - /sys/ - /tmp/ - /usr/portage/ - /usr/src/ - /var/tmp/ - /var/log/ # Of the mounted stuff, whitelist only my two data partitions - /mnt/ + /mnt/data1 + /mnt/data2 # Common package managers (apt, yum) - /var/cache/apt/ - /var/cache/yum/ ## Filters for home dirs (assumes /home/<user> dir structure) # Cache - /home/*/.cache/ # Downloads - /home/*/Downloads/ + /home/*/Downloads/src/ # Dropbox - /home/*/Dropbox # Temporary files / cache - /home/*/.local/share/Trash - /home/*/.cache - /home/*/.Trash # X Windows System - /home/*/.xsession-errors* # Gnome temp stuff - /home/*/.compiz*/session - /home/*/.gksu.lock - /home/*/.gvfs # Common Applications # Adobe Reader - /home/*/.adobe/**/AssetCache/ - /home/*/.adobe/**/Cache/ - /home/*/.adobe/**/Temp/ - /home/*/.adobe/**/UserCache.bin # Dropbox temp stuff - /home/*/.dropbox/ - /home/*/.dropbox-dist/ # Gimp - /.gimp-*/tmp - /.gimp-*/swap # Mozilla Firefox - /home/*/.mozilla/firefox/*/Cache/ - /home/*/.mozilla/firefox/*/lock - /home/*/.mozilla/firefox/*/.parentlock # Mozilla Thunderbird - /home/*/.mozilla-thunderbird/*/lock - /home/*/.mozilla-thunderbird/*/.parentlock # Pidgin (accounts.xml contains passwords in clear text) - /home/*/.purple/accounts.xml
您認為添加到此過濾器文件中還有什麼有用的,或者您使用什麼以及為什麼?
我通常也排除:
/etc/mtab
/run/
/var/run/
/var/cache/pacman/pkg/
(在 Arch Linux 系統上)