11# Mackup™
22
3- Keep your application settings in sync.
3+ Backup and keep your application settings in sync.
44
55## Table of contents
66
77- [ Mackup] ( #mackup )
88 - [ Table of contents] ( #table-of-contents )
9- - [ WARNING] ( #warning )
109 - [ Quickstart] ( #quickstart )
1110 - [ Usage] ( #usage )
1211 - [ What does it do] ( #what-does-it-do )
13- - [ Bullsh\* t, what does it really do to my files] ( #bullsht-what-does-it-really-do-to-my-files )
14- - [ Backup] ( #backup )
15- - [ Restore] ( #restore )
16- - [ Uninstall] ( #uninstall )
12+ - [ Copy mode] ( #copy-mode )
13+ - [ Link mode] ( #link-mode )
1714 - [ Supported Storages] ( #supported-storages )
1815 - [ Unsupported Storages] ( #unsupported-storages )
1916 - [ Supported Applications] ( #supported-applications )
@@ -24,19 +21,8 @@ Keep your application settings in sync.
2421 - [ What's up with the weird name] ( #whats-up-with-the-weird-name )
2522 - [ Where can I find more information] ( #where-can-i-find-more-information )
2623
27- ## WARNING
28-
29- ⚠️ Mackup does not work correctly in macOS Sonoma and all later versions,
30- since it does not support symlinked files for preferences. Running this code
31- will destroy all user preferences without a means for recovery. For more
32- information, see issues [ #1924 ] ( https://github.com/lra/mackup/issues/1924 )
33- and [ 2035] ( https://github.com/lra/mackup/issues/2035 ) .
34-
3524## Quickstart
3625
37- If you have [ Dropbox] ( https://www.dropbox.com ) installed and want to use it to
38- save your config files, that's super easy.
39-
4026On macOS, if you want an easy install, you can install
4127[ Homebrew] ( http://brew.sh/ ) and do:
4228
@@ -50,10 +36,6 @@ mackup backup
5036
5137If not running macOS, or you don't like Homebrew, you can use [ pip] ( https://pip.pypa.io/en/stable/ ) .
5238
53- > Note: The below command will check if a previous version of Mackup
54- > is already installed on your system.
55- > If this is the case, it will be upgraded to the latest version.
56-
5739``` bash
5840# Install Mackup with PIP
5941pip install --upgrade mackup
@@ -62,13 +44,7 @@ pip install --upgrade mackup
6244mackup backup
6345```
6446
65- > On ** Ubuntu** , pip will install to the current user's home
66- > directory rather than system-wide. Because of this, when
67- > installing pip on ** Ubuntu** you will need to run ` pip install `
68- > with the ` --system ` flag as well (on other platforms this is not
69- > needed)
70-
71- You're all set and constantly backed up from now on.
47+ You're all set and can back up from now on.
7248
7349Next, on any new workstation, do:
7450
@@ -88,15 +64,26 @@ You can find more detailed instructions in [INSTALL.md](INSTALL.md).
8864
8965` mackup backup `
9066
91- Backup your application settings .
67+ Back up your application files. Copy your local config files into the Mackup folder .
9268
9369` mackup restore `
9470
9571Restore your application settings on a newly installed workstation.
72+ Copy config files from the Mackup folder to your home folder.
73+
74+ ` mackup link install `
9675
97- ` mackup uninstall `
76+ Move your local config files into the Mackup folder,
77+ and link them to their original place.
78+
79+ ` mackup link `
80+
81+ On another workstation, links local config files from the Mackup folder.
82+
83+ ` mackup link uninstall `
9884
9985Copy back any synced config file to its original place.
86+ Removes the links and copies config files from the Mackup folder back into your home.
10087
10188` mackup list `
10289
@@ -108,49 +95,73 @@ Get some help, obviously...
10895
10996## What does it do
11097
111- - Back ups your application settings in a safe directory (e.g. Dropbox)
112- - Syncs your application settings among all your workstations
113- - Restores your configuration on any fresh install in one command line
114-
11598By only tracking pure configuration files, it keeps the crap out of your
11699freshly new installed workstation (no cache, temporary and locally specific
117- files are transfered ).
100+ files are transferred ).
118101
119- Mackup makes setting up the environment easy and simple, saving time for your
120- family, great ideas, and all the cool stuff you like.
102+ Mackup makes setting up the environment easy and simple.
121103
122- ## Bullsh\* t, what does it really do to my files
104+ There are 2 modes of operations: copy mode and link mode.
105+
106+ ### Copy mode
107+
108+ Copy mode is used to back up and restore your files.
109+ The files are backed up into the configured Mackup folder,
110+ which can be in Dropbox, iCloud, or wherever you configure it.
111+
112+ It is covered by the 2 commands:
113+
114+ - ` mackup backup `
115+ - ` mackup restore `
116+
117+ ### Link mode
118+
119+ Link mode is used to move your config files into the Mackup folder,
120+ and link them back to their original place.
121+
122+ This mode is useful if you are using multiple workstations,
123+ and want to keep your application settings in sync at all times.
124+
125+ - Backs up your application settings in a safe directory (e.g. Dropbox)
126+ - Syncs your application settings among all your workstations
127+ - Restores your configuration on any fresh install in one command line
123128
124129Let's take ` git ` as an example. Your settings for ` git ` are saved in your home
125130folder, in the ` .gitconfig ` file.
126131
127- ### Backup
132+ It is covered by the 3 commands:
133+
134+ - ` mackup link install `
135+ - ` mackup link `
136+ - ` mackup link uninstall `
137+
138+ #### ` mackup link install `
128139
129- If you have Dropbox, these things happen when you launch ` mackup backup ` :
140+ If you have Dropbox, these things happen when you launch ` mackup link install ` :
130141
1311421 . ` cp ~/.gitconfig ~/Dropbox/Mackup/.gitconfig `
1321432 . ` rm ~/.gitconfig `
1331443 . ` ln -s ~/Dropbox/Mackup/.gitconfig ~/.gitconfig `
134145
135146Now your ` git ` config is always backed up and up to date on all your workstations.
136147
137- ### Restore
148+ #### ` mackup link `
138149
139- When you launch ` mackup restore ` , here's what it's really doing:
150+ When you launch ` mackup link ` , here's what it's really doing:
140151
1411521 . ` ln -s ~/Dropbox/Mackup/.gitconfig ~/.gitconfig `
142153
143154That's it, you got your ` git ` config setup on your new workstation.
144155
145156` mackup ` does the same for any supported application.
146157
147- ### Uninstall
158+ #### ` mackup link uninstall `
148159
149160You can revert all your files to their original state.
150161
151162``` bash
152163# Just run this
153- mackup uninstall
164+ mackup link uninstall
154165```
155166
156167This will remove the symlinks and copy back the files from the Mackup folder in
0 commit comments