![]() Each save file is less than 50kb (no brainer to use 7zip considering that 95.5% compression from 9Mb). Other than that, you can change paths as you need them. You can use Windows Scheduler to run it every hour or even more often, and it will only make a new backup if there was a change (on Win 10, with CHK = 0 it will backup every time regardless). This option is for Windows 10 only, so if you are on Win 7 you have to turn it off (it will yield to undefined behavior if you leave it, like it may or may not do a backup since it will only read the first two bytes of the hash when checking due to format on pre Win10 OS). Also change XXXXX to your ID on line 36.īy default all backups will go there, along with the log.īy default saves will only be backed up if there was a change to the save file (in other words save changed). Just navigate to where the save files are and paste in the entire path replacing whats there on line 34. You then need to find out what your Steam ID is, its unique per user. (if you already have 7zip installed you can change paths to point to it, but note that exe name is different from cmd version so change that too, if you dont feel comfortable I would just get cmd version anyways and use that ) There is a default path to put it in (**C:\7z_console**), but you can change it if you want. So you just have to grab that from here - (3rd link down for cmd version). It uses command line version of 7zip, which is free and readily available. bat at the end, for example "MonsterHunterWorldBackup.bat" The above procedure is for Windows Server 2003 but it’s also working for Windows 7.There isnt much prep, copy pasta the whole text into a text file and name it whatever you want with. By doing this the system will be able to execute our script even if we are not logged on. ![]() After that in the properties window set the password for your account.Before you press the finish button make sure that you have checked the box Open the Advanced Properties for this task when I click finish.Enter the info for your script and when you want it to run.For example, if our script is located in the C:myscriptbackup_script.bat you must enter in the Start in field this: C:myscript You must enter the path of your script otherwise it’s not going to work. Something very important here is the optional Start in field.Press Next and then Press the Browse button and select your batch script.Start->Programs-> Accessories->System Tools->Scheduled Tasks.The last thing we have to do is to create a task for our batch file. IF %ERRORLEVEL% = 0 ( MOVE "%USERPROFILE%Desktop*.rar" I:Backup So a small example for moving our backup in a network drive is this : NET USE I: Also you can add and network commands if you want to move your backup in a network drive or something. Of course you can change the script to fit your needs. You will find the archive and a text file that contains informations about the backup process to your desktop. The above script takes all the data from the C:data folder it compress them with the name databackup and appends to the name the year, month and day that was created. "%PROGRAMFILES%WinRARrar.exe" a -agYYYY-MM-dd -r "%USERPROFILE%Desktopdatabackup-.rar" "C:data"ĮCHO %date%, %time% : Backup succeeded > "%USERPROFILE%DesktopData_Backup_Log.txt"ĮCHO %date%, %time% : Backup succeeded with warnings > "%USERPROFILE%DesktopData_Backup_Log.txt"ĮCHO %date%, %time% : Backup failed > "%USERPROFILE%DesktopData_Backup_Log.txt" Here is a sample script that does the job. The best way to do this is to schedule a task in windows.Įnough with my story. After that, the only thing that left was to make this small batch file repeat itself once a week. ![]() I must admit that the manual of the WinRar is very good!Īs I found what I need (how to make a rar archive and append the year,month and day in the name of my archive) I start writing a batch file. I start searching about WinRar and I found that WinRar tool can be used in a terminal through the rar.exe plugin. What I had was a Windows system and the WinRar tool. When I say backup I mean to backup the data at least every week since it is not updated very often.īecause I don’t know if there is any worth free backup solution for Windows and because I prefer to learn something new I start thinking a way to automate the backup. When we finished the setup and the configuration the last thing we had to do was to find a way to backup our data. Although I prefer Linux, the server was running Windows 2003 so we had to go with this. The last week we setup an internal site for the needs of the company.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |