Last active 1752986011

Without the cruft! It's nice to do a partial system root backup of Linux with rsync, this has a lot of excludes already for you.

linux-root-rsync.sh Raw
1rsync -a \
2 --log-file=$logFile \
3 --exclude=/swap.img \
4 --exclude=/snap \
5 --exclude=/dev \
6 --exclude=/mnt \
7 --exclude=/proc \
8 --exclude=/sys \
9 --exclude=/tmp \
10 --exclude=/var/tmp \
11 --exclude=/var/log \
12 --exclude=/media \
13 --exclude=/usr/lib \
14 --exclude=/usr/src \
15 --exclude=/lost+found \
16 / /other/location/to/sync/to
17