Skip to content

Instantly share code, notes, and snippets.

@nickleeh
Created September 5, 2015 14:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nickleeh/0475a682d547c70819c6 to your computer and use it in GitHub Desktop.
Save nickleeh/0475a682d547c70819c6 to your computer and use it in GitHub Desktop.
Linux command to backup dotfiles. (dot file only, excluing directories starts with a dot)
find . -maxdepth 1 -type f -name ".?*" -exec tar czfv dotfiles_`date +%F`.tgz {} +
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment