Created
July 5, 2022 13:27
-
-
Save woosal1337/349c243b20a6604dfd32b4129c6ca694 to your computer and use it in GitHub Desktop.
🐧Linux archive CLI
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd / # THIS CD IS IMPORTANT THE FOLLOWING LONG COMMAND IS RUN FROM / | |
tar -cvpzf backup.tar.gz \ | |
--exclude=/backup.tar.gz \ | |
--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 / | |
cd / |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment