I have been using a very interesting, simple, and convenient program for archiving important data for a long time, which did not give a single failure in 2 ½ years of work!
This program is called
nnCron , for xUSSR registration is free. NnCron works in conjunction with
winrar and performs several simple operations, thanks to which I keep an archive of important folders for me for six months. Naturally I had to sacrifice a piece of disk space, but the information is more expensive.
I will skip the installation of winrar and nncron, and describe it in steps.
1. In the crown we create a task that starts winrar
2. Winrar creates the current archive and scans it to the right place.
3. nnCron checks the folder in which archives are stored and deletes files older than a certain number of days.
Implementation.
1. In nnCron create a task (New Task). Call it what you want, for example, “01. Archiving important documents. We configure the launch time (3 nights for example), the frequency of the launch (Daily), in the second tab “Actions” select “Run program or Open Document” and enter the following into the line Application or Document Path
c: \ Program Files \ WinRAR \ Rar.exe a -ag_yyyy.mm.dd e: \ _ backups \ www f: \ www')
Explanations:
c: \ Program Files \ WinRAR \ Rar.exe a -ag_yyyy.mm.dd is a rara call with the necessary parameters, where
a - add files to archive
-ag_yyyy.mm.dd - add current date by format to archive name
e: \ _ backups \ www - folder to save the archive, where
www is the future archive name
f: \ www - folder to archive
In the StartUp Folder enter
c: \ Program Files \ WinRAR \We save. So, the daily data backup is ready, but if there is a lot of data, then over time the disk will be full, and there will be no place to store the archive, so we will create the second task
2. New task “02. Deleting Old Archives
On the tab, the frequency and start time are set up absolutely as well, but we add an hour to the start time. Just in case, all of a sudden our archive is being packed for a long time.
In the second “Actions” tab, select the Purge Directory, in the Path / mask line, enter
e: \ _ backups \ *. **. * mask means that ALL files in this folder older than X days will be deleted!
and in the age string we write how many days to store archives, for example, 100 (days).
We save.
As you use them, determine how much space you need for archives, and vary the number of days for storage.
In this way, I archive all the development that I do locally.
After creating a few more tasks, I dump the mysql database and archive it.
By the way, the dos rar.exe does not require registration, and in the settings of nnCron tasks you can specify the method for running tasks (minimized window, hidden window, normal window), the priority of the task, and the user from whom to start the task!
Original post
Archive important information in my blog