On Friday, June 10, 2016 at 9:33:29 PM UTC-4, Subhash Pant wrote: > > Roberto, > > I am trying to configure two mayan servers, on ditto hardware. My > backup/restore goals are as follows: > > 1) Keep a backup of everyday diffs into a separate place, includes MySQL > and document_storage. > 2) Copy the backups from primary to secondary, and overwrite the MySQL Db, > as well as document_ storage so that I have a hot standby available. >
> Do you see any configuration issues with this? basically, on secondary, i > intend to overwrite everything everyday, maybe in rename_mayan Db, create > new mayan db and restore on top of it. > > I would suggest than instead of copying the MySQL DB you do an sql dump and load instead, higher changes the backup will be good. > I also have another question. In the previous versions of Mayan, I was > able to access the files using path in the indexes, as defined in the > settings_local. But it appears that the feature has been deprecated. Is > there any way I can decrypt, or extract files out of my document storage if > I ever need to? > > The feature was re-added as a filesystem in userspace (FUSE). Documentation here: http://mayan.readthedocs.io/en/latest/topics/indexes.html#mirroring execute ./manage.py mountindex [index-slug] [target directory]. Now all your index structure will be available at [target directory]. > Thanks. > --Subhash > > On Thursday, September 27, 2012 at 11:13:48 AM UTC-5, Roberto Rosario > wrote: >> >> Just a simple bash script I use to backup the Mayan installation at work >> to my laptop. It creates a sub directory based on the date under the >> MOUNT_POINT you specify after that does a complete database and document >> storage copy. >> >> >> #!/bin/sh >> MOUNT_POINT=/home/rosarior/data_disk/ogpe-backup/mayan/backups >> MAYAN_SERVER=172.16.1.196 >> DATE=`date +%Y%m%d` >> BACKUP_DIRECTORY="$MOUNT_POINT/$DATE" >> REMOTE_SSH_USERNAME=rosarior >> REMOTE_MYSQL_USERNAME=root >> REMOTE_MYSQL_DATABASE=mayan >> >> echo "Backup directory: $BACKUP_DIRECTORY" >> mkdir -p $BACKUP_DIRECTORY >> >> echo -n "Running mysqldump..." >> mysqldump --host=$MAYAN_SERVER -u $REMOTE_MYSQL_USERNAME -p >> $REMOTE_MYSQL_DATABASE > $BACKUP_DIRECTORY/mayan.sql >> echo "mysqldump finished." >> >> echo -n "Running rsync..." >> rsync -avz --delete --progress -e ssh >> $REMOTE_SSH_USERNAME@$MAYAN_SERVER:/var/local/mayan/document_storage/ >> $BACKUP_DIRECTORY/document_storage/ >> echo "rsync finished." >> >> echo "Backup complete." >> >> -- --- You received this message because you are subscribed to the Google Groups "Mayan EDMS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
