firefox-tmpfs-daemon in an init script for Debian based linux systems. Available from github. It synchronizes all ~/.mozilla directories to tmpfs at boot and stop time.
Please note that the current version does not auto start! I have not had the time to track this issue down. If you find it, please issue a pull request.
Inspired by AUR.
Installation
- Download the latest version with git
- Copy ffox-tmpfs to /etc/init.d
- chmod 775 /etc/init.d/ffox-tmpfs
- Copy firefox-tmpfs.conf to /etc
- update-rc.d ffox-tmpfs defaults
- Add a tmpfs to your fstab file ( see example )
- Edit firefox-tmpfs.conf to point to your tmpfs, if not /tmp
- Add cron entry to back up profile periodically ( see example )
Example tmpfs entry
ramdrive /tmp tmpfs size=1G 0 0
Adjust size to be amount of ram you wish to use. Tmpfs does not survive powerloss! Make sure that programs do not store data there if you want it kept. Otherwise, create a new folder to use as the tmpfs, such as /media/ramdrive.
Example cron entry
30 * * * * service ffox-tmpfs save
Run every thirty minutes and save profile.
The default options listed in the installation are followed by the install.sh script, except for getting the repository. Use at your own risk!