Can't change backup path under Settings->Preferences->Backup->Session snapshot and periodic backup
-
Seems that this is still hardcoded into program
That’s bad, since this backup-system fills up users roaming profile really fast if (s)he uses npp for more than just a few files. I had to turn that off for my copy for just that reason.
-
Note that, the file backup feature of the NPP Backup dialog does allow you to save backup versions of individual files in a location that you specify. Just check the Custom Backup Directory box and enter a directory path in the Directory: box.
If you set that up, then you should be able to get back to your files minus the very last edit you made before saving. If you could write a macro to, say, insert and then delete a space, then save for every open file, then you’d have the latest versions of those files in the backup directory.
Not sure if this will help you or not, but you might want to try out the Session Manager plugin. It lets you save multiple sessions (groups of files) by name in the NPP install directory’s plugins\Config\SessionMgr\sessions directory. If you use the plugin, then uncheck the Remember current session for next launch checkbox in the NPP Backup dialog. This only saves the names of the files in each session, not the files themselves.
-
@Timo-P said:
Seems that this is still hardcoded into program
That’s bad, since this backup-system fills up users roaming profile really fast if (s)he uses npp for more than just a few files. I had to turn that off for my copy for just that reason.
That is if the “user directory” is under the profile.
If it is in %programfiles%\npp etc. subdirectory and user doesn’t have write permission there then that’s again a problem. This makes this backup-feature useless for any large organization where users are not admins to their workstations.
-
I just made a softlink from the backup dir to another drive in my computer. Since i’m working with confidential information I needed to get the temporary backup to an encrypted drive.
The method I used was based on this website: http://www.howtogeek.com/howto/16226/complete-guide-to-symbolic-links-symlinks-on-windows-or-linux/
in short: make a directory called backup where you want your backups of notepad to be stored. Than copy the files that are in there over to this directory. Delete the original backup directory from the path in notepad++. Then use the Link Shell Extension to make a softlink from the new location to the old location (which is in the settings of notepad++)
-
Hi all!
To manage this question, just go to settings - preferences - CLOUD
Then, paste/type the desired path on: “Set your cloud location path here” textbox.It will miraculously and automatically fill out “backup location” disabled box from Session snapshot and periodic backup frame.
-
Thank you! That fixed my issue. NPP backups from different computers are now saved to my encrypted cloud storage.
-
@Henk-Bakker Thank you!
I was able to work around the application limitation by using your suggestion. I used a symlink to re-direct backup notes to a dropbox folder. Now I can view notes on my laptop that I took on my desktop and didn’t get a chance to save. -
@diego-sayron
Perfect, if non-intuitive solution. You may want to copy your existing backup files from ‘%userprofile%\Appdata\Roaming\Notepad++\backup’ to the new location. -
The CLOUD solution is great!
Important note, when the specified cloud location is unavailable, this happens:
- Settings for Cloud and Backup revert to default.
Then when the location is available again:
- Settings for Cloud and Backup return to the custom values.
So a full solution may involve a cleanup routine or script.
-
@kitchin15
These changes are only take place after restarting NPP. In other words, if NPP is open when the location becomes unavailable, NPP silently fails to make the periodic backups. Other scenarios are similar, unless NPP is restarted.