10-17-2011 04:25 PM
10-17-2011 05:16 PM
07-02-2013 01:49 PM
10-17-2011 06:40 PM
10-18-2011 03:28 AM
10-18-2011 05:03 PM
10-19-2011 03:34 AM
12-07-2011 06:56 PM
12-11-2011 05:01 AM
I had a bit of a disaster, in that I lost a weeks worth of backup, so I now have a content store which is 10 days old, and a db which is fresh, but with the old backups accidentally deleted.
Is there any way to get this working? What would be the best procedure?
Running on 3.4.d, Debian, MySQL, Tomcat
cd /opt/alfresco-##/alf_data/contentstore
find . | grep - > contentstore.txt
sed -i 's/\.\//store:\/\//g' contentstore.txt
mysqldump -u YOUR_DB_USER -p YOUR_ALFRESCO_DB alf_content_url | sed 's$),($),\n($g' > alf.sql
dblist=( `cat "alf.sql" `)
filelist=( `cat "contentstore.txt" `)
left=${#dblist[@]}
for pointer in "${dblist[@]}"
do
exists=false
pointerpath=( `echo $pointer | cut -d "'" -f 2 `)
for filepath in "${filelist[@]}"
do
if [ "$filepath" == "$pointerpath" ]; then
exists=true;
fi
done
let left-=1
echo $left
### List files that does not exist
if [ "$exists" == 'false' ]; then
echo $pointer >> pointers.txt
echo $pointer
fi
done
UPDATE `YOUR_DB_NAME`.`alf_content_url` SET `content_url` = 'store://2011/11/30/9/26/713d9b34-3f6b-472c-8b5e-4e4b74a5b66.bin' WHERE `alf_content_url`.`id` >7000;
index.recovery.mode=FULL
started alfresco and crossed our fingers. Success. I then did a search from inside share to delete any files that were just "{" and "}". And we now have a working site. I have seen, somewhere in the forums, a method to get a working site from a DB back-up that is older than the alf_data directory. Here is now a method for the reverse, a working site from an alf-data directory that is older than the DB back-up.07-02-2013 07:11 PM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.