welaika / wordmove

Multi-stage command line deploy/mirroring and task runner for Wordpress
https://wptools.it/wordmove
MIT License
1.87k stars 165 forks source link

Question : Must --simulate option simulate database pulling (mysqldump) ? #626

Closed eldk closed 2 years ago

eldk commented 2 years ago

Hello,

Must --simulate option simulate database pulling ?

wordmove pull --all -v --debug --simulate

>f..t...... wp-content/languages/themes/twentytwentyone-fr_FR.po
sent 853 bytes  received 6,625 bytes  4,985.33 bytes/sec
total size is 5,594,481  speedup is 748.13 (DRY RUN)

▬▬ Pulling Database ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

Nothing happened ?

The config use ssh + rsync + mysqldump.

Thanks,

Eric

PS : wordmove doctor checks are all green

alessandro-fazzi commented 2 years ago

Hi,

actually when simulating the pull action will solely print database actions, actually skipping them. Sincerly I've never realized my own expectation about what simulating the DB transfer/adapt could mean...

As it stands it shows to you only the operation that would have been ran, without running it.

If you have different expectations I'd like to discuss them and eventually track them down in a feature request.

Thanks for the enquiry.

eldk commented 2 years ago

Thanks for your answer.

As it stands it shows to you only the operation that would have been ran, without running it.

So I should see log lines under -- Pulling Database --- ?

Those lines should reflect what should be done without --simulate option ?

I have nothing under (not a single line) -- Pulling Database --- no database actions printed at all.

Thanks,

Eric

PS : I was using wordmove with sftp before switching to SSH, and, if I remember database operation were logged under -- Pulling Database when --simulate option is used (even if nothing is really done).

wordmove --version
5.2.1
alessandro-fazzi commented 2 years ago

Yes, sorry: the "operation" from the wordmove pov is "Pulling database".

This is what i get with FTP

immagine

While I'm working on the new wordmove version I'm compelling about what to log and what to not log while simulating. This is an example from the alpha version

immagine

But you didn't express any expectation about what you think should be useful. That would help with future implementation. :)