feat: support dump and recovery mode
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
fe4b1f65d4
commit
837a4358b8
@ -22,7 +22,7 @@ FROM debian:stable-slim
|
|||||||
RUN apt-get -qy update && apt-get -qy upgrade
|
RUN apt-get -qy update && apt-get -qy upgrade
|
||||||
RUN apt-get -qy install git libssl3 bash perl libglib2.0 swig libtirpc3 libreadline8 \
|
RUN apt-get -qy install git libssl3 bash perl libglib2.0 swig libtirpc3 libreadline8 \
|
||||||
libxslt1.1 libxml-simple-perl libjson-perl procps
|
libxslt1.1 libxml-simple-perl libjson-perl procps
|
||||||
RUN apt-get -qy install tini
|
RUN apt-get -qy install tini openbsd-inetd
|
||||||
|
|
||||||
COPY --from=builder /usr/local/ /usr/local/
|
COPY --from=builder /usr/local/ /usr/local/
|
||||||
|
|
||||||
@ -34,6 +34,8 @@ ENV LD_LIBRARY_PATH /usr/local/share/perl5/site_perl/auto/Amanda/Debug/
|
|||||||
ADD scripts/entryPoint.sh /entryPoint.sh
|
ADD scripts/entryPoint.sh /entryPoint.sh
|
||||||
RUN chmod +x /entryPoint.sh
|
RUN chmod +x /entryPoint.sh
|
||||||
|
|
||||||
|
COPY inetd.conf /etc/inetd.conf
|
||||||
|
|
||||||
USER backup
|
USER backup
|
||||||
|
|
||||||
ENTRYPOINT ["/usr/bin/tini", "--", "/entryPoint.sh"]
|
ENTRYPOINT ["/usr/bin/tini", "--", "/entryPoint.sh"]
|
1
server/inetd.conf
Normal file
1
server/inetd.conf
Normal file
@ -0,0 +1 @@
|
|||||||
|
amanda stream tcp nowait backup /usr/local/libexec/amanda/amandad amandad -auth=ssl amindexd amidxtaped
|
@ -5,9 +5,21 @@ if [ -z ${AMANDA_CONFIG} ]; then
|
|||||||
AMANDA_CONFIG="server"
|
AMANDA_CONFIG="server"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -z ${AMANDA_MODE} ]; then
|
||||||
|
AMANDA_MODE="dump"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "${AMANDA_MODE}" == "dump" ]; then
|
||||||
|
|
||||||
amcleanup -k ${AMANDA_CONFIG}
|
amcleanup -k ${AMANDA_CONFIG}
|
||||||
amcheck ${AMANDA_CONFIG}
|
amcheck ${AMANDA_CONFIG}
|
||||||
amdump ${AMANDA_CONFIG}
|
amdump ${AMANDA_CONFIG}
|
||||||
amstatus ${AMANDA_CONFIG}
|
amstatus ${AMANDA_CONFIG}
|
||||||
|
|
||||||
|
else
|
||||||
|
inetd -d /etc/inetd.conf
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
exit 0
|
exit 0
|
Loading…
Reference in New Issue
Block a user