cenobita77
Ist gelegentlich hier
- Registriert
- 18. September 2012
- Beiträge
- 74
- Reaktionspunkte
- 0
- Punkte
- 26
Quelle:Copy a File from a Remote Server to a Local Server with SSH
To specify a protocol with rsync you need to give “-e” option with protocol name you want to use. Here in this example, We will be using “ssh” with “-e” option and perform data transfer.
[root@tecmint]# rsync -avzhe ssh root@192.168.0.100:/root/install.log /tmp/
root@192.168.0.100's password:
receiving incremental file list
install.log
sent 30 bytes received 8.12K bytes 1.48K bytes/sec
total size is 30.74K speedup is 3.77
Du musst das $MAILADRESS in " setzen: "$MAILADRESS"; in der Conf auf sendEmail stellen und Parameter ausfüllensendEmail) # Variante mit "sendEmail"
sendEmail -f $MAILSENDER -t $MAILADRESS -u "$SUBJECT" -o m-file=$MAILFILE -a /tmp/${ARCHIV} \
-o m-charset=utf-8 -s $MAILSERVER:$MAILPORT -xu $MAILUSER -xp $MAILPASS $USETLS
Wir verwenden Cookies und ähnliche Technologien für folgende Zwecke:
Akzeptieren Sie Cookies und diese Technologien?
Wir verwenden Cookies und ähnliche Technologien für folgende Zwecke:
Akzeptieren Sie Cookies und diese Technologien?