mncdev
Forum Replies Created
-
Forum: Plugins
In reply to: [WPvivid — Backup, Migration & Staging] Backup File NamesHi Tony,
Thanks for reply.
I understand a lot more now – I can see the problems that would cause having to “pre-inspect”.
Your approach makes absolute sense and, obviously, works well.
Thank you for considering my comments.
I shall go to my alternative approach with some scripts on the storage host (I have the luxury of SSH and SFTP on the storage host !!)
Many thanks for you time,
regards
M
Forum: Plugins
In reply to: [WPvivid — Backup, Migration & Staging] Backup File NamesHello Tony,
thanks for the reply. I can definitely understand the need for reliability and stability etc.
I think there may well be a way to look at this without causing any legacy issues. To my mind there are 2 simple methods, neither of which would affect the restore or backup mechanisms themselves – only altering the file recognition code.
To be clear I am only talking about the overall .zip file name – NOT the files inside it.
Method 1:
restore started – .zip file found
- if matches WPVivid name format
- proceed as normal.
- Else
- look at file(s) inside and pick up filename from one of them
- then proceed as normal.
- End Change.
Method 2:
On backup add an extra file (no content) with the WPVivid filename and a special extension e.g. wpv
restore started – .zip file found
- if matches WPVivid name format
- proceed as normal.
- Else
- Look inside zip file and find any .wpv files
- If .wpv file present
- Use filename details
- proceed as normal
- else
- Error cannot recognise
- end .wpv file check.
- end match filename format
End Change.
Method 1 assumes that you can get all the required info from any of the files inside the .zip, method 2 idoes not assume such.
I would appreciate if you could have the suggestions reviewed – I think the mechanism is simple enough to not affect existing stability or legacy backups.
This would be a very big help to developers certainly and a good “new feature” to market … ??
best regards
M.
Thank you very much for the info.
I will now apply that.
cheers
M.
- if matches WPVivid name format