Oct 30 2019 07:03 AM
Oct 30 2019 07:03 AM
We need to automatically Backup the Users Edge-Favorites as File (prefered HTML-Export/Import-Format) when doing an automated User-Data-Backup.
The Favorites are stored in JSON-Format in %APPDATALOCAL%\Microsoft\Edge Beta\User Data\Default\Bookmarks
There is a nice functionality in Edge edge://favorites/ to export all Favorites as HTML File. Exactly this Export as HTML-File I like to trigger (e.g. by a Backup-Script) when doing a Userdata-Backup of the Machine.
Is there a possibility to do this, e.g. like calling msedge.exe with an argument like "--export-Bookmarks-to-HTML=C:\BackupData\BookmarksBackup.html"
Oct 30 2019 03:07 PM
Hi @Gunnar Haslinger, are you trying to do this export / import as part of a system restore, or some other scenario where you need to have a domain policy or other automated solution? The favorites should import automatically if you have enabled sync for the user, and the user has added favorites in the past. I would like to better understand the context around why you are trying to export and import favorites automatically. Thanks - Elliot
Oct 31 2019 12:27 AM - edited Oct 31 2019 12:34 AM
@Elliot Kirk the Export/Import is not running as a system-restore or system-process, it is an Automated (daily) User-Backup running as automated Process executed in User-Context (typically before User-LogOff). But LocalAppData-Folder is not covered in the User-Backup (AppData\Roaming would be) and LocalAppData is way too big to include. Just the Bookmarks should be included.
Current Solution with old EdgeHTML is the Tool EdgeBackup which exactly does this - it can be executed to export the EdgeHTML Bookmarks to an HTML-File and put this HTML-File in the UserDataBackup of the machine.
If the User needs to restore the Bookmarks (e.g. because of moving to a new Computer) this can be done by the User manually. The HTML-File can be restored in any Browser (EdgeHTML, EdgeChromium, Firefox) we use.
Syncing with cloud is not an option, the Networks the Machines are connected to are air-gapped (no direct Ontenet-Access). Browser is used for Intranet-AccessOnly. And even if there would be Internet-Access, our Policy says users must not use these Cloud-Services.
Nov 20 2019 12:24 AMSolution
As there is no Solution provided by Microsoft, I created a Script (as a workaround). I published it here: https://github.com/gunnarhaslinger/Microsoft-Edge-based-on-Chromium-Scripts
Dec 11 2019 08:45 AM
@Gunnar Haslinger Many thanks, just tried your script and it works perfrctly and it will save me a great deal of messing around as I am testing Edge-Chrome and as we know favorites arent handled without using microsoft profile cloud sync - I posted another mention of this.
Mar 03 2021 10:07 PM
Apr 21 2021 11:34 PM