Added python/read_write_file.sh

This commit is contained in:
Floris van Enter
2017-12-14 12:18:37 +01:00
parent 9f918ead05
commit 483b01e2e1
8 changed files with 231 additions and 1 deletions

View File

@ -1,6 +1,15 @@
# Copy files to remote location.
# Tested in Python 2.7
# Make sure you can connect to your remote folder with certificate.
# This way you don't need to enter your credentials and you
# can schedule this script to run when you like
#
# You can contact me by e-mail at floris@entermi.nl.
#
# Last updated 1 December, 2017.
#
# Floris van Enter
# http://entermi.nl
scp -r /home/pi/scripts/wordpressUpdate/source/* user@server.remote.nl:/var/www/site1/
scp -r /home/pi/scripts/wordpressUpdate/source/* user@server.remote.nl:/var/www/site2/