I need extra languages for OCR, hence this custom derivative Mayan EDMS image.
Use as coaxial/mayanedms instead of mayanedms/mayanedms in commands.
Requires docker to be up and running
$ docker run \
--detach \
--name mayan-edms \
--restart=always \
--publish 8080:80 \
--volume mayan_data:/var/lib/mayan \
--volume mayan_dropbox:/srv/scanned_documents \
coaxial/mayanedms
The directory at /srv/scanned_documents is watched by Mayan EDMS to
automatically import any document dropped in it. This is used in combination
with coaxial/ct2p to easily ingest scanned documents prepped for OCR.
$ docker stop mayan-edms && docker rm mayan-edms && docker pull coaxial/mayanedms and then run the starting command again.
Assumes docker and Mayan are running, tarsnap is installed and setup with the relevant key (instructions), and that tarsnapper is ready to go (instructions).
Unpack the lib/backup_setup.tar.gz archive on the target machine at /
with sudo
Edit the email address in the backup script at
/root/tarsnap-mayan-edms-backup.sh
Set the permissions on the backup script:
$ chown root:root /root/tarsnap-mayan-edms-backup.sh && chmod 600
/root/tarnsap-mayan-edms-backup.sh && chmod u+x
/root/tarsnap-mayan-edms-backup.sh
# Backup Mayan EDMS data to tarnsap
12 2 * * * /root/tarsnap-mayan-edms-backup.sh
Setup msmtp (instructions
Test the setup by running the script sudo /root/tarsnap-mayan-edms-backup.sh, checking if it ran successfully, and
whether an email was dispatched
Assumes the data volume on the target instance is also named
mayan_data
$ sudo tarsnap --list-archives | sort$ sudo tarnsap -x -f <backup-name>This could be an ansible playbook...
Content type
Image
Digest
Size
490.3 MB
Last updated
about 9 years ago
docker pull coaxial/mayanedms