You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Could you please provide additional details, such as the configuration of the searchd, the exact parameters for your backup script, and the exact parameters you use for restoration?
In instances where absolute paths are used, the process should be identical in OSX. Have you attempted to create a backup using a relative data directory configuration? This approach would allow the root path to vary between different operating systems.
I believe the most important different consists of the location of the standard folders, which is quite different between a standard Linux install and a standard Homebrew installation on a mac.
Our team has reviewed the issue and concluded that it's a rather unique situation. It may be challenging to implement the ability to auto-detect prefixes in various OSes. We're currently maintaining absolute prefixes for each folder in the backup structure. Even if we were to introduce a parameter that allows setting a prefix for restoration, we still have different default prefixes for other directories. Sometimes, these differ across platforms, such as the path to the data directory in Linux and OSX.
As a potential solution, try a Dockerized environment with Linux. If you need Manticore on your OSX, the simplest way is to run a Linux container, restore it in the same environment, and then use it on your host machine by employing a network mode host.
Remember, you cannot restore a full backup with a running daemon. In the case of a full backup, the daemon should not be operational on the system. Also, you don't need to create a config file.
As a potential solution, try a Dockerized environment with Linux
Or you can write a simple bash script which will restore from the backup by copying the files to proper places and uncompressing. manticore-backup doesn't do anything special in this case (unlike the backup phase when it has to freeze tables).
Activity
donhardman commentedon Aug 30, 2023
Hello,
Could you please provide additional details, such as the configuration of the searchd, the exact parameters for your backup script, and the exact parameters you use for restoration?
In instances where absolute paths are used, the process should be identical in OSX. Have you attempted to create a backup using a relative data directory configuration? This approach would allow the root path to vary between different operating systems.
mtruyens commentedon Aug 31, 2023
I believe the most important different consists of the location of the standard folders, which is quite different between a standard Linux install and a standard Homebrew installation on a mac.
Here's the configuration at the Linux server:
Here's the configuration for the local development (Mac) machine:
The backup command on the Linux server is
manticore-backup --compress --backup-dir=$BACKUP_DIR --config=/etc/manticoresearch/manticore.confThe restore command I tried on my Mac is:
sudo manticore-backup --backup-dir=/Users/mtruyens/Data/home/mtruyens/backups --restore=backup-20230826030001Which results in :
donhardman commentedon Sep 4, 2023
Hi there.
Our team has reviewed the issue and concluded that it's a rather unique situation. It may be challenging to implement the ability to auto-detect prefixes in various OSes. We're currently maintaining absolute prefixes for each folder in the backup structure. Even if we were to introduce a parameter that allows setting a prefix for restoration, we still have different default prefixes for other directories. Sometimes, these differ across platforms, such as the path to the data directory in Linux and OSX.
As a potential solution, try a Dockerized environment with Linux. If you need Manticore on your OSX, the simplest way is to run a Linux container, restore it in the same environment, and then use it on your host machine by employing a network mode host.
We also offer support for
mysqldump. If that suits your needs, it can be used to restore your backup in a cross-platform environment. For more details, please visit: https://manual.manticoresearch.com/Securing_and_compacting_a_table/Backup_and_restore#Backup-and-restore-with-mysqldumpRemember, you cannot restore a full backup with a running daemon. In the case of a full backup, the daemon should not be operational on the system. Also, you don't need to create a config file.
sanikolaev commentedon Sep 4, 2023
Or you can write a simple bash script which will restore from the backup by copying the files to proper places and uncompressing.
manticore-backupdoesn't do anything special in this case (unlike the backup phase when it has to freeze tables).