gzip folder with tar and exclude directories
Shell
# create a gzip archive of my-backup-folder
# but exclude all node_module directories
# flags:
# --exclude = exclude files, given as a PATTERN
# -c = create a new archive
# -z = filter the archive through gzip
# -f = use archive file or device ARCHIVE
#
# IMPORTANT NOTE:
# the exclude flag needs to come first to work
tar --exclude "node_modules" -czf backup.tar.gz /my-backup-folder
Also in Shell:
- Title
- rsync backup
- Category
- Shell
- Title
- git checkout branch
- Category
- Shell
- Title
- how to install conda using pip
- Category
- Shell
- Title
- docker check running containers
- Category
- Shell
- Title
- linux vim replace all
- Category
- Shell
- Title
- powershell import-certificate trusted publisher
- Category
- Shell
- Title
- cd git bash
- Category
- Shell
- Title
- pip install boto3
- Category
- Shell
- Title
- install font awesome
- Category
- Shell
- Title
- npm install Cannot read property 'match' of undefined
- Category
- Shell
- Title
- como instalar ext-mbstring en ubuntu 18.04
- Category
- Shell
- Title
- how to remove a pushed file from git
- Category
- Shell
- Title
- git ignore not saving changes
- Category
- Shell
- Title
- run mysql xampp shell
- Category
- Shell
- Title
- how to uninstall a package with yarn
- Category
- Shell
- Title
- dotfiles
- Category
- Shell
- Title
- default root password ubuntu 18.04
- Category
- Shell
- Title
- git squash last 2 commits
- Category
- Shell
- Title
- how to check if django is installed in ubuntu
- Category
- Shell
- Title
- update yarn
- Category
- Shell
- Title
- mv folder linux
- Category
- Shell
- Title
- Verificação de acesso de escrita [/srv/moodle/lib/editor/atto/plugins] Instalação abortada devido a falha de validação
- Category
- Shell
- Title
- git ignore file mode changes
- Category
- Shell
- Title
- ubuntu remove temp files
- Category
- Shell
- Title
- git fetch tags force
- Category
- Shell
- Title
- set git pull rebase default
- Category
- Shell
- Title
- fingerprint login disabled ubuntu 20.04
- Category
- Shell
- Title
- powershell create symlink
- Category
- Shell
- Title
- register runner gitlab
- Category
- Shell
- Title
- linux extract tgz
- Category
- Shell
- Title
- powershell script run
- Category
- Shell
- Title
- how to image an entire disk on linux
- Category
- Shell
- Title
- how to get the size of directory in linux
- Category
- Shell
- Title
- java project ideas
- Category
- Shell
- Title
- ssh usage copy file
- Category
- Shell
- Title
- tab to csv command line
- Category
- Shell
- Title
- markdown with dimensions image github
- Category
- Shell
- Title
- install docker compose
- Category
- Shell
- Title
- git command to create a branch
- Category
- Shell
- Title
- bash split variable by delimiter
- Category
- Shell
- Title
- connection failed blueman.bluez.errors.dbusfailederror protocol not available
- Category
- Shell
- Title
- install packages with pip from python
- Category
- Shell
- Title
- linux change file name
- Category
- Shell
- Title
- clone a given branch github
- Category
- Shell
- Title
- how to switch branches in git
- Category
- Shell
- Title
- install maven homebrew
- Category
- Shell
- Title
- linux start mongodb
- Category
- Shell
- Title
- ubuntu set scale to 150
- Category
- Shell
- Title
- how to install vue in laravel
- Category
- Shell
- Title
- how to save environment variables ubuntu
- Category
- Shell
- Title
- how to check upstream git
- Category
- Shell
- Title
- oh my zsh git
- Category
- Shell
- Title
- count files in directory linux
- Category
- Shell
- Title
- jq filter array
- Category
- Shell
- Title
- ubuntu camera not longer found
- Category
- Shell
- Title
- how to uninstall in ubuntu
- Category
- Shell
- Title
- save account to git
- Category
- Shell
- Title
- how to kill a process in linux
- Category
- Shell
- Title
- Could not execute 'apt-key' to verify signature (is gnupg installed?)
- Category
- Shell
- Title
- rpm fusion repo install fedora
- Category
- Shell
- Title
- passport deploy to server
- Category
- Shell
- Title
- ufw allow port
- Category
- Shell
- Title
- bash string to file
- Category
- Shell
- Title
- getcwd() failed: No such file or directory linux server
- Category
- Shell
- Title
- undo git add
- Category
- Shell
- Title
- ignore .DS_store when uploading to s3 using shell
- Category
- Shell
- Title
- git log display files changed
- Category
- Shell
- Title
- install material ui
- Category
- Shell
- Title
- ubuntu view disk space ec2
- Category
- Shell
- Title
- git unstage file for commit
- Category
- Shell
- Title
- bash measure execution time
- Category
- Shell
- Title
- How do I get a complete list of all table names in all databases in Hive?
- Category
- Shell
- Title
- ruby for loop
- Category
- Shell
- Title
- ubuntu mongodb not starting
- Category
- Shell
- Title
- bash display items in array
- Category
- Shell
- Title
- wireshark export list of ip addresses
- Category
- Shell
- Title
- how to create branch in github using git bash
- Category
- Shell
- Title
- how to fix libffi missing in macos
- Category
- Shell
- Title
- copy contents of multiple files to one file powershell
- Category
- Shell
- Title
- linux create file
- Category
- Shell
- Title
- obs
- Category
- Shell
- Title
- julia install linux
- Category
- Shell
- Title
- youtube api python
- Category
- Shell
- Title
- curl ignore certificate
- Category
- Shell
- Title
- linux command line in windows 10
- Category
- Shell
- Title
- git basic command tutorial
- Category
- Shell
- Title
- redirect folder to 403
- Category
- Shell
- Title
- linux c++ from console
- Category
- Shell
- Title
- git revert merge
- Category
- Shell
- Title
- ubuntu bionic docker container install chrome
- Category
- Shell
- Title
- linux find file
- Category
- Shell
- Title
- disable swap ubuntu 18.04
- Category
- Shell
- Title
- git flow
- Category
- Shell
- Title
- helm add stable hub
- Category
- Shell
- Title
- rpi-update specific kernel version
- Category
- Shell
- Title
- how use vim in linux
- Category
- Shell
- Title
- how to get git username and password
- Category
- Shell
- Title
- ubuntu ram type
- Category
- Shell
- Title
- linux os upgrade
- Category
- Shell
- Title
- remove git tracking
- Category
- Shell