NOTE: Requires a backup of your old Chrome configuration directory.
The intent of this script is to save time by not having to reconfigure your extensions when you sign in with a clean Chrome config, and to transfer general things like cookies so you do not have to sign into everything again. This also copies flags you have enabled in chrome://flags
.
After deleting your old configuration from the normal location (e.g. ~/.config/google-chrome-beta
), open Chrome and sign in. Do this for every profile as necessary. You need to determine which profile directory ('Default' or 'Profile X') belongs to whom in both the old config and the new. Then you can use this script.
Example usages:
./reconstruct-chrome-profile.sh ./old-chrome-config-backup Default Default
./reconstruct-chrome-profile.sh ./old-chrome-config-backup 'Profile 3' 'Profile 2'