none
Powershell Scripting Backup and overwrite files RRS feed

  • Question

  • Greeting, 

    I am looking to write a script in powershell in Environment of 50+ servers.

    Backup files to different folder and than overwrite the originals ones.

    Step 1

    Firstly we need to backup these .XML and .config files to its own separate Versioning folder (the folder is already exists on each location)

    e.g

    \\SERVERNAME\c$\AAA\Mobile\Outbound\Versioning\
    \\SERVERNAME\d$\inetpub\WebServices\AMR\Versioning\

    Step 2

    Overwrite original .XML and .config files  from Source machine(SERVERNAME-X) that has exactly the same folder structure and files name convention.

    \\SERVERNAME\c$\AAA\Mobile\Outbound\Outbound.config
    \\SERVERNAME\c$\AAA\Mobile\OutboundPW\OutboundPW.exe.config
    \\SERVERNAME\c$\AAA\Tasks\DailyProvisioningCheck\DailyProvisionCheck.exe.config
    \\SERVERNAME\c$\AAA\Tasks\YIT\App.config
    \\SERVERNAME\c$\AAA\Tasks\FIVE\Officore.exe.config
    \\SERVERNAME\c$\AAA\Tasks\RS232\Blue.xml
    \\SERVERNAME\c$\AAA\Tasks\RS232\Orange.xml
    \\SERVERNAME\d$\inetpub\WebServices\AMR\Web.Config
    \\SERVERNAME\d$\inetpub\WebServices\Connection\Web.config
    \\SERVERNAME\d$\inetpub\WebServices\API\Web.config

    I will happy for some direction how to attack it.

    thanks heaps
    asher

    • Moved by Bill_Stewart Wednesday, September 4, 2019 9:43 PM This is not "scripts on demand"
    Monday, May 6, 2019 8:09 AM

All replies