|
| 1 | +# Raspberry Pi Image Cleanup Exclude File |
| 2 | + |
| 3 | +# Usage |
| 4 | +# RF = remove file |
| 5 | +# RD = remove directory |
| 6 | +# RT = remove tree (removes directory and everything in it) |
| 7 | +# RFID = remove all files in directory |
| 8 | +# RAIT = remove all in tree (removes all in the directory and subdirectories but keeps the tree) |
| 9 | +# RAID = remove all in directory (removes everything in the directory) |
| 10 | +# §USER = is replaced with the actual user |
| 11 | + |
| 12 | + |
| 13 | +# Allgemeine temporäre/veränderliche Daten |
| 14 | +rait = /var/cache/apt/archives |
| 15 | +rait = /var/tmp |
| 16 | +rait = /tmp |
| 17 | +rait = /proc |
| 18 | +rait = /sys |
| 19 | +rait = /run |
| 20 | +rait = /lost+found |
| 21 | +rait = /var/spool |
| 22 | +rait = /var/lock |
| 23 | +rait = /var/lib/apt/lists |
| 24 | +rait = /var/lib/systemd/random-seed |
| 25 | +rait = /var/lib/systemd/coredump |
| 26 | +rf = /var/swap |
| 27 | + |
| 28 | +# Protokolle & Backups |
| 29 | +rait = /var/log |
| 30 | +rfid = /var/backups/* |
| 31 | + |
| 32 | +# SSH & System-IDs |
| 33 | +#rf = /etc/ssh/ssh_host_* |
| 34 | +#rf = /etc/machine-id |
| 35 | +#rf = /var/lib/dbus/machine-id |
| 36 | + |
| 37 | +# Benutzer: temporäre und sensible Dateien |
| 38 | +rait = /home/§user/.cache |
| 39 | +rait = /home/§user/.local/share/Trash |
| 40 | +raid = /home/§user/Downloads |
| 41 | +rf = /home/§user/.bash_history |
| 42 | +rf = /home/§user/.xsession-errors |
| 43 | +rf = /home/§user/.xsession-errors.old |
| 44 | +rf = /home/§user/.recently-used |
| 45 | +rf = /home/§user/.local/share/recently-used.xbel |
| 46 | +rait = /home/§user/.thumbnails |
| 47 | +rait = /home/§user/.gvfs |
| 48 | + |
| 49 | +# Wayland/X11 spezifisch |
| 50 | +rait = /home/§user/.local/share/wayland-sessions |
| 51 | +rait = /home/§user/.local/share/xorg |
| 52 | + |
| 53 | +# Browser-Caches |
| 54 | +rait = /home/§user/.cache/mozilla |
| 55 | +rait = /home/§user/.mozilla |
| 56 | +rait = /home/§user/.cache/chromium |
| 57 | +rait = /home/§user/.config/chromium |
| 58 | + |
| 59 | +# Desktop-Umgebungen |
| 60 | +rait = /home/§user/.local/share/gvfs-metadata |
| 61 | +rait = /home/§user/.local/share/zeitgeist |
| 62 | + |
| 63 | +# Snap / Flatpak |
| 64 | +rt = /var/lib/snapd |
| 65 | +rt = /snap |
| 66 | +rt = /home/§user/snap |
| 67 | +rt = /var/tmp/flatpak-cache |
| 68 | +rt = /home/§user/.var/app |
| 69 | + |
| 70 | +# Optional: große Software-Reste (nur wenn deinstalliert) |
| 71 | +#rt = /opt/Wolfram |
| 72 | +#rt = /usr/lib/libreoffice |
| 73 | + |
| 74 | +# Optional: Hintergrundbilder & Themes |
| 75 | +#rt = /usr/share/PIXEL-wallpaper |
| 76 | + |
| 77 | +# Optional: Doku, Manpages, Beispiele |
| 78 | +#rt = /usr/share/doc |
| 79 | +#rt = /usr/share/man |
| 80 | +#rt = /usr/share/info |
| 81 | +#rt = /usr/share/examples |
| 82 | +#rt = /usr/lib/python*/test |
| 83 | + |
| 84 | +# Optional: Nur Englisch/Deutsch behalten |
| 85 | +#find /usr/share/locale -mindepth 1 -maxdepth 1 ! -name "de" ! -name "en" -exec rm -rf {} + |
| 86 | + |
0 commit comments