-
Notifications
You must be signed in to change notification settings - Fork 43
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
How to restore backups #5
Comments
After some research i found that there is a script called "slapd-restore-data" in the /sbin directory of the image. To restore your data you have to run this script with the file you want to restore as an argument. Example: |
@Athoir Any idea to add the restore operation on container starting point? |
I haven't worked on this one for a while but adding an CMD command similar to You will have to test a few things:
Another option would be to take a look at the /container/tool/run script Osixia use to launch their stuff. |
Here is how I do:
|
i am so careless
when you want to restore data,please do below, this method from @kumy
|
Thanks to @Athoir's comment I finally managed to restore a backup file on startup by extending the image like the following: FROM osixia/openldap-backup:1.4.0
COPY custom-backup.sh /container/service/slapd-backup/assets/tool/slapd-backup
COPY custom-restore.sh .
CMD ["-c", "./custom-restore.sh", "process"] |
It is not described - how to restore the backups from the data found in my volume
The text was updated successfully, but these errors were encountered: