![]() ![]() ![]() RESTORE DATABASE AdventureWorks FROM DISK='C:\AdventureWorks_full.BAK' WITH NORECOVERY, REPLACE IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.BACKUP DATABASE AdventureWorks TO DISK='c:\AdventureWorks_full.BAK' WITH INITīACKUP LOG AdventureWorks TO DISK='c:\AdventureWorks_log1.TRN' WITH INITīACKUP DATABASE AdventureWorks TO DISK='c:\AdventureWorks_diff.BAK' WITH INIT, DIFFERENTIALīACKUP LOG AdventureWorks TO DISK='c:\AdventureWorks_log2.TRN' WITH INITīACKUP DATABASE AdventureWorks TO DISK='c:\AdventureWorks_full2.BAK' WITH INITīACKUP DATABASE AdventureWorks TO DISK='c:\AdventureWorks_diff2.BAK' WITH INIT, DIFFERENTIALīACKUP LOG AdventureWorks TO DISK='c:\AdventureWorks_log3.TRN' WITH INIT THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 7-Zip is licensed under the GNU LGPL license and its source code can be found at. This script uses the 7-Zip program to compress folders for backing up. To easily mitigate the vulnerabilities found in version 9.20, simply download 7-zip version 18.05 or higher, copy the file 7z.exe to the \bin directory, and rename the executable to 7za.exe. This version of 7-zip is only used because of its ability to be easily downloaded and installed. Since the executable is only used to create archives, the danger these vulnerabilities pose are negligable as long as the 7-zip executable is only used by the script to create archives. #Backuplist archiveThis version of 7-zip has been identified as being vulnerable to multiple code execution exploits via crafted archive files. NOTE: This script utilizes 7-zip command line version 9.20 executable file. Implemented some logging to the temp folder.Ĭondensed installer to one PowerShell script.Īdded ability to back up folders listed in backuplist.txt. Cleaned up code.Ĭan backup individual folders or use the BackupList.txt file to run batch jobs. Re-wrote the script in the likeness of PowerShell-Youtube-dl. To use option 2 - Backup from list of the main menu, list folder paths under their respective stanzas in the BackupList.txt file, save it, and then run option 2 of the script. Upon being ran for the first time, the script will generate the BackupList.txt file in the \config folder. Use option 2 and the Backuplist.txt file to backup multiple folders at once in a batch job. Use option 1 of the main menu to backup a single folder. Run either the desktop shortcut or the Start Menu shortcut. To uninstall this script and its files, delete the two folders C:\Users\%USERNAME%\Scripts\PowerShell-Backup and %APPDATA%\Microsoft\Windows\Start Menu\Programs\PowerShell-Backup and the desktop shortcut. #Backuplist installThe install location is C:\Users\%USERNAME%\Scripts\PowerShell-Backup.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |