📜 ⬆️ ⬇️

BTSync as a backup tool

Good day comrades. After some time, as I got a job as a system administrator, I began to face such a problem:

Specific use case solved in this article


A suitable employee is requesting to restore the file that was yesterday / today / just-deleted, and now he needs blood-from-nose. At the same time, he does not remember the date of file creation, and he does not know the date of the last change and to know, because many different employees could work with the file at different times. And you need to restore, of course, the latest version.
Either the file yesterday / today / just-something accidentally and fatally edited / overwritten. And you need to restore, respectively, the penultimate version.

So, the source data:
  • File name and address: at least approximately known
  • Date of creation of the required file version: not known
  • Backup daily, incremental or equal to it in resource intensity. Full and differential are not used due to the limited amount of disk space in the storage / receiver backups.

The article came out too "watery", so I hid the main water under the spoilers.

Due to the specifics of this yuzkeys, it does not make sense to restore the file to the date of the full backup (if it is not daily, but weekly / monthly), because the version will most likely not be relevant. And from incremental - it is difficult, because the date of creating the necessary version of the file and the corresponding incremental backup is not known.
Differential backup could solve the problem, but it is too resource-intensive, and not everyone can afford it.
Attempt to use regular backup / restore tool in Windows server
This wonderful interface But the good of my predecessor took care of setting up backups on the file server (Windows Server 2003)
')
In no time, I open the Backup Software → Restore and Manage Media and precipitate. Each backup point is stored as a separate branch of the tree. In this case, the backup is incremental, which means that in each individual point only new and changed files!

And we climbed with the employee to sort through every point from yesterday and back. For the first time it took us half a day. Next time almost day. after the 3rd time, I realized that this can no longer continue.


Almost all existing systems offer several backup options from the list:
  1. Full - create backup points with a full copy of all source files
  2. Incremental - creating backup points with a copy of all files that appeared / changed during the time since the previous one was created
  3. Differential - creating backup points with a copy of all files that appeared / changed during the time since the previous full backup point was created
  4. Mirror — create and then rewrite a single point of a full backup. Files deleted from the source during the backup are removed from the receiver
Other products
And I began my long search for a tool that allows me to look at the folder as it was a few days ago.

And whether I was looking in the wrong place, or Google did not understand what I want. But I stumbled over and over again with the means that allow me only to restore the backup from a full copy and recursively add incremental ones. I could not give up incremental points in favor of only full or differential ones due to the limited size of the receiver backups. And not to say that all these alternative means were useless to me. On the contrary, I am pleased with my search for such a wonderful product as Cobian Backup , which I still use today. But they did not cover my use.
Lightbackup
Later, I found Light Backup - a miniature program that does exactly what I was looking for - allows you to look at the folder at the time of creating both full and incremental backup.
True, by this time I had already solved my problem with BTsync on a non-windows server, and this program only works under windows.
But I just could not pass by and use it for some specific tasks.


Bittorent sync

NAS
QNAP NAS TS-221 As time went. In the organization appeared, and then left idle NAS from QNAP.
And as the manufacturer states: “Working with TS-221 is extremely simple - just click on the necessary icons!” Which, by the way, is not so far from the truth. Over time, I clicked Bittorent Sync in the 1st version as well.
The benefit of QNAP took care of me by writing detailed instructions for setting up. True, I can not say that without it setting would be a problem.
BTSync , as a means of file synchronization rather than backup, can still play this role. The truth is realized only 1 of the 4 options described above - Mirror backup . But with one fundamentally important feature: he is able to save deleted or previous versions of modified files for a given period of time .

The “role” of the backup system is based on the following functions / settings:


Now the same request of the employee is solved much easier and faster. I just go to the receiver in which the file / folder structure corresponds to yesterday's (18: 30+) source state. If the file was deleted / modified earlier (within 30 days) - it is enough to substitute " .sync \ Archive \ " and the files (as well as their versions) right there in the archive path.

Disadvantages of this approach




Now dignity


Source: https://habr.com/ru/post/303950/


All Articles