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 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?

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.

Reply via email to