rsync dir between two machines
#!/bin/bash # # rsync.sh /media/miam/photos bknt@192.168.0.1:/media/miam/sync_patate/photos SRC=$1 DEST=$2 # rsync -e ssh -avz --delete-after rsync -e ssh -avz $SRC $DEST