English | Русский
Latest version: Download
- Unzip to a convenient location.
- Open
backup_script_en.ps1and customize it for yourself. Almost all parameters have a description, below are some aspects that may not be entirely obvious. - In
Task Schedulercreate a new task with the actionStart a program, in theProgram/scriptfield, enter:
Powershell- In the
Add argumentsfield, enter:
-ExecutionPolicy RemoteSigned -File "%userprofile%\Desktop\BackupScript\backup_script_en.ps1"Note
I added the path to the file in the arguments as an example, but you must specify the full path to the folder with the script there! The path specified in the example leads to the BackupScript folder on the desktop. %userprofile% - macro for accessing the user folder
Caution
Check if everything was done correctly by forcing the task. To do this, in the task scheduler, select the task you created and click Run, or right-click on this task and click Run.
-
To create backups more often than once a day, there are 2 options:
- update the data in the archive, no action is required for this. In this case, only the data that has changed since the previous backup of the same day will be added;
- if separate archives are required, you need to change the date format in the variable
$date = Get-Date -Format "yyyy_MM_dd"to$date = Get-Date -Format "yyyy_MM_dd_HH_mm"i.e. add hours and minutes.