Dienstag, 10. November 2015

QNAP internal backup function - reverse engineering

QNAP offers to connect an external USB or eSATA drive and start a pre-defined backup job immediately after automount. In addition, the device is umounted after the job has finished. The "eSata" LED shows if the devices is still mounted (and the job is still running).
Up to that point, the concept suits my requirements perfectly.
What I am missing is a versioning. And it this should be efficiently consuming the drive space. Technically speaking, I would like to see the usage of hardlinks for files that did not change and a versioning by directories named by date.

I could just install some rsnapshot script plus udev rule for automounting. But I would like to understand how the internal mechanism works.

When the device is plugged, it is mounted under
/share/external/...

If a backup process is configured via the QNAP backup manager,
ps xa shows
qsync -j:Job65 -c:/mnt/HDA_ROOT/.config/qsync/extdrv.conf

Furthermore,
/usr/bin/qsyncman
is running.

This service is started on boot-up via
/etc/init.d/qsyncman.sh start

Configuration files can be found in
/etc/config/qsync

/etc/config/qsync/extdrv.conf contains a list of all configured backup jobs (mapping of directories to an external medium).
/etc/config/qsync/qexthost.conf lists all the known external media (USB drives) incl. drive ID ("INetAddr"), file system ("FtpPassword"), volume name ("FtpAccount"), hardware vendor ("Password"). The field names ae misused here.
/etc/config/qsync/qsyncd.conf defines a port 8899.

Trackback URL:
http://superwallah.twoday.net/stories/1022497458/modTrackback

Superwallah - IT, Innovation, Indien

Globaler Cyber-Fortschritt ist heute

Suche

 

ich

Du bist nicht angemeldet.

Wer bist Du?

Sag es mir. Und hinterlass einen Kommentar nach Lesen eines Eintrag!

Aktuelle Beiträge

Sicherheit in Android...
TLS ist nur so sicher wie die Gesamtheit der Root-CAs,...
superwallah - 13. Jun, 21:30
Den richtigen Co-Working-Space...
Die moderne Welt des Arbeitens liegt im Teilen der...
superwallah - 24. Mai, 18:16
Adressen und Kalender...
Wer meinem Blog folgt, weiss, dass ich mich konsequent...
superwallah - 23. Mai, 09:36
Arduino für Kinder...
Scratch hat der Welt eine Visualisierung von Programmcode...
superwallah - 12. Mrz, 21:33
Hacking Betzold Lernbausatz...
Betzold bietet einen tollen Bausatz, der in gewisser...
superwallah - 1. Dez, 09:56

Meine Gadgets

Gesehene Filme

Zähler

Web Counter by www.webcounter.goweb.de
Web Counter by www.webcounter.goweb.de

Status

Online seit 4034 Tagen
Zuletzt aktualisiert: 13. Jun, 21:30