merging archives

Xeoma Software

Moderators: Admin_N, Administrator, Admin_P, Admin_K

merging archives

Postby ltgcc » Mon Feb 07, 2022 4:39 am

Last November (iirc) I noticed my xeoma was barfing on startup. I am just now able to get around to doing something about it. I have decided rather than fix the old setup to just do a whole new install on a new system. Of course, this will necessitate relearning everything.
In looking at migrating archives to the new system I notice I actually have two sets of archives. I vaguely remember that something went tu a while back (according to the dates, it was probably mid-2020) and again, being short of time and resources it looks like I just renamed the XeomaArchive to a date and started a new one.

# ls -la XeomaArchive*
XeomaArchive:
total 160
drwxr-x---+ 6 root root 120 Aug 22 21:58 .
drwxrwsr-x+ 13 root root 4096 Jan 1 18:40 ..
-rw-rw-rw-+ 1 root root 147444 Dec 19 2020 archive.cache
drwxrwxrwx+ 2 root root 88 Dec 19 2020 Database
drwxr-x---+ 61 root root 4096 Nov 20 14:02 Preview+Archive.12
drwxr-x---+ 31 root root 4096 Nov 20 14:02 Preview+Archive.20
drwxr-x---+ 31 root root 4096 Nov 20 14:02 Preview+Archive.6

XeomaArchive-backup-2020-july-4:
total 164
drwxrwsrwx+ 5 root root 101 Jul 4 2020 .
drwxrwsr-x+ 13 root root 4096 Jan 1 18:40 ..
-rw-r--r-- 1 root root 155648 May 28 2020 Archive.db
drwxrwsrwx+ 62 root root 4096 Jul 4 2020 Preview+Archive.12
drwxrwsrwx+ 2 root root 6 Mar 7 2020 Preview+Archive.20
drwxrwsrwx+ 32 root root 4096 Jul 4 2020 Preview+Archive.6

So here's my first silly question in this whole project.

1a. Can these two archives be merged?
1b. if 'yes', can the soon-to-be-newly-installed xeoma be configured to simply append archive to the resulting merged XeomaArchive?

Thank you.
ltgcc
 
Posts: 7
Joined: Wed Aug 12, 2020 4:56 pm

Re: merging archives

Postby Admin_P » Mon Feb 07, 2022 8:28 am

Hi! Yes, archives can be merged as long as the directory tree remains the same. Here is a simple example:
-suppose you have a new directory .../XeomaArchive/Preview+Archive.2/
-inside it has individual folders for separate dates (e.g. 2022-02-01, 2022-02-02, etc.)
-suppose you have an old directory .../ArchiveBackup/Preview+Archive.2/
-inside it also has individual folders for older dates (e.g. 2022-01-01, 2022-01-02, etc.)
-you can move the date-folders from the old directory to the new one
-after you start Xeoma it will recognize the older archives for this cam and keep adding new footage to that same general directory (Preview+Archive.2)
Admin_P
 
Posts: 245
Joined: Wed Aug 24, 2016 1:49 pm

Re: merging archives

Postby ltgcc » Mon Feb 07, 2022 8:40 pm

thank you very much! I was hoping it was something that easy. Copying now.

How about files such as 'archive.db' in the old XeomaArchive ? What should I do (if anything) with it?

Will anything need to be done with the 'archive.cache' file or 'Database' directory in the current XeomaArchive after the old Preview+Archive dir/files are copied over?

Thank you again.
ltgcc
 
Posts: 7
Joined: Wed Aug 12, 2020 4:56 pm

Re: merging archives

Postby Admin_P » Tue Mar 01, 2022 1:33 pm

No, Xeoma generates all those files automatically while working with the archives, so you don't need to move them manually.
Admin_P
 
Posts: 245
Joined: Wed Aug 24, 2016 1:49 pm


Return to Xeoma - General discussion

Who is online

Users browsing this forum: No registered users and 32 guests

cron