Skip to content

Instantly share code, notes, and snippets.

@rohan-molloy
Created February 6, 2018 02:29
Show Gist options
  • Save rohan-molloy/9dd795a1619d2aa840c9b1b472edaf86 to your computer and use it in GitHub Desktop.
Save rohan-molloy/9dd795a1619d2aa840c9b1b472edaf86 to your computer and use it in GitHub Desktop.
sudo tar -cvpz
--exclude=/proc \
--exclude=/tmp \
--exclude=/mnt \
--exclude=/dev \
--exclude=/sys \
--exclude=/run \
--exclude=/media \
--exclude=/var/log \
--exclude=/var/cache/apt/archives \
--exclude=/usr/src/linux-headers* \
--exclude=/home/*/.gvfs \
--exclude=/home/*/.cache \
--exclude=/home/*/.local/share/Trash /
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment