Here’s a simple command to copy a specified file from one file server to another – I use this to send our office contact list (stored on our local Samba file server) to our branch office’s file server whenever I update it so that both offices always have access to the current copy.
Note that this requires FTP access to the remote server.
curl -u remoteSvrUsername:password -T /fullPathToFile/fileName ftp://remoteSvrName/pathToFileLocation/
And, yes: I realize this is a goofy way to maintain a contact list, but people like having an Excel spreadsheet – what can you do? Actually, what you can do is to create an Active Directory-aware, dynamically-updating company directory website – something I’ve done and will detail in a future post!
Leave a Reply