Profiles folder backup

Discussion of general topics about Mozilla Firefox
Post Reply
snifferpro
Posts: 14
Joined: June 24th, 2008, 4:35 pm

Profiles folder backup

Post by snifferpro »

Anyone have a batch file or script that will copy the Firefox and Thunderbird Profiles either automatically, or manually that they would like to share?

I want to copy the profiles for Firefox and Thunderbird at shutdown with an alert if the copies fail?

Thanks
User avatar
therube
Posts: 21714
Joined: March 10th, 2004, 9:59 pm
Location: Maryland USA

Re: Profiles folder backup

Post by therube »

As a start, Profile folder - Firefox.

I'd think it would be easier to do at start up.
Backup, then start FF...

Maybe BACKUP9.EXE.
Throw the location of your profile to it.

Create a batch file that runs Backup9 & then starts up FF.

pseudo code:

Code: Select all

@echo off
echo Backing up FF Profile
set backuplocation=%appdata%\firefox\ff-profile (or whatever it might be)
set ff_exe=whereever_firefox.exe_mayhappentobe

backup9.exe /m /s %backuplocation%\*.* C:\FF-Backups

echo FF will start up in 3 seconds...
timeout.exe /t 3

start %ff_exe% %*
Fire 750, bring back 250.
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball CopyURL+ FetchTextURL FlashGot NoScript
User avatar
BruceAWittmeier
Posts: 3076
Joined: June 9th, 2008, 10:53 am
Location: Near 37.501685 -80.147967

Re: Profiles folder backup

Post by BruceAWittmeier »

I believe this works too but when executed a second time it updates the same directory.
It will create the temploc directory and <destdir> directory
Maybe that is ok -- what fits your needs.
This will duplicate the entire profile and all sub directories

In a DOS or command window enter:
c:\>
robocopy g:\firefox\<userprofile> J:\temploc\<destdir> /MIR

You might consider adding a date after completion to the destdir directory just to assure each backup is unique.

= = =
This will also work but you must close Firefox first -- it will fail on the lock file.
c:\>
xcopy g:\Firefox\<username> j:\tempstor\destdir /E /I
I often take a long windy road to my destination. Upon arrival, I wonder how I missed the shortcut.
morat
Posts: 6421
Joined: February 3rd, 2009, 6:29 pm

Re: Profiles folder backup

Post by morat »

XCOPY is a poor choice for any kind of backup script. It's buggy. I had trouble with XCOPY and a creation time field bug.

Robocopy
http://en.wikipedia.org/wiki/Robocopy
http://ss64.com/nt/robocopy.html
User avatar
BobbyPhoenix
Posts: 280
Joined: April 24th, 2014, 5:58 am

Re: Profiles folder backup

Post by BobbyPhoenix »

Do, or do not. There is no try.
Post Reply