I have to realize a dos script shell in order to manage a files backup rotation using 4 Folders: Production, Today, Yesterday, Week.
Each day I have to:
- copy a file from Production to Today (overwriting the existing one)
- compare the file in Today with the file in Yesterday (out of scope)
- move the Yesterday file into Week folder addding its creation date (Eg: [url removed, login to view] --> [url removed, login to view])
- copy Today file into Yesterday
I need a script shell with 3 functions (Copy, Move and Move_and_Rename) to call with parameters from the first rows of script. I have to manage 4-5 files, so will be used 4-5 blocks of call.
If a command fail must give back an error.
Script must be scheduled on a Windows 2012 server.
14 freelancers are bidding on average $40 for this job
I can create the required script as per your requirement, it may be dos, powershell, vb. Relevant Skills and Experience I have good experience with windows, dos, powershell scripting.
Must it be DOS? All of what you want is achievable through powershell. I personally have been automating server operations like this for a company thay I am employed by as an IT Systems Admin.