Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Writeable directory which is not part of the CCU backup #179

Closed
mdzio opened this issue Oct 31, 2017 · 8 comments
Closed

Writeable directory which is not part of the CCU backup #179

mdzio opened this issue Oct 31, 2017 · 8 comments
Labels
💡 enhancement-ideas New feature or change request

Comments

@mdzio
Copy link
Contributor

mdzio commented Oct 31, 2017

A separate directory should be provided in which applications (add-ons) can store data that should not be part of the CCU backup. The directory should be writable.

An example application is the CCU Historian. The database greatly increases the size of the CCU backup.

@jens-maus jens-maus added the 💡 enhancement-ideas New feature or change request label Nov 2, 2017
@jens-maus
Copy link
Owner

Welches Directory schwebt dir da vor? /usr/local/tmp gibt es ja schon, das wird aber mit jedem reboot automatisch gelöscht.

@jens-maus jens-maus added the ❓ undecided No decision to accept or reject ticket yet label Nov 2, 2017
@mdzio
Copy link
Contributor Author

mdzio commented Nov 2, 2017

Mein Vorschlag ist /usr/local/var. Eventuell noch /var/local als symbolischen Link anbieten.
Das Verzeichnis sollte nicht bei jedem Reboot geleert werden.

@jens-maus
Copy link
Owner

/usr/local/varwäre vermutlich zu generell weil unter var ja mitunter auch dinge gespeichert werden für das man ein backup haben möchte.

@jens-maus
Copy link
Owner

Ich sehe gerade das es beim tar eine Option --exclude-tag-under=FILE gibt die es erlaubt ein gesamtes Verzeichnis vom backup auszunehmen wenn in dem Verzeichnis eine Datei mit speziellem Namen gefunden wird. siehe https://www.gnu.org/software/tar/manual/html_section/tar_49.html

Ich könnte mir vorstellen das auszunutzen und zu definieren das wenn z.B. eine Datei .nobackup gefunden wird das gesamte Verzeichnis vom Backup auszunehmen. Hinweise/Anregungen dazu? Die Frage wäre ob man dann den gesamten subtree darunter auch auslassen sollte oder nur das Verzeichnis in dem das .nobackup gefunden wird? Es gibt da auch noch andere solche --exclude-tag-XXXX Optionen.

@jens-maus jens-maus removed the ❓ undecided No decision to accept or reject ticket yet label Nov 3, 2017
@jens-maus jens-maus added this to the next version milestone Nov 3, 2017
@jens-maus
Copy link
Owner

Ich würde vmtl. dafür plädieren die Option --exclude-tag=.nobackup zu verwenden. Laut Dokumentation (Do not dump the contents of the directory, but dump the directory itself and the file.) sollte das das Verzeichnis leer lassen, aber die .nobackup datei mit backupen, sodass bei einem Restore dann das Verzeichnis zumindest existiert und auch diese Datei damit für das nächste Backup klar ist das das wiederum das backup nicht über das Verzeichnis laufen soll. Anmerkungen?

jens-maus added a commit that referenced this issue Nov 3, 2017
…t that content of directories with a ".nobackup" file will be completely ignored. This refs #179.
@jens-maus
Copy link
Owner

Habe das ganze nun erst einmal so implementiert. Nun sollte es möglich sein als Addon Entwickler ein Unterverzeichnis unter /usr/local/addons anzulegen und dort mit touch .nobackup eine leere Datei in einem Unterverzeichnis anzulegen sodass die Backup Routinen dann damit angewiesen werden das Verzeichnis (und alle Unterverzeichnisse) entsprechend zu ignorieren (jedoch die .nobackup datei zu behalten). Hoffe das passt zu den Wünschen :)

@mdzio
Copy link
Contributor Author

mdzio commented Nov 3, 2017

Ja, das ist eine gute generische Lösung.

@jens-maus
Copy link
Owner

Ok, dann sollte das mit der nächsten kommenden Version nun so funktionieren.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💡 enhancement-ideas New feature or change request
Projects
None yet
Development

No branches or pull requests

2 participants