Last active
May 23, 2016 17:26
-
-
Save fsmithred/9a4ee2b152f637f0fc6d3af269ca23ec to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# rsync excludes file for live-snapshot-auto1.sh | |
# | |
# Exclude some system files. These are required, and you probably | |
# shouldn't change them. | |
- "$source_system"/dev/* | |
- "$source_system"/cdrom/* | |
- "$source_system"/media/* | |
- "$source_system"/swapfile | |
- "$source_system"/mnt/* | |
- "$source_system"/sys/* | |
- "$source_system"/proc/* | |
- "$source_system"/tmp/* | |
- "$source_system"/live | |
- "$source_system"/persistence.conf | |
- "$source_system"/boot/grub/grub.cfg | |
- "$source_system"/boot/grub/menu.lst | |
- "$source_system"/boot/grub/device.map | |
- "$source_system"/boot/*.bak | |
- "$source_system"/boot/*.old-dkms | |
- "$source_system"/etc/udev/rules.d/70-persistent-cd.rules | |
- "$source_system"/etc/udev/rules.d/70-persistent-net.rules | |
- "$source_system"/etc/fstab | |
- "$source_system"/etc/fstab.d/* | |
- "$source_system"/etc/mtab | |
- "$source_system"/etc/blkid.tab | |
- "$source_system"/etc/blkid.tab.old | |
- "$source_system"/etc/apt/sources.list~ | |
- "$source_system"/etc/crypttab | |
- "$source_system"/etc/initramfs-tools/conf.d/resume # see remove-cryptroot and nocrypt.sh | |
- "$source_system"/etc/initramfs-tools/conf.d/cryptroot # see remove-cryptroot and nocrypt.sh | |
- "$source_system"/home/snapshot | |
# Added for newer version of live-config/live-boot in wheezy | |
# These are only relevant here if you create a snapshot while | |
# you're running a live-CD or live-usb. | |
- "$source_system"/lib/live/overlay | |
- "$source_system"/lib/live/image | |
- "$source_system"/lib/live/rootfs | |
- "$source_system"/lib/live/mount | |
- "$source_system"/run/* | |
## Entries below are optional. They are included either for privacy | |
## or to reduce the size of the snapshot. If you have any large | |
## files or directories, you should exclude them from being copied | |
## by adding them to this list. | |
## | |
## Entries beginning with /home/*/ will affect all users. | |
# Uncomment this to exclude everything in /var/log/ | |
#- /var/log/* | |
# As of version 9.2.0, current log files are truncated, | |
# and archived log files are excluded. | |
# | |
# The next three lines exclude everything in /var/log | |
# except /var/log/clamav/ (or anything else beginning with "c") and | |
# /var/log/gdm (or anything beginning with "g"). | |
# If clamav log files are excluded, freshclam will give errors at boot. | |
#- /var/log/[a-b,A-Z]* | |
#- /var/log/[d-f]* | |
#- /var/log/[h-z]* | |
#- /var/log/*gz | |
- "$source_system"/var/cache/apt/archives/*.deb | |
- "$source_system"/var/cache/apt/pkgcache.bin | |
- "$source_system"/var/cache/apt/srcpkgcache.bin | |
- "$source_system"/var/cache/apt/apt-file/* | |
- "$source_system"/var/cache/debconf/*~old | |
- "$source_system"/var/lib/apt/lists/* | |
- "$source_system"/var/lib/apt/*~ | |
- "$source_system"/var/lib/apt/cdroms.list | |
- "$source_system"/var/lib/aptitude/*.old | |
- "$source_system"/var/lib/dhcp/* | |
- "$source_system"/var/lib/dpkg/*~old | |
- "$source_system"/var/spool/mail/* | |
- "$source_system"/var/mail/* | |
- "$source_system"/var/backups/*.gz | |
#- /var/backups/*.bak | |
- "$source_system"/var/lib/dbus/machine-id | |
- "$source_system"/var/lib/live/config/* | |
- "$source_system"/usr/share/icons/*/icon-theme.cache | |
- "$source_system"/root/.aptitude | |
- "$source_system"/root/.bash_history | |
- "$source_system"/root/.disk-manager.conf | |
- "$source_system"/root/.fstab.log | |
- "$source_system"/root/.lesshst | |
- "$source_system"/root/*/.log | |
- "$source_system"/root/.local/share/* | |
- "$source_system"/root/.nano_history | |
- "$source_system"/root/.synaptic | |
- "$source_system"/root/.VirtualBox | |
- "$source_system"/root/.ICEauthority | |
- "$source_system"/root/.Xauthority | |
- "$source_system"/root/.ssh | |
- "$source_system"/home/*/.Trash* | |
- "$source_system"/home/*/.local/share/Trash/* | |
- "$source_system"/home/*/.mozilla/*/Cache/* | |
- "$source_system"/home/*/.mozilla/*/urlclassifier3.sqlite | |
- "$source_system"/home/*/.mozilla/*/places.sqlite | |
- "$source_system"/home/*/.mozilla/*/cookies.sqlite | |
- "$source_system"/home/*/.mozilla/*/signons.sqlite | |
- "$source_system"/home/*/.mozilla/*/formhistory.sqlite | |
- "$source_system"/home/*/.mozilla/*/downloads.sqlite | |
- "$source_system"/home/*/.adobe | |
- "$source_system"/home/*/.aptitude | |
- "$source_system"/home/*/.bash_history | |
- "$source_system"/home/*/.cache | |
- "$source_system"/home/*/.dbus | |
- "$source_system"/home/*/.gksu* | |
- "$source_system"/home/*/.gvfs | |
- "$source_system"/home/*/.lesshst | |
- "$source_system"/home/*/.log | |
- "$source_system"/home/*/.macromedia | |
- "$source_system"/home/*/.nano_history | |
- "$source_system"/home/*/.pulse* | |
- "$source_system"/home/*/.recently-used | |
- "$source_system"/home/*/.recently-used.xbel | |
- "$source_system"/home/*/.local/share/recently-used.xbel | |
- "$source_system"/home/*/.thumbnails/large/* | |
- "$source_system"/home/*/.thumbnails/normal/* | |
- "$source_system"/home/*/.thumbnails/fail/* | |
- "$source_system"/home/*/.vbox* | |
- "$source_system"/home/*/.VirtualBox | |
- "$source_system"/home/*/VirtualBox\ VMs | |
#- /home/*/.wine | |
- "$source_system"/home/*/.xsession-errors* | |
- "$source_system"/home/*/.ICEauthority | |
- "$source_system"/home/*/.Xauthority | |
# You might want to comment these out if you're making a snapshot for | |
# your own personal use, not to be shared with others. | |
- "$source_system"/home/*/.gnupg | |
- "$source_system"/home/*/.ssh | |
- "$source_system"/home/*/.xchat2 | |
# Exclude ssh_host_keys. New ones will be generated upon live boot. | |
# This fixes a security hole in all versions before 9.0.9-3. | |
# If you really want to clone your existing ssh host keys | |
# in your snapshot, comment out these two lines. | |
- "$source_system"/etc/ssh/ssh_host_*_key* | |
- "$source_system"/etc/ssh/ssh_host_key* | |
# Examples of things to exclude in order to keep the image small: | |
#- /home/fred/Downloads/* | |
#- /home/*/Music/* | |
#- /home/user/Pictures/* | |
#- /home/*/Videos/* | |
# To exclude all hidden files and directories in your home, uncomment | |
# the next line. You will lose custom desktop configs if you do. | |
#- /home/*/.[a-z,A-Z,0-9]* | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment