Author Topic: b4: No backups of files  (Read 1355 times)

jnairb

  • Senior Community Member
  • Posts: 221
  • Hero Points: 11
b4: No backups of files
« on: September 27, 2018, 09:42:04 pm »
With beta 4, if I turn off "Limit size of backups", I don't seem to get any backups.

Starting with default config (vs +new -sc junk, then cancel from config wizard) and changing only that setting under File Options/Backup, I edit a file (~700KB), make a change and save. Opening Backup History tool window doesn't show anything but the current file version.

Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2388
  • Hero Points: 133
Re: b4: No backups of files
« Reply #1 on: September 28, 2018, 10:23:36 am »
Reproduced.  Thanks for catching this.

Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2388
  • Hero Points: 133
Re: b4: No backups of files
« Reply #2 on: September 28, 2018, 11:13:34 am »
This is fixed, I don't know if it's in time for B5 or not.

jnairb

  • Senior Community Member
  • Posts: 221
  • Hero Points: 11
Re: b4: No backups of files
« Reply #3 on: October 12, 2018, 09:39:53 pm »
Not quite fixed in beta 6.
It only works if I go into Options and turn on Limit size of backup, Apply, and then turn it back off.
Otherwise, if I upgrade from my v22 (22.0.2) configuration with Limit size of backup turned off, backups are still not occurring.

Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2388
  • Hero Points: 133
Re: b4: No backups of files
« Reply #4 on: October 15, 2018, 03:14:37 pm »
Hm, we can't reproduce this here.  Clark and I both tried, and I tried with and without transferring configuration, and turning limit size on and off seems to behave.  I'm not sure what the difference could be.

jnairb

  • Senior Community Member
  • Posts: 221
  • Hero Points: 11
Re: b4: No backups of files
« Reply #5 on: October 15, 2018, 04:12:37 pm »
I just reproduced it with the following steps. I don't know if each of the steps is necessary, but it's just what I attempted in my first reproduce attempt:

1) Start SlickEdit 22.0.2 with new configuration (vs +new -sc junk)
2) Cancel config wizard, open options, and change the following Backup options
  -- set Backup directory path to a directory under my Windows TMP dir
  -- set Number of backups to keep for each file to 20
  -- set Limit size of backup to off
3) Open Backup History tool window
4) Create a new file, enter some text, and save (Ctrl-S)
5) Repeat 20 times -- modify file, and resave. At the end I had versions 20 through 1 in the backup history.
6) Close the file, then close SlickEdit.
7) Start beta 6 (haven't installed rc1 yet) with the same new config directory.
8) Open the test file, modify it and save.
At that point, I did not see an updated entry in the Backup History window.

9) Open Options, change Limit backup size to On, Apply, change back to Off, and select OK to save/dismiss options dialog.
10) Modify the test file one more time and save.
At this point, I now get version 21 in Backup History.

I'm running on Windows 10 Enterprise (x64). TMP dir and file I edited are on C: drive (NTFS).

jnairb

  • Senior Community Member
  • Posts: 221
  • Hero Points: 11
Re: b4: No backups of files
« Reply #6 on: October 15, 2018, 04:30:06 pm »
Installed RC1 and verified the problem still occurs.
- Deleted test 23.0.0 config directory, started RC1 to allow it to upgrade the test 22.0.2 config, opened same test file, modified, and saved. No update to version history until I turn Limit size on and back off.

Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2388
  • Hero Points: 133
Re: b4: No backups of files
« Reply #7 on: October 15, 2018, 04:36:34 pm »
2) Cancel config wizard, open options, and change the following Backup options
  -- set Backup directory path to a directory under my Windows TMP dir


I don't think this is probably the problem, but I don't think it's a very good idea.  I'm not sure if Windows clears any of this out on it's own.

Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2388
  • Hero Points: 133
Re: b4: No backups of files
« Reply #8 on: October 15, 2018, 04:43:10 pm »
Reproduced.  Interesting.  Thanks for the detailed set of steps.

jnairb

  • Senior Community Member
  • Posts: 221
  • Hero Points: 11
Re: b4: No backups of files
« Reply #9 on: October 15, 2018, 04:56:15 pm »
Re backup under TMP. For my purposes, it wouldn't really matter too much if it were cleared by Windows, but I don't think I've ever noticed it cleaning that out. I rarely run Windows disk cleanup however, but I have occasionally, and still haven't noticed any issues.

Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2388
  • Hero Points: 133
Re: b4: No backups of files
« Reply #10 on: October 16, 2018, 10:10:21 am »
We tend to set the backup history limit higher than the default so we have a lot of history.

Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2388
  • Hero Points: 133
Re: b4: No backups of files
« Reply #11 on: October 16, 2018, 10:33:52 am »
Fixed for RC2.  Thanks for catching this and the detailed set of instructions how to reproduce it.