Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

tar exclude directory

$ tar --exclude='./folder' --exclude='./upload/folder2' -zcvf /backup/filename.tgz .
Comment

tar exclude directory

tar -cvf backup.tar --exclude="public_html/template/cache" public_html/
Comment

tar exclude directories from a File

tar -cvf backup.tar --exclude="log" --exclude="cache" public_heml/
Comment

tar exclude directories from a File

tar -cvf backup.tar -X exclude_directory.txt public_html/
Comment

PREVIOUS NEXT
Code Example
Shell :: ssh remote capture wireshark 
Shell :: cups disable and reneable a printer 
Shell :: Solidus getting started 
Shell :: exclude folder with gunzip linux 
Shell :: sudo nano search 
Shell :: kali uninstall nginx 
Shell :: aws ec2 "ubuntu" "sudo yum install nginx" "No package ngix available." 
Shell :: selinux apache 403 
Shell :: sudo apt upgrade nao actualiza 
Shell :: making password sensitive/hide in terraform 
Shell :: powershell try catch connect-viserver 
Shell :: select until end of file vim shortcut for commands 
Shell :: declare dataset in powershell 
Shell :: groupadd to folder linux fedora 
Shell :: ping command output to null in linux 
Shell :: how to reset password for ubuntu GCP instance 
Shell :: script linux code 
Shell :: resolve symlinks mac 
Shell :: git add interactively 
Shell :: linux hide mouse pointer for touch 
Shell :: linux Print the tree view of processes when SSH connection has been established 
Shell :: make[1]: [scripts/Makefile.lib:196: scripts/kconfig/zconf.tab.c] Error 127 make: *** [Makefile:534: bb.org_defconfig] Error 2 root@192.168.4.89:/usr/src/linux-4.19.94-ti-rt-r61# 
Shell :: vim cd cant use variables 
Shell :: shell script backup distant 
Shell :: how to uninstall deep security agent from ubuntu 
Shell :: pip install psycopg2 error 
Shell :: ADD exist repository into remote azure 
Shell :: autoremove kali linux 
Shell :: django flush sessions on server startup 
Shell :: import tkfontchooser in anaconda 
ADD CONTENT
Topic
Content
Source link
Name
1+2 =