gaiety revised this gist 3 months ago. 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