D
D
DVoropaev2019-07-26 11:19:17
linux
DVoropaev, 2019-07-26 11:19:17

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

4 answer(s)
P
pfg21, 2019-07-26
@pfg21

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.

Z
zlo1, 2019-07-26
@zlo1

Set up an SFTP or SSH service (server) on a windows server
google "OpenSSH on Windows Server 2012"

D
Dmitry, 2019-07-26
@q2digger

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.

A
Artem @Jump, 2019-07-26
Tag

FTP, SFTP, SAMBA and a bunch of other methods.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question