urbantrout / craftcms

Craft CMS Docker Image
MIT License
76 stars 32 forks source link

last saved db backup sql is not loading #5

Closed marvinpyles closed 5 years ago

marvinpyles commented 5 years ago

After I remove the sql entry inside .ignore, I would expect the last saved craft db backup sql to load. However, this is not the case. Docker appears to still be pulling up the last sql backup named "craft-cms-installation.sql" instead of my last saved sql backup: "site-name.sql".

I even tried to rename my last named backup using the same conventions as the one docker is importing.. No cigar. Still does not work.

urbantrout commented 5 years ago

The script responsible for importing the DB dump should actually use only the latest sql file in the backups folder (sorted by mtime). I tried reproducing your problem without any success. Are you sure you are using the latest docker image? Try updating it with docker pull urbantrout/craftcms, docker pull urbantrout/craftcms:mysql or docker pull urbantrout/craftcms:postgresql

pddew commented 5 years ago

I have this problem too after using Ryan Irelan's fork of this repo; I have also changed the site name from the CP.

I've included more detail here: https://craftcms.stackexchange.com/q/28682/8833

urbantrout commented 5 years ago

I am pretty busy right now, but I will take a look at it on the weekend…

pddew commented 5 years ago

No rush at all - I realised I could remove all backups except for the one I want, then the import works ok.

I think this might be to do with a name change, which prevents backups going into .ignore. Thanks

urbantrout commented 5 years ago

Yeah. I always delete all but the most recent one ;)

urbantrout commented 5 years ago

@pddew Are you sure you are using the latest docker image? You can update the image with docker pull urbantrout/craftcms:

I just checked and my image is using the most recent backup when spinning up the containers.

urbantrout commented 5 years ago

I'm closing this issue because it has been inactive for a few months.