Commit Graph

28 Commits (main)

Author SHA1 Message Date
jay 319cba8f8f Add mb_search_replace
Supports:

Dry Run
Throws an error if search field is empty
Throws a warning is search term and replace term are the same
Creates an database backup before every valid search replace operation
Will purge database backups older than  7 days
Logs every operation
Clears cache

TODO:
Make the view logs button work. Button is in the results, but throws an error
2023-11-17 06:22:48 +00:00
jay 90d76defe0 Add purgedbbackups.sh
Purge database backups created before any search and replace operation older than 7 days. This script will run daily via cron at midnight
2023-11-17 03:53:42 +00:00
jay e2cf733d47 Update basic_search_replace.yml
If the terms to search and replace are the same, the operations stops and will return a warning message.

Fixed the search and replace phrase issue
2023-11-05 04:37:45 +00:00
jay e103966d61 Update basic_search_replace.yml 2023-11-05 04:18:39 +00:00
jay d49e43582f Update basic_search_replace.yml
reverted to using basic_search_replace-dry-run.sh for the dry run operation. Using  ./basic_search_replace.sh "${settings.termSearch}" "${settings.termReplace}" -z does not work and the search and replace operation still do the actual changes.
2023-11-05 02:08:31 +00:00
jay 4aded46aca Update basic_search_replace.yml 2023-11-05 01:41:53 +00:00
denny eb65f23a08 Update basic_search_replace.yml 2023-11-02 17:06:53 +00:00
denny 8879c9743a Update basic_search_replace.yml 2023-11-02 17:06:02 +00:00
denny bc7949558d Update basic_search_replace.yml 2023-11-02 17:03:46 +00:00
jay e5214eb762 Update basic_search_replace.yml
Fixed  dry run condition
2023-10-26 18:49:21 +00:00
jay 2c4f64176d Update basic_search_replace.sh 2023-10-26 18:07:40 +00:00
jay 1cb1109816 Update basic_search_replace-dry-run.sh 2023-10-26 18:06:14 +00:00
jay e2cba9f564 Update basic_search_replace-dry-run.sh 2023-10-26 18:05:10 +00:00
jay 3c14e88ee6 Update basic_search_replace.sh
Added timestamps
2023-10-26 17:38:13 +00:00
jay ad19152cd7 Update basic_search_replace-dry-run.sh
Added timestamp
2023-10-26 17:37:40 +00:00
jay 3d741a308a Update basic_search_replace.yml
Modified the call to --dry-run. Test mode will invoke a different bash script.

TODO:
Check conditional if statement on the button action
Make the cli output as the success text
2023-10-23 19:01:40 +00:00
jay fa2dc17088 Add basic_search_replace-dry-run.sh 2023-10-23 18:42:41 +00:00
jay e008b72dc9 Update basic_search_replace.yml
Installs and works.

TODO:

Have to figure out the correct condition for the Test mode/ dry run option 
Make the cli output as the Success message
2023-10-23 18:28:47 +00:00
jay 1a2fc4db62 Update basic_search_replace.sh 2023-10-21 20:52:29 +00:00
jay c6d99a9a1d Add basic_search_replace.yml 2023-10-21 20:50:08 +00:00
jay 0210671e47 Update basic_search_replace.sh 2023-10-20 20:45:29 +00:00
jay fc7320581e Update basic_search_replace.sh 2023-10-20 20:40:13 +00:00
jay 677c7015ae Update basic_search_replace.sh 2023-10-20 20:01:43 +00:00
jay a70fb165cb Update basic_search_replace.sh 2023-10-20 19:46:44 +00:00
jay 4edad200b7 Update basic_search_replace.sh 2023-10-20 16:21:37 +00:00
jay 717ef7e65d Update basic_search_replace.sh 2023-10-19 16:39:24 +00:00
jay 0bc15526f6 Update basic_search_replace.sh 2023-10-19 16:23:44 +00:00
jay a67619298b Add basic_search_replace.sh 2023-10-19 13:07:26 +00:00