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.

gaiety's Avatar gaiety revised this gist 1752986010. Go to revision

1 file changed, 16 insertions

linux-root-rsync.sh(file created)

@@ -0,0 +1,16 @@
1 + rsync -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
Newer Older