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
Profiles folder backup
- therube
- Posts: 21714
- Joined: March 10th, 2004, 9:59 pm
- Location: Maryland USA
Re: Profiles folder backup
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:
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
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
- BruceAWittmeier
- Posts: 3076
- Joined: June 9th, 2008, 10:53 am
- Location: Near 37.501685 -80.147967
Re: Profiles folder backup
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
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.
-
- Posts: 6435
- Joined: February 3rd, 2009, 6:29 pm
Re: Profiles folder backup
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
Robocopy
http://en.wikipedia.org/wiki/Robocopy
http://ss64.com/nt/robocopy.html
- BobbyPhoenix
- Posts: 280
- Joined: April 24th, 2014, 5:58 am
Re: Profiles folder backup
Do, or do not. There is no try.