Thursday, June 24, 2021

RHEL7 - using rsync

 #!/bin/bash
#####
# rsync
#
rsync -azvH --delete -e "ssh -o StrictHostKeyChacking=no -o UserKnownHostsFile=/dev/null" jay@lx34web.ent.local:/opt/apps/pvccn /data/apps

rsync -azvH --delete -e "ssh -o StrictHostKeyChacking=no -o UserKnownHostsFile=/dev/null" jay@lx34web.ent.local:/software/tools /data/software

No comments:

Post a Comment

Git branch show detached HEAD

  Git branch show detached HEAD 1. List your branch $ git branch * (HEAD detached at f219e03)   00 2. Run re-set hard $ git reset --hard 3. ...