ProfileBackup

From Mudlet
Revision as of 10:19, 7 July 2021 by Ada (talk | contribs) (Add steps for Linux with Dropbox)
Jump to navigation Jump to search

Keeping your Mudlet Profile safe

We spend countless hours tinkering with our triggers and scripts and all of that work is saved in our profile. Mudlet does its part in creating backup copies of your profile and even goes as far as autosaving your changes every so often!

However, all of that will be for nought if your hard drive crashes, or your computer is stolen, or you forgot it at the airport, or you literally threw it out the window because rage quitting a raid-gone-bad wasn't enough! Thankfully there's a solution to that. We can sync our Mudlet profiles with an online service and even have it available on multiple computers on top of it!

Here's the rundown on how to do it:

  1. Install and setup your favourite file sync solution (Tresorit, Dropbox, OneDrive, etc.)
  2. Locate your Mudlet profile with the getMudletHomeDir() function
  3. Close Mudlet, open the location we got in step 2 in your file explorer
  4. Move that folder to the place you setup your file sync solution from step 1
  5. Link the folder back to its original location so Mudlet can continue using it

Example on Windows with OneDrive

Windows 10 usually comes with OneDrive pre-installed and it'll let you sync your Documents, Pictures, Vidoes, etc. to the cloud as long as you're signed in with your Microsoft account. Here's how I would go about with keeping my Mudlet profile safe in it:

  1. Install and set up OneDrive
  2. I put getMudletHomeDir() in an alias to locate my Mudlet profile, it gave me C:\Users\Ada\.config\mudlet\profiles\Achaea
  3. I closed Mudlet and opened that location in Windows Explorer
  4. I moved the Achaea folder to my OneDrive which was at C:\Users\Ada\OneDrive
  5. I opened the Windows Command Prompt (Start > Windows System > Command Prompt > Right-Click/More/Run as administrator) and issued the following commands:
    • cd C:\Users\Ada\.config\mudlet\profiles\
    • mklink /d Achaea C:\Users\Ada\OneDrive\Achaea

And that was it! I can now use Mudlet and my profile is synchronized with my OneDrive account whenever I make any changes.

Example on Linux with Dropbox

  1. Install and set up Dropbox
  2. I put getMudletHomeDir() in an alias to locate my Mudlet profile, it gave me /home/ada/.config/mudlet/profiles/Achaea
  3. I closed Mudlet and opened that location in the terminal
  4. I moved the Achaea folder to my Dropbox which was at /home/ada/Dropbox with the command:
    • mv /home/ada/.config/mudlet/profiles/Achaea /home/ada/Dropbox/ # the trailing slash is important!
  5. I linked the folder back to its original location with the command:
    • ln -s /home/ada/Dropbox/Achaea /home/ada/.config/mudlet/profiles/Achaea

And that was it! I can now use Mudlet and my profile is synchronized with my Dropbox account whenever I make any changes.

Example on MacOS with <x>

TBD