You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some smaller tables with a lot of inserts and deletes (like the cache or session table) are regularly optimized. This seem to confuse your backup command.
If for some reason you don't want to (but try it - it really works nice) then you can just setup your backup script to retry on error until success, somehow like this:
for i in {1..40}
do
echo "Attempt $i..."
/usr/sbin/backup-manager
if [ $? -eq 0 ]
then
echo "Succesful backup on $i attempt at $(date)"
break
fi
sleep 120
done
I used to have this and it managed to do backups but sometimes took as much as 10-20 attempts.
I have a single user Friendica instance on a shared host. Every night a backup is started but fails due to the database being in use.
Is there a way to lock the database prior to backing up? Thanks
The text was updated successfully, but these errors were encountered: