Also, here's a command-line program to perform the same operation. Does not have any external dependency, and it is statically linked:
Download Here.
To run this without user intervention, insert the path to which you want to backup in a single file, for example, called path.txt, and invoke it like this:
[tt]./mozbackup-cmd.bin < path.txt[/tt]
OR alternatively, pass the parameter automatically:
[tt]echo "~/mozbackup" | ./mozbackup-cmd.bin[/tt]
The source code is here:
- Code: Select all
#include "stdio.h"
#include "stdlib.h"
int main (void)
{
char folder[256];
char cmd[512];
puts ("Please type what directory to backup to. The path must not have more than 256 characters:");
gets(folder);
sprintf(cmd,"cp -R ~/.mozilla %s", folder);
if (system(cmd)) return 1;
else return 0;
}
This code is public domain, do whatever you want with it. The binary itself must not be redistributed for commercial purposes (because I built it with Intel C++ Compiler Non-Commercial edition). It is recommended that you compile it with the following command line:
[tt]icc -static -o mozbackup-cmd.bin mozbackup.c -O3 -ipo -no-gcc -ip -openmp -openmp-profile -w[/tt]
You can also compile it with the GNU C compiler, with a command line like this:
[tt]gcc -static -o mozbackup-cmd.bin mozbackup.c -O3 -fomit-frame-pointer -w[/tt].
Enjoy

UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en) AppleWebKit/417.9 (KHTML, like Gecko) Safari/417.9.2