Answer the question
In order to leave comments, you need to log in
How to make a regular file copy from windows to linux?
It is necessary to write a script that will be run on a Linux machine and connect to Windows-server 2012 once a day in order to upload a folder with files from there.
What is the best way to connect?
requirements:
1) authorization (preferably by password)
2) ease of setup
Answer the question
In order to leave comments, you need to log in
option 2: install directory synchronization daemon.
resilio sync, syncthing, etc.
full online synchronization back and forth.
high-quality encryption of the communication channel.
authorization by access keys.
clients for all systems: android, tybloko, nas, etc.
etc.
Set up an SFTP or SSH service (server) on a windows server
google "OpenSSH on Windows Server 2012"
on windows you make a network share, you allow access to it to a specific user.
from Linux, in the script you mount the network share
mount -t cifs \\windows-server\share-name /mnt/mountpoint-your-name -o _netdev,credential=/path-to-file/with/login-and-password
, and in the standard way, copy folder files with your favorite utility.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question