PowerToys icon indicating copy to clipboard operation
PowerToys copied to clipboard

Backup and Restore PT Settings (import/export)

Open mikeparkie opened this issue 4 years ago • 58 comments

Add a backup and restore feature, Yes I can backup the appdata folders etc, But it would be useful to add a backup and restore function, so the configs can be stored in an xml and saved and restore with a quick import.

crutkas; closely related to Settings sync #3381

mikeparkie avatar Oct 29 '19 20:10 mikeparkie

For now, the settings can be found in this folder cd %USERPROFILE%\AppData\Local\Microsoft\PowerToys

bilogic avatar Jun 29 '20 16:06 bilogic

Isn't the Local folder supposed to be non-movable? Why aren't the backup settings in Roaming?

github-account1111 avatar Aug 11 '20 07:08 github-account1111

...or can be quickly imported into a new installation of Powertoys

Jay-o-Way avatar Sep 05 '20 16:09 Jay-o-Way

How is this a "New Powertoy"?

Jay-o-Way avatar Sep 05 '20 16:09 Jay-o-Way

+1 on this. As an alternative solution, I would like it it could sync settings with my Microsoft account the way Sticky Notes and other apps do.

NSExceptional avatar Sep 13 '20 23:09 NSExceptional

+1 on this. As an alternative solution, I would like it it could sync settings with my Microsoft account the way Sticky Notes and other apps do.

A local backup (only), is too easy to forget & gets trashed by a clean install - MSA sounds a good way to go !

Tom999Hall avatar Oct 03 '20 09:10 Tom999Hall

I think running in Portable Mode (#598) would solve this.

github-account1111 avatar Oct 19 '20 22:10 github-account1111

Considering to close this in favor of https://github.com/microsoft/PowerToys/issues/3381

enricogior avatar Feb 09 '21 16:02 enricogior

@enricogior Settings sync is not an option for everyone, I also use it at work where internet access is restricted to specific applications, and where I don't use my personal account.

Can we have both?

NSExceptional avatar Feb 12 '21 17:02 NSExceptional

It looks there is no sight about this issue

womeimingzi11 avatar Aug 25 '21 02:08 womeimingzi11

I was about to post a new feature request to allow backup and import of settings but saw this (very) old post - With Windows 11 due for release soon I would like to do a clean reinstall of Windows 11 and restore all my PT settings and tweaks.

belliez avatar Sep 06 '21 11:09 belliez

Personally I create a junction from somewhere in my onedrive folder to the power toys AppData folder... When I change computer I copy the onedrive folder to the AppData and recreate the junction, then install power toys. My settings are always backed-up.

Allowing a custom config location would make this a lot easier.

billybraga avatar Oct 08 '21 10:10 billybraga

I would like to add that I would also like an import and export function.

I use PT in a VDI environment where the installation is lost after rebooting, it gets kinda old to reset all my settings every morning.

I mainly use PT for the Fancy zones. but I would like to be able to use the other functions. at this moment, it is just too much work to setup all settings every morning.

anyways, thanks for listening to me complaining.

RedDevilGiant avatar Nov 03 '21 08:11 RedDevilGiant

A text/json file with settings like Terminal, VSCode and Powershell would be excellent. I have all my preferences stored in GitHub and clone those down to new systems(which is a regular occurrence for me). I install powertoys via winget, so being able to do the setup in that environment(and iterate it) would be awesome.

m3Labs-io avatar Nov 06 '21 17:11 m3Labs-io

I'm wondering why don't we save the settings to [%USER]\Documents, so we can use OneDrive to backup?

AkazaRenn avatar May 03 '22 22:05 AkazaRenn

I'm wondering why don't we save the settings to [%USER]\Documents, so we can use OneDrive to backup?

Because that is a big assumption. I have three different devices (from a full desktop to a surface pro) and, just like for Windows Settings, I actually want them to be different.

Now these settings files are not very big. But I remember when Feedback Hub also stored files in a Onedrive folder. Took huge amount of space and I was not happy about that.

In general I dare to say that these kind of assumptions are the cause of many complaints. It can look arrogant or not-user-based to many people.

Jay-o-Way avatar May 04 '22 05:05 Jay-o-Way

Took huge amount of space and I was not happy about that.

I also don't enjoy a cluttered Documents folder. It's for my documents. Not my game saves, Rockstar! And not my Powershell settings, Microsoft!

It's almost as bad as programs saving to %USERPROFILE% instead of %APPDATA% on Windows as if it were Linux.

github-account1111 avatar May 04 '22 07:05 github-account1111

@Jay-o-Way Such problems could usually be easily solved by having a toggle saying "save settings to Documents?" It's just most developers never considered such possibilities.

AkazaRenn avatar May 04 '22 12:05 AkazaRenn

I have a total of 21 keyboard's remaps I have three W10 PCs I have to reinstall W10 twice a year on each PC on average I have Headaches every time with Powertoys

Thanks for a non-existent stupid "per utility" SAVE button.

I have to remember all of that shortcuts, so I managed a screenshot of them to be hosted on DropBox, and I'll retype them all 21 on average SIX TIMES A YEAR, totaling 126 possible errors !!!

AlainCh2 avatar Jun 05 '22 10:06 AlainCh2

@AlainCh2 Personal setups are very different. Why do you need to re-install Windows twice a year?

Quote from earlier comment:

For now, the settings can be found in this folder cd %USERPROFILE%\AppData\Local\Microsoft\PowerToys

Jay-o-Way avatar Jun 05 '22 11:06 Jay-o-Way

@AlainCh2 Personal setups are very different

????? What does that mean?

I need to "export" all the Remap from one system to the other I don't need to dig into whatsoever MS invented under Users

@AlainCh2 Why do you need to reinstall Windows twice a year?

I installed this W10 afresh on Jan 28 - Now on June 5: It does not launch anymore Control Panel > you can have it only using: open containing folder on any Cpl lnk The TskMgr gets stuck every time you change a task > you must restart it with ProcessXp64 Thunderbird keeps working but after a few hours to keep getting mails you need to reboot > no other way if you want your mails These are a few that I remember, I lose a piece for each W.Update :-D > but never the same on each PC

AlainCh2 avatar Jun 05 '22 12:06 AlainCh2

Why do you need to re-install Windows twice a year?

Windows breaks all the time even with the most diligent and minimal use. That's pretty common knowledge.

It's come to the point where I had to write a personal deployment script to make clean installs take as few manual steps as possible because I have to do them so frequently.

github-account1111 avatar Jun 08 '22 13:06 github-account1111

@AlainCh2 @github-account1111 Sorry to hear that. Glad I don't have issues like that.

Jay-o-Way avatar Jun 08 '22 21:06 Jay-o-Way

@Jay-o-Way you probably do, you just don't utilize the parts of the OS that get gradually borked.

github-account1111 avatar Jun 09 '22 02:06 github-account1111

Another idea: an option to choose where the settings files will be saved, so users can choose to save it to OneDrive or not, or even have multiple saves in OneDrive for different setups.

AkazaRenn avatar Jul 04 '22 15:07 AkazaRenn

Another idea: an option to choose where the settings files will be saved, so users can choose to save it to OneDrive or not, or even have multiple saves in OneDrive for different setups.

I hate OneDrive, and it's not present on any of the Computers I'm managing.

Just imagine if this is an interesting option for the people out there !!!

AlainCh2 avatar Jul 05 '22 11:07 AlainCh2

For now, the settings can be found in this folder cd %USERPROFILE%\AppData\Local\Microsoft\PowerToys

@crutkas @bilogic Sorry for disturbing! I raise an issue to ask about settings backup related-#19779 . But no one reply. So, till now, I'm still confusing about how to import/export settings? Is there any documents to discribe the steps of backup progress or something can explain the whole Directory Structure Powertoys settings used?

Eagering & wondering for help.

SteinwaySons avatar Aug 07 '22 09:08 SteinwaySons

@SteinwaySons

  1. open a command prompt and type cd %USERPROFILE%\AppData\Local\Microsoft\PowerToys
  2. then type start.
  3. backup: make a copy of the folder that opens up, restore: overwrite your backup into the folder

bilogic avatar Aug 07 '22 12:08 bilogic

@bilogic I have a question.

backup: make a copy of the folder that opens up, restore: overwrite your backup into the folder

Base on this operation, could my backup file occur compatible issue caused by different Powertoys versions?

SteinwaySons avatar Aug 07 '22 12:08 SteinwaySons

@SteinwaySons

i have no idea nor control, but assuming that it is incompatible, does it create a problem you can't solve?

bilogic avatar Aug 07 '22 12:08 bilogic