forced backup without special name

Discussions and requests related to new CMSimple features, plugins, templates etc. and how to develop.
Please don't ask for support at this forums!
svasti
Posts: 1659
Joined: Wed Dec 17, 2008 5:08 pm

forced backup without special name

Post by svasti » Thu Apr 10, 2014 1:07 pm

Hi
I found that it is not possible to make a backup via the backend without entering a special name. I needed that function, e.g. in the cmsimple-xh.org site, when editing different languages, as up to now only one language will get a backup (may change in 1.6.2). So I thought, just make a backup via the backend. Grrr, javascript insisted on a name for the backup, but I wanted a standard backup without special name.

I propose to allow backup without special name.

cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: forced backup without special name

Post by cmb » Fri Apr 11, 2014 11:51 am

svasti wrote:I propose to allow backup without special name.
Do you propose it only, if we don't change the behavior of the automatic backups, or do you think it's reasonable anyway?
Christoph M. Becker – Plugins for CMSimple_XH

svasti
Posts: 1659
Joined: Wed Dec 17, 2008 5:08 pm

Re: forced backup without special name

Post by svasti » Sat Apr 12, 2014 5:01 pm

I think it's reasonable anyway. Say, I am not sure a certain change whould be good, so I first make a backup. However what if I don't want to keep it indefinitely? Making a backup with special name means, I'd have to delete it eventually manually. Standard backup means, I have it for a certain time, and can forget about it.

I think the javascript alert should remain together with the prefilled input field — but if the user deletes this input field and saves, it seems to me, he really wants standard saving without any special name.

cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: forced backup without special name

Post by cmb » Mon Aug 11, 2014 10:46 pm

JFTR: done by svasti (r1324).
Christoph M. Becker – Plugins for CMSimple_XH

Tata
Posts: 3587
Joined: Tue May 20, 2008 5:34 am
Location: Slovakia
Contact:

Re: forced backup without special name

Post by Tata » Tue Aug 12, 2014 4:48 am

I often do a copy of files. In OSX they automatically get "copy_" prefix. Would it be bad to set thing so that:
1. if no name is given, only standard backup is made
2. if a name is given, both standard and special named backups are made.
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.

cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: forced backup without special name

Post by cmb » Wed Aug 13, 2014 12:43 pm

Tata wrote:if no name is given, only standard backup is made
That is already implemented for XH 1.6.3.
Tata wrote:if a name is given, both standard and special named backups are made.
Um, why having two backups of the same content?
Christoph M. Becker – Plugins for CMSimple_XH

Tata
Posts: 3587
Joined: Tue May 20, 2008 5:34 am
Location: Slovakia
Contact:

Re: forced backup without special name

Post by Tata » Wed Aug 13, 2014 3:19 pm

cmb wrote:
Tata wrote:if no name is given, only standard backup is made
That is already implemented for XH 1.6.3.
Tata wrote:if a name is given, both standard and special named backups are made.
Um, why having two backups of the same content?
Because the standard is deleted one day anyway. The renamed would remain, however, to be evtl. used in the future, if needed.
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.

cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: forced backup without special name

Post by cmb » Wed Aug 13, 2014 3:25 pm

Tata wrote:Because the standard is deleted one day anyway. The renamed would remain, however, to be evtl. used in the future, if needed.
Yes, but why would we need a second standard backup. As it's now (TRUNK), a user can choose whether he want's a standard backup (YYYYMMDD_HHMMSS_content.htm) or an extra backup (YYYYMMDD_HHMMSS_CHOSENNAME.htm). I think that is sufficient.
Christoph M. Becker – Plugins for CMSimple_XH

Tata
Posts: 3587
Joined: Tue May 20, 2008 5:34 am
Location: Slovakia
Contact:

Re: forced backup without special name

Post by Tata » Wed Aug 13, 2014 5:47 pm

I mean - just to keep one of backups for some future use without the risk that the file will be deleted by the system. If I decide to name a backup, I'll get a file YYYYMMDDHHMMSS_content.htm. But I also can decide to habe a file YYYYMMDDHHMMSS_MYBACKUP_content.htm for future use or to be deleted once by myself. Now, if I use some "restore" plugin, it will look for standardly named file and make the restoration. MYBACKUP remains untouched.
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.

svasti
Posts: 1659
Joined: Wed Dec 17, 2008 5:08 pm

Re: forced backup without special name

Post by svasti » Wed Aug 13, 2014 10:03 pm

Just do 2 backups in 1.6.3 right after another, one without name and one with a name.

Post Reply