📜 ⬆️ ⬇️

How can you “save” a large collection of music, movies, distribution kits

I am writing based on a recently flown topic about using torrents to restore broken or under-downloaded files. I solved a more global problem for myself in a similar way: how best to ensure the recovery of my large collection of audio and video files without resorting to complex and expensive solutions like RAID (still vulnerable to emergency situations such as fire or theft) and large paid online repositories. Immediately, I emphasize that my solution is poorly suited for unique documents and, conversely, successfully for popular “heavy” files.
The main idea: to find and download all my good in case of loss is quite a feasible task, but to search, download, rename and arrange everything in places (yes, I am a storage pedant) will kill a lot of time. I wanted to automate this process as much as possible.

So what did I do? I wrote a simple console utility that recursively scans the specified directories and outputs a file list in the format of DirectConnect-networks. In the process of work, the embedded database is used in which are stored: the names of directories / files, the dates of their creation / modification, length and hashes (MD5, SHA1, TTH). This allows hashes to be recalculated only for changed files. The resulting file simply throws in Dropbox (online backup). Voila - and you're done! For many, by the way, it’s enough just to keep your collection open in the DC network and back up the usual file list created by the client. I have achieved only a little more versatility.

Check life: about six months ago flew HDD with a music collection. My heart has been drenched in blood, as the collection consists of a considerable part of songs selected by piece over many years. But sooner or later, paranoia pays off and I pulled out a backup file from a daily prescription from the backup, switched to a local hub and put everything I had lost to download. In short, after a few days, an almost complete collection of fun winked at me from a new hard drive, and the missing one was quickly restored manually from other sources.
')
Additional considerations: the idea can also be used for confidential files (a good example is photos). It is enough to remember their names and hashes, and then restore them from anywhere. For example, you can randomly throw off everything on a bunch of blanks.

Conclusion: always make backups, and do not hesitate to be paranoid. Back up the system partition on a nearby hard drive; backup the most valuable files to another computer, blanks or online backup; Get free space on a DVD with additional recovery information (this pulls up on a separate topic), etc. If you cannot save something entirely, then save the names and hashes. And relentless Entropy will not cause your tears. ;)

PS If public interest is noticed, then I will publish my utility. Although it is easy to write one yourself.

Update: Laid out the sources and binaries here: HashBackup_0.1.zip.html Rays of light / diarrhea throw in a personal on Habré.

In addition, in the comments recommended the CFV program. Perhaps someone will be interested in more.

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


All Articles