Backupsynchronisation automatisches löschen verhindern


Startseite Foren Hilfe bei Problemen Backupsynchronisation automatisches löschen verhindern

5 Beiträge anzeigen - 1 bis 5 (von insgesamt 5)
  • Autor
    Beiträge
  • #4610
    ghjh
    Teilnehmer

    Hallo,

    ich lasse auf meinem Server das Backup in ein bestimmtes Verzeichnis kopieren. Über Einstellungen, Datensicherung, Synchronisation habe ich dort den Ort festgelegt.

    Dieses Verzeichnis lasse ich (wollte ich zumindest) per Syncthing (https://syncthing.net/) auf verschiedene Orte synchronisieren lassen.

    Nun benötigt Syncthing dafür einen versteckten Ordner (.stfolder) in dem Verzeichnis. Leider löscht die BackupSyncTask des J-Lawyer alle Dateien und Ordner die dort nicht hingehören. Gibt es eine Möglichkeit dies zu beeinflussen, bzw. Dateien/Ordner von der Löschung auszuschließen?

    Ich beziehe mich auf diese Zeile im serverlog:

    [com.jdimension.jlawyer.sync.FolderSync] (Timer-6) Deleting .stfolder from sync location

    Liebe Grüße und vielen Dank

    #4611
    j-lawyer.org
    Administrator

    Es gibt keine Konfiguration o.ä.

    Probieren: in dem lokalen Verzeichnis, in welches die Sicherung synchronisiert wird, die Schreibrechte für .stfolder entziehen, damit der j-lawyer.org Server das nicht löschen kann.
    Dann aber schauen ob die Synchronisation noch ordentlich durchläuft.

    Jens / j-lawyer.org

    #4612
    ghjh
    Teilnehmer

    Vielen Dank Jens für die prompte Antwort! Dann löse ich es über die Berechtigungen und berichte dann ob es klappt oder nicht.

    Liebe Grüße

    #4614
    ghjh
    Teilnehmer

    Das entziehen der Rechte hat funktioniert.

    Im serverlog taucht nun folgendes auf aber es sieht nicht kritisch aus:

    2021-11-10 04:53:26,870 INFO  [com.jdimension.jlawyer.services.SingletonService] (Timer-7) directory observation is switched off
    2021-11-10 04:53:38,870 INFO  [com.jdimension.jlawyer.services.SingletonService] (Timer-7) directory observation is switched off
    2021-11-10 04:53:50,870 INFO  [com.jdimension.jlawyer.services.SingletonService] (Timer-7) directory observation is switched off
    2021-11-10 04:54:02,870 INFO  [com.jdimension.jlawyer.services.SingletonService] (Timer-7) directory observation is switched off
    2021-11-10 04:54:14,870 INFO  [com.jdimension.jlawyer.services.SingletonService] (Timer-7) directory observation is switched off
    2021-11-10 04:54:23,757 INFO  [com.jdimension.jlawyer.timer.IterativeBackupTask] (Timer-5) backup task is starting
    2021-11-10 04:54:23,759 INFO  [com.jdimension.jlawyer.timer.IterativeBackupTask] (Timer-5) backup mode: on
    2021-11-10 04:54:23,759 INFO  [com.jdimension.jlawyer.timer.IterativeBackupTask] (Timer-5) encryption is enabled
    2021-11-10 04:54:23,763 INFO  [com.jdimension.jlawyer.timer.IterativeBackupTask] (Timer-5) getting directories...
    2021-11-10 04:54:23,763 INFO  [com.jdimension.jlawyer.timer.IterativeBackupTask] (Timer-5) initializing backup executor
    2021-11-10 04:54:23,763 INFO  [com.jdimension.jlawyer.timer.IterativeBackupTask] (Timer-5) starting backup
    2021-11-10 04:54:23,763 INFO  [com.jdimension.jlawyer.timer.executors.IterativeBackupExecutor] (Timer-5) backup executor has been launched
    2021-11-10 04:54:23,763 INFO  [com.jdimension.jlawyer.timer.executors.IterativeBackupExecutor] (Timer-5) initializing backup directory
    2021-11-10 04:54:23,763 INFO  [com.jdimension.jlawyer.timer.executors.IterativeBackupExecutor] (Timer-5) initializing backup metadata directory
    2021-11-10 04:54:23,764 INFO  [com.jdimension.jlawyer.timer.executors.IterativeBackupExecutor] (Timer-5) deleting metadata
    2021-11-10 04:54:23,764 INFO  [com.jdimension.jlawyer.timer.executors.IterativeBackupExecutor] (Timer-5) creating encoding information
    2021-11-10 04:54:23,764 INFO  [com.jdimension.jlawyer.timer.executors.IterativeBackupExecutor] (Timer-5) deleting old zip files
    2021-11-10 04:54:23,764 INFO  [com.jdimension.jlawyer.timer.executors.IterativeBackupExecutor] (Timer-5) backup up database
    2021-11-10 04:54:23,851 INFO  [com.jdimension.jlawyer.timer.executors.IterativeBackupExecutor] (Timer-5) Creating zip file
    2021-11-10 04:54:23,929 INFO  [com.jdimension.jlawyer.timer.executors.IterativeBackupExecutor] (Timer-5) deleting unzipped database dump
    2021-11-10 04:54:23,929 INFO  [com.jdimension.jlawyer.timer.executors.IterativeBackupExecutor] (Timer-5) Creating zip file for full backup dir /usr/local/j-lawyer-server/j-lawyer-data/emailtemplates
    2021-11-10 04:54:23,939 INFO  [com.jdimension.jlawyer.timer.executors.IterativeBackupExecutor] (Timer-5) Creating zip file for full backup dir /usr/local/j-lawyer-server/j-lawyer-data/mastertemplates
    2021-11-10 04:54:23,950 INFO  [com.jdimension.jlawyer.timer.executors.IterativeBackupExecutor] (Timer-5) Creating zip file for full backup dir /usr/local/j-lawyer-server/j-lawyer-data/faxqueue
    2021-11-10 04:54:23,950 INFO  [com.jdimension.jlawyer.timer.executors.IterativeBackupExecutor] (Timer-5) Creating zip file for full backup dir /usr/local/j-lawyer-server/j-lawyer-data/templates
    2021-11-10 04:54:24,516 INFO  [com.jdimension.jlawyer.timer.executors.IterativeBackupExecutor] (Timer-5) Backup finished
    2021-11-10 04:54:24,516 INFO  [com.jdimension.jlawyer.timer.IterativeBackupTask] (Timer-5) Backup finished
    2021-11-10 04:54:24,516 INFO  [com.jdimension.jlawyer.timer.IterativeBackupTask] (Timer-5) initializing export directory
    2021-11-10 04:54:24,516 INFO  [com.jdimension.jlawyer.timer.IterativeBackupTask] (Timer-5) Starting export to /Pfad/zum/Backuphtml
    2021-11-10 04:54:26,870 INFO  [com.jdimension.jlawyer.services.SingletonService] (Timer-7) directory observation is switched off
    2021-11-10 04:54:33,199 INFO  [com.jdimension.jlawyer.timer.IterativeBackupTask] (Timer-5) Export finished
    2021-11-10 04:54:33,199 INFO  [com.jdimension.jlawyer.timer.IterativeBackupTask] (Timer-5) Starting sync to file:///Pfad/zum/Backup/
    2021-11-10 04:54:33,203 INFO  [com.jdimension.jlawyer.sync.FolderSync] (Timer-5) Copying jlawyerdb-dump-encrypted.sql.zip to sync location
    2021-11-10 04:54:33,204 INFO  [com.jdimension.jlawyer.sync.FolderSync] (Timer-5) Deleting .stfolder from sync location because it is not contained in [faxqueue, emailtemplates, mastertemplates, archivefiles, templates, .metadata]
    2021-11-10 04:54:33,205 ERROR [com.jdimension.jlawyer.sync.FolderSync] (Timer-5) Deleting .stfolder failed: Could not find files in "file:///Pfad/zum/Backup/.stfolder".: org.apache.commons.vfs2.FileSystemException: Could not find files in "file:///Pfad/zum/Backup/.stfolder".
    	at deployment.j-lawyer-server.ear//org.apache.commons.vfs2.provider.AbstractFileObject.findFiles(AbstractFileObject.java:1092)
    	at deployment.j-lawyer-server.ear//org.apache.commons.vfs2.provider.AbstractFileObject.delete(AbstractFileObject.java:477)
    	at deployment.j-lawyer-server.ear//org.apache.commons.vfs2.provider.AbstractFileObject.deleteAll(AbstractFileObject.java:516)
    	at deployment.j-lawyer-server.ear//com.jdimension.jlawyer.storage.LocalSshFtpFile.deleteAll(LocalSshFtpFile.java:746)
    	at deployment.j-lawyer-server.ear.j-lawyer-server-war.war//com.jdimension.jlawyer.sync.FolderSync.synchronize(FolderSync.java:821)
    	at deployment.j-lawyer-server.ear.j-lawyer-server-war.war//com.jdimension.jlawyer.timer.IterativeBackupTask.run(IterativeBackupTask.java:974)
    	at java.base/java.util.TimerThread.mainLoop(Timer.java:556)
    	at java.base/java.util.TimerThread.run(Timer.java:506)
    Caused by: org.apache.commons.vfs2.FileNotFolderException: Could not list the contents of "file:///Pfad/zum/Backup/.stfolder" because it is not a folder.
    	at deployment.j-lawyer-server.ear//org.apache.commons.vfs2.provider.AbstractFileObject.getChildren(AbstractFileObject.java:1201)
    	at deployment.j-lawyer-server.ear//org.apache.commons.vfs2.provider.AbstractFileObject.traverse(AbstractFileObject.java:130)
    	at deployment.j-lawyer-server.ear//org.apache.commons.vfs2.provider.AbstractFileObject.findFiles(AbstractFileObject.java:1087)
    	... 7 more
    
    2021-11-10 04:54:33,205 ERROR [com.jdimension.jlawyer.sync.FolderSync] (Timer-5) falling back to non-recursive delete
    2021-11-10 04:54:33,205 ERROR [com.jdimension.jlawyer.sync.FolderSync] (Timer-5) Could not delete .stfolder: org.apache.commons.vfs2.FileSystemException: Could not find files in "file:///Pfad/zum/Backup/.stfolder".
    	at deployment.j-lawyer-server.ear//org.apache.commons.vfs2.provider.AbstractFileObject.findFiles(AbstractFileObject.java:1092)
    	at deployment.j-lawyer-server.ear//org.apache.commons.vfs2.provider.AbstractFileObject.delete(AbstractFileObject.java:477)
    	at deployment.j-lawyer-server.ear//org.apache.commons.vfs2.provider.AbstractFileObject.deleteAll(AbstractFileObject.java:516)
    	at deployment.j-lawyer-server.ear//com.jdimension.jlawyer.storage.LocalSshFtpFile.deleteAll(LocalSshFtpFile.java:746)
    	at deployment.j-lawyer-server.ear.j-lawyer-server-war.war//com.jdimension.jlawyer.sync.FolderSync.synchronize(FolderSync.java:821)
    	at deployment.j-lawyer-server.ear.j-lawyer-server-war.war//com.jdimension.jlawyer.timer.IterativeBackupTask.run(IterativeBackupTask.java:974)
    	at java.base/java.util.TimerThread.mainLoop(Timer.java:556)
    	at java.base/java.util.TimerThread.run(Timer.java:506)
    Caused by: org.apache.commons.vfs2.FileNotFolderException: Could not list the contents of "file:///Pfad/zum/Backup/.stfolder" because it is not a folder.
    	at deployment.j-lawyer-server.ear//org.apache.commons.vfs2.provider.AbstractFileObject.getChildren(AbstractFileObject.java:1201)
    	at deployment.j-lawyer-server.ear//org.apache.commons.vfs2.provider.AbstractFileObject.traverse(AbstractFileObject.java:130)
    	at deployment.j-lawyer-server.ear//org.apache.commons.vfs2.provider.AbstractFileObject.findFiles(AbstractFileObject.java:1087)
    	... 7 more
    
    2021-11-10 04:54:33,205 INFO  [com.jdimension.jlawyer.sync.FolderSync] (Timer-5) Deleting 20211109-emailtemplates-encrypted.zip from sync location
    2021-11-10 04:54:33,205 INFO  [com.jdimension.jlawyer.sync.FolderSync] (Timer-5) Copying 20211110-emailtemplates-encrypted.zip to sync location
    2021-11-10 04:54:33,206 INFO  [com.jdimension.jlawyer.sync.FolderSync] (Timer-5) Deleting 20211109-mastertemplates-encrypted.zip from sync location
    2021-11-10 04:54:33,206 INFO  [com.jdimension.jlawyer.sync.FolderSync] (Timer-5) Copying 20211110-mastertemplates-encrypted.zip to sync location
    2021-11-10 04:54:33,215 INFO  [com.jdimension.jlawyer.sync.FolderSync] (Timer-5) Copying 2b48f8857f0001010b1f77b188f23b5b-encrypted.zip to sync location
    2021-11-10 04:54:33,236 INFO  [com.jdimension.jlawyer.sync.FolderSync] (Timer-5) Deleting 20211109-templates-encrypted.zip from sync location
    2021-11-10 04:54:33,236 INFO  [com.jdimension.jlawyer.sync.FolderSync] (Timer-5) Copying 20211110-templates-encrypted.zip to sync location
    2021-11-10 04:54:33,238 INFO  [com.jdimension.jlawyer.timer.IterativeBackupTask] (Timer-5) Sync finished
    2021-11-10 04:54:33,241 WARNING [javax.mail] (Timer-5) expected resource not found: /META-INF/javamail.default.address.map
    2021-11-10 04:54:38,870 INFO  [com.jdimension.jlawyer.services.SingletonService] (Timer-7) directory observation is switched off
    2021-11-10 04:54:50,870 INFO  [com.jdimension.jlawyer.services.SingletonService] (Timer-7) directory observation is switched off
    
    2021-11-10 04:58:38,872 INFO  [com.jdimension.jlawyer.services.SingletonService] (Timer-7) directory observation is switched off
    2021-11-10 04:58:50,872 INFO  [com.jdimension.jlawyer.services.SingletonService] (Timer-7) directory observation is switched off
    2021-11-10 04:59:02,872 INFO  [com.jdimension.jlawyer.services.SingletonService] (Timer-7) directory observation is switched off
    2021-11-10 04:59:14,872 INFO  [com.jdimension.jlawyer.services.SingletonService] (Timer-7) directory observation is switched off
    2021-11-10 04:59:23,695 INFO  [com.jdimension.jlawyer.timer.BackupSyncTask] (Timer-6) Starting sync to file:///Pfad/zum/Backup/
    2021-11-10 04:59:23,695 INFO  [com.jdimension.jlawyer.sync.FolderSync] (Timer-6) Copying jlawyerdb-dump-encrypted.sql.zip to sync location
    2021-11-10 04:59:23,697 INFO  [com.jdimension.jlawyer.sync.FolderSync] (Timer-6) Deleting .stfolder from sync location because it is not contained in [faxqueue, emailtemplates, mastertemplates, archivefiles, templates, .metadata]
    2021-11-10 04:59:23,698 ERROR [com.jdimension.jlawyer.sync.FolderSync] (Timer-6) Deleting .stfolder failed: Could not find files in "file:///Pfad/zum/Backup/.stfolder".: org.apache.commons.vfs2.FileSystemException: Could not find files in "file:///Pfad/zum/Backup/.stfolder".
    	at deployment.j-lawyer-server.ear//org.apache.commons.vfs2.provider.AbstractFileObject.findFiles(AbstractFileObject.java:1092)
    	at deployment.j-lawyer-server.ear//org.apache.commons.vfs2.provider.AbstractFileObject.delete(AbstractFileObject.java:477)
    	at deployment.j-lawyer-server.ear//org.apache.commons.vfs2.provider.AbstractFileObject.deleteAll(AbstractFileObject.java:516)
    	at deployment.j-lawyer-server.ear//com.jdimension.jlawyer.storage.LocalSshFtpFile.deleteAll(LocalSshFtpFile.java:746)
    	at deployment.j-lawyer-server.ear.j-lawyer-server-war.war//com.jdimension.jlawyer.sync.FolderSync.synchronize(FolderSync.java:821)
    	at deployment.j-lawyer-server.ear.j-lawyer-server-war.war//com.jdimension.jlawyer.sync.FolderSync.synchronize(FolderSync.java:692)
    	at deployment.j-lawyer-server.ear.j-lawyer-server-war.war//com.jdimension.jlawyer.timer.BackupSyncTask.run(BackupSyncTask.java:764)
    	at java.base/java.util.TimerThread.mainLoop(Timer.java:556)
    	at java.base/java.util.TimerThread.run(Timer.java:506)
    Caused by: org.apache.commons.vfs2.FileNotFolderException: Could not list the contents of "file:///Pfad/zum/Backup/.stfolder" because it is not a folder.
    	at deployment.j-lawyer-server.ear//org.apache.commons.vfs2.provider.AbstractFileObject.getChildren(AbstractFileObject.java:1201)
    	at deployment.j-lawyer-server.ear//org.apache.commons.vfs2.provider.AbstractFileObject.traverse(AbstractFileObject.java:130)
    	at deployment.j-lawyer-server.ear//org.apache.commons.vfs2.provider.AbstractFileObject.findFiles(AbstractFileObject.java:1087)
    	... 8 more
    
    2021-11-10 04:59:23,698 ERROR [com.jdimension.jlawyer.sync.FolderSync] (Timer-6) falling back to non-recursive delete
    2021-11-10 04:59:23,698 ERROR [com.jdimension.jlawyer.sync.FolderSync] (Timer-6) Could not delete .stfolder: org.apache.commons.vfs2.FileSystemException: Could not find files in "file:///Pfad/zum/Backup/.stfolder".
    	at deployment.j-lawyer-server.ear//org.apache.commons.vfs2.provider.AbstractFileObject.findFiles(AbstractFileObject.java:1092)
    	at deployment.j-lawyer-server.ear//org.apache.commons.vfs2.provider.AbstractFileObject.delete(AbstractFileObject.java:477)
    	at deployment.j-lawyer-server.ear//org.apache.commons.vfs2.provider.AbstractFileObject.deleteAll(AbstractFileObject.java:516)
    	at deployment.j-lawyer-server.ear//com.jdimension.jlawyer.storage.LocalSshFtpFile.deleteAll(LocalSshFtpFile.java:746)
    	at deployment.j-lawyer-server.ear.j-lawyer-server-war.war//com.jdimension.jlawyer.sync.FolderSync.synchronize(FolderSync.java:821)
    	at deployment.j-lawyer-server.ear.j-lawyer-server-war.war//com.jdimension.jlawyer.sync.FolderSync.synchronize(FolderSync.java:692)
    	at deployment.j-lawyer-server.ear.j-lawyer-server-war.war//com.jdimension.jlawyer.timer.BackupSyncTask.run(BackupSyncTask.java:764)
    	at java.base/java.util.TimerThread.mainLoop(Timer.java:556)
    	at java.base/java.util.TimerThread.run(Timer.java:506)
    Caused by: org.apache.commons.vfs2.FileNotFolderException: Could not list the contents of "file:///Pfad/zum/Backup/.stfolder" because it is not a folder.
    	at deployment.j-lawyer-server.ear//org.apache.commons.vfs2.provider.AbstractFileObject.getChildren(AbstractFileObject.java:1201)
    	at deployment.j-lawyer-server.ear//org.apache.commons.vfs2.provider.AbstractFileObject.traverse(AbstractFileObject.java:130)
    	at deployment.j-lawyer-server.ear//org.apache.commons.vfs2.provider.AbstractFileObject.findFiles(AbstractFileObject.java:1087)
    	... 8 more
    
    2021-11-10 04:59:23,710 INFO  [com.jdimension.jlawyer.timer.BackupSyncTask] (Timer-6) Sync finished
    2021-11-10 04:59:26,872 INFO  [com.jdimension.jlawyer.services.SingletonService] (Timer-7) directory observation is switched off
    
    • Diese Antwort wurde vor vor 3 Jahren von ghjh bearbeitet.
    #4616
    j-lawyer.org
    Administrator

    Sieht auf den ersten Blick gut aus, da er nach den Fehler bzgl. des speziellen Ordners noch weitere Dateien synchronisiert:

    2021-11-10 04:54:33,205 ERROR [com.jdimension.jlawyer.sync.FolderSync] (Timer-5) Could not delete .stfolder: org.apache.commons.vfs2.FileSystemException: Could not find files in "file:///Pfad/zum/Backup/.stfolder".
        at deployment.j-lawyer-server.ear//org.apache.commons.vfs2.provider.AbstractFileObject.findFiles(AbstractFileObject.java:1092)
        at deployment.j-lawyer-server.ear//org.apache.commons.vfs2.provider.AbstractFileObject.delete(AbstractFileObject.java:477)
        at deployment.j-lawyer-server.ear//org.apache.commons.vfs2.provider.AbstractFileObject.deleteAll(AbstractFileObject.java:516)
        at deployment.j-lawyer-server.ear//com.jdimension.jlawyer.storage.LocalSshFtpFile.deleteAll(LocalSshFtpFile.java:746)
        at deployment.j-lawyer-server.ear.j-lawyer-server-war.war//com.jdimension.jlawyer.sync.FolderSync.synchronize(FolderSync.java:821)
        at deployment.j-lawyer-server.ear.j-lawyer-server-war.war//com.jdimension.jlawyer.timer.IterativeBackupTask.run(IterativeBackupTask.java:974)
        at java.base/java.util.TimerThread.mainLoop(Timer.java:556)
        at java.base/java.util.TimerThread.run(Timer.java:506)
    Caused by: org.apache.commons.vfs2.FileNotFolderException: Could not list the contents of "file:///Pfad/zum/Backup/.stfolder" because it is not a folder.
        at deployment.j-lawyer-server.ear//org.apache.commons.vfs2.provider.AbstractFileObject.getChildren(AbstractFileObject.java:1201)
        at deployment.j-lawyer-server.ear//org.apache.commons.vfs2.provider.AbstractFileObject.traverse(AbstractFileObject.java:130)
        at deployment.j-lawyer-server.ear//org.apache.commons.vfs2.provider.AbstractFileObject.findFiles(AbstractFileObject.java:1087)
        ... 7 more
    
    2021-11-10 04:54:33,205 INFO  [com.jdimension.jlawyer.sync.FolderSync] (Timer-5) Deleting 20211109-emailtemplates-encrypted.zip from sync location
    2021-11-10 04:54:33,205 INFO  [com.jdimension.jlawyer.sync.FolderSync] (Timer-5) Copying 20211110-emailtemplates-encrypted.zip to sync location
    2021-11-10 04:54:33,206 INFO  [com.jdimension.jlawyer.sync.FolderSync] (Timer-5) Deleting 20211109-mastertemplates-encrypted.zip from sync location
    2021-11-10 04:54:33,206 INFO  [com.jdimension.jlawyer.sync.FolderSync] (Timer-5) Copying 20211110-mastertemplates-encrypted.zip to sync location
    2021-11-10 04:54:33,215 INFO  [com.jdimension.jlawyer.sync.FolderSync] (Timer-5) Copying 2b48f8857f0001010b1f77b188f23b5b-encrypted.zip to sync location
    2021-11-10 04:54:33,236 INFO  [com.jdimension.jlawyer.sync.FolderSync] (Timer-5) Deleting 20211109-templates-encrypted.zip from sync location
    2021-11-10 04:54:33,236 INFO  [com.jdimension.jlawyer.sync.FolderSync] (Timer-5) Copying 20211110-templates-encrypted.zip to sync location
    2021-11-10 04:54:33,238 INFO  [com.jdimension.jlawyer.timer.IterativeBackupTask] (Timer-5) Sync finished

    Trotzdem mal ein Auge drauf haben, bspw. Inhalt des „backups“-Ordners auf beiden Seiten vergleichen (Anzahl Dateien und Größe).

5 Beiträge anzeigen - 1 bis 5 (von insgesamt 5)
  • Du musst angemeldet sein, um zu diesem Thema eine Antwort verfassen zu können.