View Single Post
Old Mar 24th, 2008, 8:48 PM   #10
estergon
Newbie
 
estergon's Avatar
 
Join Date: Mar 2008
Posts: 8
Rep Power: 0 estergon is on a distinguished road
Re: Spaces in path names

I just wanted to share my final script which works just fine.
Since the installed add-ons are not compatible for both linux and windows at a time, using same profile folder with -ProfileManager was a bit of useless thus I really needed this thing:

#!/bin/sh
DATE=`date +%F-%H%M%S`
HDA1="/mnt/hda1/Documents and Settings/username/Application Data/Mozilla/Firefox/Profiles/profile0.default"
HDA6=/home/user/.mozilla/firefox/profile1.default
mv -v $HDA6/bookmarks.html $HDA6/bookmarkbackups/bookmarks-$DATE.html
cp -v "$HDA1"/bookmarks.html "$HDA1"/bookmarkbackups/bookmarks$DATE.html
mv -v "$HDA1"/bookmarks.html $HDA6/bookmarks.html
firefox
cp -v $HDA6/bookmarks.html "$HDA1"/bookmarks.html

I hope it is useful for somebody else out there too
__________________
ESTRAGON: We've lost our rights?
VLADIMIR: (distinctly) We got rid of them.
estergon is offline   Reply With Quote