Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

copy specific files only from directories

rsync -a -m --include='*.jpg' --include='*/' --exclude='*' src_directory/ dst_directory/

--include='*.jpg' - First we are including all .jpg files.
--include='*/' - Then we are including all directories inside the in src_directory directory. Without this rsync will only copy *.jpg files in the top level directory.
-m - Removes the empty directories
Comment

PREVIOUS NEXT
Code Example
Shell :: vault seal check 
Shell :: how to simultaneously originate to both users in fs 
Shell :: get wasmtime 
Shell :: aexprot bash varible to another script 
Shell :: executable library dependency check 
Shell :: sync folder from local to server with progress 
Shell :: -d flag linux if 
Shell :: come resettare le impostazioni di connessione linux 
Shell :: adminer installieren welcher ordner 
Shell :: centos 8 gui 3 
Shell :: django secrets 
Shell :: start up chronyd 
Shell :: how to install and update git mac terminal 
Shell :: whats up with docker compose and orphan containers 
Shell :: difference between - and -- in linux 
Shell :: Git Commands: Step By Step Guide (Part 1) 
Shell :: wget -v usage 
Shell :: Error: Account is not an upgradeable program or already in use 
Shell :: tar variable name 
Shell :: uninstall laptop mode tools ubuntu 
Shell :: grep two different ocurrencies 
Shell :: gitlab with DNS name, if ssl certificate using at load balancer level please configure the gitlab with HTTP only 
Shell :: ASUS Router NVRAM script 
Shell :: MPIexec command 
Shell :: anbox linux 
Shell :: Failure [INSTALL_FAILED_UPDATE_INCOMPATIBLE: Package com.ccc.notification signatures do not match previously installed version; ignoring!] 
Shell :: upload file to remote linux 
Shell :: user alternative php version in cpanel ssh 
Shell :: remove admin group ubuntu 
Shell :: install openzeppelin 
ADD CONTENT
Topic
Content
Source link
Name
3+7 =