Skip to content

Instantly share code, notes, and snippets.

@soulhotel
Last active November 11, 2024 04:53
Show Gist options
  • Save soulhotel/b65294053bd4da3272c58686cad427c3 to your computer and use it in GitHub Desktop.
Save soulhotel/b65294053bd4da3272c58686cad427c3 to your computer and use it in GitHub Desktop.
BackupFox for Windows OS (backup your UserChrome Profiles with one click)
simple .bat application that will copy your userchrome profile from its main location to a backup location.
this cuts out the need for downloading another application
or having to dig through file explorer to copy paste and sort your info
simply download this bat or make it paste the text below in notepad
change the name in the file to your Windows Name and backup location
save it as a .bat file
@soulhotel
Copy link
Author

soulhotel commented Feb 28, 2024

file is here: https://gist.github.com/soulhotel/2b4cc2894a5ce811fe524c8d6ed72bea

or copy this into notepad:

@echo off &color 0e && Title [Activating Operation: Backup Fox]

echo Operation: Backup Fox.. Now commencing...
echo.
echo this operation is backing up your Firefox UserChrome Profile from the main drive(C) to a backup drive(E) of your choice
echo.
echo this is only for Windows OS, where Firefox is usually located in C drives appdata folder, E drive is what I use
echo.
echo open this IN NOTEPAD to adjust where you want the backup to go by changing it in the xcopy line below
echo then save it as 'whatever.bat'
echo.
echo you can backup more than one Profile by making another xcopy line with the Profiles file path
echo.
echo this cuts out the need for downloading other applications
echo or having to dig through file explorer to copy paste and sort your info
echo.
echo dont forget to change your name in file path you're obviously not Jinn (me)
echo.
pause

cls
color 0e & Title [Backing up!]

echo copying
echo copying
echo still copying
echo this will take a minute
echo a work in progress
echo a ship in motion
echo a jet in the sky
echo many files on the fly
echo almost done..
echo.
pause

DEL /q /s E:\Firefox\Profiles\*.*
xcopy C:\Users\imjin\AppData\Roaming\Mozilla\Firefox\Profiles\9du35fxn.default-release\chrome\* E:\Firefox\Profiles\9du35fxn.default-release\chrome\* /Y /Q /S /E /I /C
xcopy C:\Users\you\AppData\Roaming\Mozilla\Firefox\Profiles\yourprofile\chrome\* E:\Firefox\Profiles\yourprofile\chrome\* /Y /Q /S /E /I /C

cls
color 0e & Title [Operation Successful!]

echo
ECHO.
echo.
echo Operation successful! Backup of Userchrome Profiles completed on %Date% %Time% ..
echo you may close this window ..
echo.
pause

@soulhotel
Copy link
Author

back.firefox.userchrome.profiles.with.one.click.mp4

@soulhotel
Copy link
Author

this will do the opposite, bring chrome from backup, into your default firefox location.

@echo off &color 0e && Title [Activating Operation: RESTORE FIREFOX]

echo Operation: RESTORE FIREFOX CHROME PROFILE . . Now commencing . . 
echo.
echo this will import your user chrome profile from its backup location, to your current firefox install
echo be careful as to edit the locations below, make sure you are have the backup location correctly linked first,
echo then the current firefox location after, should be, C - Users - You - App Data - etc
echo.
echo ideally this would be used when you have a fresh install of windows and you want to bring in your backed up chrome folder
echo back into firefox, with one click
pause

echo copying

xcopy E:\Firefox\Profiles\youreprofile\chrome\* C:\Users\imjin\AppData\Roaming\Mozilla\Firefox\Profiles\yourprofile\chrome\* /Y /Q /S /E /I /C
xcopy E:\whereever your chrome backup is\chrome\* C:\Users\youcanputitondesktoptoo\Desktop\* /Y /Q /S /E /I /C

cls
color 0e & Title [Operation Successful!]

echo
ECHO.
echo.
echo Operation successful! Import Completed completed on %Date% %Time% . .
echo you may close the window . .
echo.
pause

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment