Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

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

    General Discussion
    3
    4
    3651
    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.
    • SundayFunday
      SundayFunday last edited by SundayFunday

      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
      • cipher-1024
        cipher-1024 last edited by

        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
        • Claudia Frank
          Claudia Frank last edited by

          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
          • SundayFunday
            SundayFunday last edited by

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

            1 Reply Last reply Reply Quote 1
            • First post
              Last post
            Copyright © 2014 NodeBB Forums | Contributors