0

I have a folder full of files in a windows file share on the network. I need to grab that folder every day and put it on a few linux (ubuntu) computers. I was wondering what is the easiest way to do that automatically (script-wise).

4
  • For scripted transfer, I'd use FTP or SFTP. After all, "File Transfer Protocol" is the name of the utility. Commented Jan 19, 2022 at 23:11
  • I'd write a shell script that mounts the share, rsync the files somewhere local, and then rsync them to the remote linux systems via ssh/sftp. Commented Jan 20, 2022 at 3:58
  • I myself might do the FTP/SFTP option.. but not as my first choice. I would keep these files shared on the windows side and use smbclient/cron task to PULL them from the windows machine to the linux clients via bash script. I think this a mostly the same idea that @FrankThomas is eluding to. mount with rsync would be a nice touch :) Linux accessing windows share is SUPER easy (pull). FTP is mostly easy (push). Getting permissions right with samba as a server (push) sucks (but is also VERY possible). Commented Jan 20, 2022 at 4:47
  • 1
    If you do use samba client to mount and rsync, but sure to umount after. All hell breaks loose (on the linux side) if the windows share goes down while mounted. You WILL NOT like it ;) Commented Jan 20, 2022 at 4:50

0

You must log in to answer this question.

Browse other questions tagged .