Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

Sync two local directories in a Linux machine

// Install rsync 
sudo apt-get install rsync
// Run this everytime the source directory here: dir1 is changed
rsync -av --progress --delete dir1/ dir2

// for instance:
sudo rsync -av --progress --delete frontend/build/ /var/www/html


// FYI Unison seems to be another popular alternative 
"https://www.cis.upenn.edu/~bcpierce/unison/"
Comment

PREVIOUS NEXT
Code Example
Shell :: NGINX setup for react plus django (rest framework) in same server 
Shell :: scapy tutorials for mac 
Shell :: apache terminal count files in folder 
Shell :: copy too large file commmand linux 
Shell :: list of keycode based on key selection 
Shell :: Delay app startup on Ubuntu 
Shell :: wget raw to file 
Shell :: get unix time from date 
Shell :: diff between tail and head command 
Shell :: create public key linux 
Shell :: add geckodriver to path linux 
Shell :: not a git repository after clone 
Shell :: linux change directoryyy 
Shell :: grep search match in all files in folder 
Shell :: powershell merge csv files 
Shell :: unstage particular file git 
Shell :: read -p linux 
Shell :: instal rust lang on linux 
Shell :: git hub set up 
Shell :: how to I paste in gitbash windows 
Shell :: cast audio to google home mini from pc linux 
Shell :: install sketchjs 
Shell :: mozart install mac 
Shell :: rolyn is missing after retrieve from source control 
Php :: tinker color disabled 
Php :: laravel order by random 
Php :: if user logged in wordpress 
Php :: how to get page name in php 
Php :: php today date 
Php :: php preg_match email validation code 
ADD CONTENT
Topic
Content
Source link
Name
3+1 =