Basic Rsync Script For Transferring Or Synchronizing Files From One Server (Sourcesrv) To Another Server (Destinationsrv)
Basic Rsync Script For Transferring Or Synchronizing Files From One Server (SourceSrv) To Another Server (DestinationSrv) Source Host: SourceSrv Destination Host: DestinationSrv LogIn on DestinationSrv: mkdir -p /home/rony/.scripts/ touch /home/rony/.scripts/rsync.sh touch /home/rony/.scripts/rsync.log chmod u+x /home/rony/.scripts/rsync.sh For killall command install: sudo dnf search psmisc tee /home/rony/.scripts/rsync.sh >/dev/null <<EOF #!/bin/bash ############################################################ export Script=/home/rony/.scripts/ export Source=rony@SourceSrv: /data/docs/ export Destination= /data/docs/ export LogFile=${Script}/rsync.log echo 'Source : '${Source} 2>&1 | tee -a ${Script}/rsync.log echo 'Destination : '${Destination} 2>&1 | tee -a ${Script}/rsync.log ############################################################ echo 'Task-01