Re: Upload new files if remote destination is empty
Please start here:
How do I transfer new/modified files only?
How do I transfer new/modified files only?
/home/$USER$/upload
folder and archives any files in /home/$USER$/upload/*
into the cloud. The bash script creates a $USER$/YYYY-MM-DD/
folder in the cloud and puts the files in there.
/upload
folder after each run.
/$USER/2018-08-03/upload/OLD_FILES_001.LOG
/$USER/2018-08-03/upload/OLD_FILES_002.LOG
/$USER/2018-08-03/upload/OLD_FILES_003.LOG
/$USER/2018-08-03/upload/RECENT_FILES_001.LOG
/$USER/2018-08-03/upload/RECENT_FILES_002.LOG
/$USER/2018-08-03/upload/RECENT_FILES_003.LOG
# **********************************************************************
# Batch Mode On
option batch on
# Confirm Off
option confirm off
# **********************************************************************
#
# ***********************************************************************
# Connects to Server
#
open MYCOMPANY
#
synchronize remote
#
# **********************************************************************
# Disconnect from Server
#
close
#
# Exit WinSCP
#
exit
# **********************************************************************
/upload
folder every night.
/upload/
folder for security.