• Login
Community
  • Login

Ability to set session snapshot and period backup directory in NotePad++

Scheduled Pinned Locked Moved General Discussion
4 Posts 3 Posters 4.7k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S
    SundayFunday
    last edited by SundayFunday Jul 31, 2017, 10:26 PM Jul 31, 2017, 10:24 PM

    Is there a way to set the snapshot and period backup directory (Settings -> Preferences -> Backup)?

    Currently, it is set to:
    C:\Users\<USER>\AppData\Roaming\Notepad++\backup\

    I am wanting to set it to my OneDrive folder because of a recent incident which caused my computer to be reimaged. I had notepad++ tabs that were not saved and those files ended up being lost. I am thinking that if the location of the default backup is set to OneDrive then this could have been prevented.

    1 Reply Last reply Reply Quote 1
    • C
      cipher-1024
      last edited by Aug 1, 2017, 1:21 AM

      OK this isn’t as dumb of a question as I thought :) I always assumed you could edit the Backup Path, but I can’t on my machine. I couldn’t find the path string stored in any of the notepad directories either. Maybe someone will come along with an answer but if not, I thought you could easily add that directory to your OneDrive sync. From the numerous angry comments in this thread on the OneDrive support site, that’s not easy either. However there was one post that said you could add a directory to your OneDrive this way:

      *A Workaround easiest, although it would be a useful feature.
      Find the Address of the folder you want to be synced. (ie. C:\Games). Copy it.

      Find the OneDrive location you wish for it to sync to. Hold shift and right click. On the context menu, click open command window here. In it type “mklink /j “YourCustomFolderName” “Address of Location(i.e. C:\Games)””, without the outer punctuation marks.

      This is like a shortcut that tells any programs that look there to look at another directory.
      This will sync anything inside the address you tell it to the folder created in a onedrive directory.*

      I don’t know if that works, I don’t use OneDrive, but you can try it out if you’re feeling adventurous. You can always just delete the link if it doesn’t work.

      1 Reply Last reply Reply Quote 0
      • C
        Claudia Frank
        last edited by Aug 1, 2017, 11:41 AM

        This is from memory from the last time I’ve tested it.
        Afaik you have 4 possible ways to get this working (all with pro and cons)

        1. Use the custom backup directory from settings->preferences->backup,
          but this only useful if you save files, “new X” files will not be backed up.

        2. Use settings->preferences->cloud setting
          but this will store everything user related to notepad++ in the cloud, basically it creates
          C:\Users<USER>\AppData\Roaming\Notepad++ as E:\Notepad++ (E: supposed to be the OneDrive letter)

        3. As @cipher-1024 already pointed out use links to redirect a directory.
          mklink provides, afaik, hard links, junctions and soft links.
          Hard links, as of specification, can only be created on the same volume
          Junctions (NTFS only) can be create over different volumes
          Soft links, as junctions, but can also refer to network locations like smb (not to be confused
          with drives locally mapped like my E: example)

        4. Having a program/script like rsync (not sure if this exists on windows) which automatically syncs
          the folders.

        Cheers
        Claudia

        1 Reply Last reply Reply Quote 2
        • S
          SundayFunday
          last edited by Aug 1, 2017, 1:51 PM

          Thank you! Option 2 is what I was looking for!

          1 Reply Last reply Reply Quote 1
          1 out of 4
          • First post
            1/4
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors