Created
August 28, 2013 08:30
-
-
Save djo/6363570 to your computer and use it in GitHub Desktop.
When you don't have time to read `man tar`.
This file contains hidden or 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
# Create the archive | |
tar -zcvf archive.tar.gz /home/dir | |
# Restore the archive | |
tar -zxvf archive.tar.gz | |
tar -zxvf archive.tar.gz -C /tmp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment