Move a file from a web server to a sharepoint site

%3CLINGO-SUB%20id%3D%22lingo-sub-1043004%22%20slang%3D%22fr-FR%22%3EMove%20a%20file%20from%20a%20web%20server%20to%20a%20sharepoint%20site%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1043004%22%20slang%3D%22fr-FR%22%3E%3CP%3EGood%20morning.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20would%20like%20to%20ask%20for%20some%20help.%3C%2FP%3E%3CP%3EEveryday%20some%20files%20are%20created%20in%20my%20webserver%20with%20a%20PHP%20script.%3C%2FP%3E%3CP%3EI%20would%20like%20to%20automatically%20move%20thses%20filee%20to%20my%20sharepoint%20site%2Flibrary.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20don't%20know%20how%20to%20do%3F%20is%20there%20a%20script%20to%20do%20this%2C%20or%20an%20API%2C%20or%20a%20tool%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAny%20help%20would%20be%20greatly%20appreciated.%20Thank%20you!%3C%2FP%3E%3CP%3EBaptist%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1043756%22%20slang%3D%22en-US%22%3ERe%3A%20Move%20a%20file%20from%20a%20web%20server%20to%20a%20sharepoint%20site%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1043756%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F475204%22%20target%3D%22_blank%22%3E%40jeanbaptiste75%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3Eyou%20can%20use%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fautomation%2Fautomation-hybrid-runbook-worker%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3EHybrid%20Runbook%20Worker%3C%2FA%3E%20or%20simply%20use%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fsharepointmigration%2Fupload-on-premises-content-to-sharepoint-online-using-powershell-cmdlets%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3EPowerShell%20cmdlets%3C%2FA%3E%26nbsp%3Band%20schedule%20this%20script%20with%20task%20scheduler.%3C%2FP%3E%3CP%3ECheers%2C%3C%2FP%3E%3CP%3EFederico%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1044673%22%20slang%3D%22fr-FR%22%3ERe%3A%20Move%20a%20file%20from%20a%20web%20server%20to%20a%20sharepoint%20site%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1044673%22%20slang%3D%22fr-FR%22%3E%3CP%3EHi%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F138334%22%20target%3D%22_blank%22%3E%40Federico%20Porceddu%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20for%20your%20answer.%20On%20your%20second%20link%20there%20is%20some%20information%20about%20%22Sharepoint%20Migration%20Tool%22%20.%20Do%20you%20think%20this%20tool%20would%20fit%20my%20needs%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1045277%22%20slang%3D%22en-US%22%3ERe%3A%20Move%20a%20file%20from%20a%20web%20server%20to%20a%20sharepoint%20site%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1045277%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F475204%22%20target%3D%22_blank%22%3E%40jeanbaptiste75%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Faka.ms%2FSPMT-LearnMore%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3ESPMT%3C%2FA%3E%26nbsp%3Bsupports%20your%20scenario%2C%20you%20need%20to%20use%20PowerShell%20scripts%26nbsp%3B%20and%20generate%20a%20scheduled%20task%20(%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fsharepointmigration%2Foverview-spmt-ps-cmdlets%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3Elink%3C%2FA%3E)%3C%2FP%3E%3CP%3EEs%3A%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-python%22%3E%3CCODE%3EAdd-SPMTTask%0A%20%20%20-FileShareSource%20%3CSTRING%3E%0A%20%20%20-TargetSiteUrl%20%3CSTRING%3E%0A%20%20%20-TargetList%20%3CSTRING%3E%0A%20%20%20%5B-TargetListRelativePath%20%3CSTRING%3E%5D%3C%2FSTRING%3E%3C%2FSTRING%3E%3C%2FSTRING%3E%3C%2FSTRING%3E%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fmodule%2Fspmt%2FAdd-SPMTTask%3Fview%3Dspmt-ps%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3EOther%20samples%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIn%20general%2C%20that's%20fine%2C%20but%20it%20seems%20oversized%20for%20what%20you%20have%20to%20do.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECheers%2C%3C%2FP%3E%3CP%3EFederico%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

Hello.

 

I would like to ask for some help.

Everyday some files are created in my webserver with a PHP script.

I would like to automatically move thses filee to my sharepoint site / library.

 

I don't know how to do ? is there a script to do this, or an API, or a tool ?

 

Any help would be greatly appreciated. Thank you !

Jean-Baptiste

3 Replies

Hi @jeanbaptiste75 

you can use Hybrid Runbook Worker or simply use PowerShell cmdlets and schedule this script with task scheduler.

Cheers,

Federico

 

 

Hi @Federico Porceddu 

 

Thanks for your answer. On your second link there is some information about  "Sharepoint Migration Tool" . Do you think this tool would fit my needs ?

Hi @jeanbaptiste75 

SPMT supports your scenario, you need to use PowerShell scripts  and generate a scheduled task (link)

Es: 

Add-SPMTTask
   -FileShareSource <String>
   -TargetSiteUrl <String>
   -TargetList <String>
   [-TargetListRelativePath <String>]


Other samples

 

In general, that's fine, but it seems oversized for what you have to do.

 

Cheers,

Federico