Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Option to backup settings automatically #317
I made some changes in preferences (e.g. add an extra file in sync-settings), and then close and reopen Atom.
sync-settings: Latest backup is already applied.
Only when I manually edit anyfile in my gist, the sync setting dialog shows on startup.
It probably depends on your use case. If you use automatic backups with multiple computers you will likely run into problems that after backing up from A the automatic backup of B would overwrite the previous changes. Therefore it is currently not done automatically. But I can see in a single machine setup that it would be convenient. Maybe someone can work on a pull request for that.
changed the title from
Sync-setting did not sync
Option to backup settings automatically
Nov 29, 2016
Maybe something (optional) like this: when open Atom, automatically restore the backup and immediately after make a new backup; then when some change occur (or if is possible detect "close Atom" event), it do a new backup silently.
So when you open Atom in other computer it will do this again, syncing settings without need to prompt anything and reducing chances to accidental overwrite (what I believe will only occur if you open Atom simultaneously in other computer after make some change in first opened instance)
added a commit
Jun 24, 2017
added a commit
Nov 23, 2017
referenced a pull request that will
Nov 23, 2017
Any movement on this? I really want this feature.
I won't lie and say I understand everything in the referenced PR, but as long as the option to automatically trigger backup defaults to off, this shouldn't be too harmful. When setting up a new computer, install this package, restore from backup, turn the option on (or maybe it got turned on by the restored settings?) and you should be fine.
If one of the computers is offline and thus can't backup, you might of course run into problems later if you change any settings there. (Although I already encounter issues multiple times a week because I forget to backup at work or at home, hehe.)
But as long as automatic backup being on and backup failing triggers a visible error (or, if it has to be, a warning), that should be OK I think.
If this doesn't get fixed, I'm tempted to learn enough Atom to write a package that uses Git to sync settings, not just Gist, so it can error out when restoring from backup isn't a simple fast-forward merge. I can't live without a settings sync package, but it's also pretty aggravating that I have to backup manually, and that backup/restore with a conflict between local and remote doesn't merge in any clean way. (The number of times I've had to scroll through the history of my syncing Gist to find out what package is missing from my current computer because of this...)