Donzilla Backup, please test

You are here:  SillyDog701 > Message Centre > SD701 DevZone > [sdt=11070]
SillyDog701 Forums
Author Message
Antony
Site Admin


Joined: 18 Jun 2002
Posts: 11915
17 Mar, 2006 4:51 am Donzilla Backup, please test [sdp=71618]  

Backing up Donzilla profile data has never been easier. Donzilla Backup is now available for testing

Screenshot of Donzilla Backup setting:

(Can't see the image above? Your ads blocking software is unethically blocking innocent images.)

download
download Donzilla Backup QuickPick (8.3 KB)

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

Back to top profile website
Pu7o
Macfox


Joined: 06 Jan 2005
Posts: 1952
Location: Portugal
17 Mar, 2006 5:37 am [sdp=71620]  

We are waiting for "Firescape Backup QuickPick" Smile

UserAgent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/312.8 (KHTML, like Gecko) Shiira/1.2.2 Safari/125

Henceforth, you shall be known as... Darth Extremist.
Back to top profile website
Antony
Site Admin


Joined: 18 Jun 2002
Posts: 11915
17 Mar, 2006 6:00 am [sdp=71621]  

Pu7o wrote:
We are waiting for "Firescape Backup QuickPick" Smile
No problem, however I don't think Don would be happy to see a Donzilla thread has been hijacked.
Please kindly inform me the profile path of Firescape (and please don't change it over the versions.)

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

Back to top profile website
Don_HH2K
Moderator


Joined: 09 May 2004
Posts: 4535
17 Mar, 2006 7:30 am [sdp=71624]  

Hijacked? I don't think that at all -- I'd encourage community developers to write Donzilla extensions. Ironically, though, I had begun work on a similar extension a few months ago, but never really did much with it.

Would you care to tell how it works? I wouldn't mind porting this to Windows.

UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.1) Gecko/20060130 Donzilla/1.1PR1 (WML/1.3)

Laptop: Turion 64 X2 @ 2GHz, 2GB PC5300, 100GB HD, Radeon X300, 15" LCD, Vista Ultimate x64
Web server: P2 @ 233MHz, 280MB PC66, 20GB HD, 13.3" LCD, Windows Server 2003 x86
Misc. server: MIPS32 @ 216MHz, 16MB PC100, 4MB flash, DD-WRT Linux mipsel
Back to top profile website
Antony
Site Admin


Joined: 18 Jun 2002
Posts: 11915
17 Mar, 2006 8:01 am [sdp=71626]  

Don_HH2K wrote:
Ironically, though, I had begun work on a similar extension a few months ago, but never really did much with it.
Well, you did not share it with us Wink


(Can't see the image above? Your ads blocking software unethically blocks an innocent image.)

Sorry about this thread, it was posted in a hurry, I was making other Backup 'QuickPicks'.

Donzilla Backup allows users to quickly create Backup plans. And, it's very flexiable, you can schedule regular backups or manual ones. You can create backup to your preferred media, including online space or portable storage (e.g. iPod).
It is also possible to use the Backup files to do the syncing between computers.

Don_HH2K wrote:
I wouldn't mind porting this to Windows.
How do you know it only works on Mac? Smile

Simply make copies of Donzilla preferences and all related settings. That's why I asked for Donzilla's preference and profile location in this post.

You might want to create Incremental Backups (to save time and space) besides Full Backup.

A detailed instruction page will be available soon.

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

Back to top profile website
beanboy89
diamond member


Joined: 16 May 2004
Posts: 1440
17 Mar, 2006 9:22 am [sdp=71631]  

Antony wrote:
How do you know it only works on Mac?

Windows seems to have trouble opening .pkg, .pax.gx, and .bom files.

UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.1) Gecko/20060130 SeaMonkey/1.0

Desktop: AMD Athlon 64 X2 3800+ 2.0 GHz, 2.0 GB RAM, 250 GB HDD, DVD-RW, Radeon x700SE, Windows Vista Ultimate x64
Laptop: AMD Turion 64 X2 TL-58 1.9 GHz, 2.0 GB RAM, 120 GB HDD, DVD-RW, NVIDIA GeForce Go 7200, Windows Vista Ultimate x64
Back to top profile website
Pu7o
Macfox


Joined: 06 Jan 2005
Posts: 1952
Location: Portugal
17 Mar, 2006 2:24 pm [sdp=71646]  

Antony wrote:
Pu7o wrote:
We are waiting for "Firescape Backup QuickPick" Smile
No problem, however I don't think Don would be happy to see a Donzilla thread has been hijacked.
Please kindly inform me the profile path of Firescape (and please don't change it over the versions.)


On Mac OS X, for version 0.1, it is ~/Library/Application Data/Firescp. For version 0.2 and others, the profile location is version-specific, i.e. for version 5.7 beta 9, it is FS_57b9. Final versions end with _f, i.e. FS_02_f. (A possible way to do this would be to backup ~/Library/Application Data/Firescp and ~/Library/Application Data/FS_* (if they exist)).

UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en) AppleWebKit/420+ Trunk/20060316 (KHTML, like Gecko) Shiira/1.2.2 Safari/125

Henceforth, you shall be known as... Darth Extremist.
Back to top profile website
Don_HH2K
Moderator


Joined: 09 May 2004
Posts: 4535
17 Mar, 2006 6:41 pm [sdp=71651]  

I batch-scripted the process on Windows, eventually producing profilebackup.bat and profilerestore.bat. Profilebackup.bat will back up everything in your Mozilla profile tree (that is, Application Data\Mozilla), so it backs up Firefox as well, as well as any other program that includes its profile data within the Mozilla folder. Profilerestore.bat will restore it to that folder.

Instructions: drop the files into a Mozilla top-level directory, and run profilebackup.bat. To restore, run profilerestore.bat.

Download here

On NT/2k/XP/2k3, the script will look for %HOMEDRIVE%\%HOMEPATH%\Application Data\Mozilla, which is where your Application Data folder will be in NT-based OSes (unless you've changed it with TweakUI). On 95/98/ME, it will look for C:\WINDOWS\Application Data\Mozilla, which is the default unless you've installed Windows somewhere else or have moved Application Data with TweakUI.

You can set it to be scheduled on 98 and higher by creating a new Task Scheduler task for profilebackup.bat, since it doesn't require user intervention. On 95 and NT4, you'll need to use a third-party scheduler.

Unlike what I assume Antony's version can do, you can't create date-based backups. The most recent backup would be the only backup. You can, of course, move the backups out of your Mozilla profile directory to create more than one.

UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.1) Gecko/20060130 Donzilla/1.1PR1 (WML/1.3)

Laptop: Turion 64 X2 @ 2GHz, 2GB PC5300, 100GB HD, Radeon X300, 15" LCD, Vista Ultimate x64
Web server: P2 @ 233MHz, 280MB PC66, 20GB HD, 13.3" LCD, Windows Server 2003 x86
Misc. server: MIPS32 @ 216MHz, 16MB PC100, 4MB flash, DD-WRT Linux mipsel

Last edited by Don_HH2K on 18 Mar, 2006 9:26 pm; edited once(1)
Back to top profile website
Pu7o
Macfox


Joined: 06 Jan 2005
Posts: 1952
Location: Portugal
18 Mar, 2006 8:30 pm [sdp=71687]  

Here's a GUI program to backup mozilla profiles on Linux. Requires GTK2.

http://puto.mozfaq.org/mozbackup/mozbackup.bin

To execute, first remember to set it as executable (chmod +x mozbackup.bin, and then run it (./mozbackup.bin). Created using REALbasic 2006 Release 1. If anyone has a license to REALbasic for Windows or Mac OS X / Classic (or even better, a REALbasic professional license), I can provide the source code for a windows version and/or a Mac version.

Screenshot (being remotely displayed on a Mac):



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

Henceforth, you shall be known as... Darth Extremist.
Back to top profile website
Pu7o
Macfox


Joined: 06 Jan 2005
Posts: 1952
Location: Portugal
18 Mar, 2006 8:43 pm [sdp=71689]  

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:

./mozbackup-cmd.bin < path.txt

OR alternatively, pass the parameter automatically:

echo "~/mozbackup" | ./mozbackup-cmd.bin

The source code is here:

Code:

#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:

icc -static -o mozbackup-cmd.bin mozbackup.c -O3 -ipo -no-gcc -ip -openmp -openmp-profile -w

You can also compile it with the GNU C compiler, with a command line like this:

gcc -static -o mozbackup-cmd.bin mozbackup.c -O3 -fomit-frame-pointer -w.

Enjoy Smile

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

Henceforth, you shall be known as... Darth Extremist.

Last edited by Pu7o on 18 Mar, 2006 8:46 pm; edited 2 times in total
Back to top profile website
Pu7o
Macfox


Joined: 06 Jan 2005
Posts: 1952
Location: Portugal
18 Mar, 2006 8:54 pm [sdp=71690]  

The command line version can also be used on Mac OS X:

http://puto.mozfaq.org/mozbackup/mozbackup-cmd.osx

Compiled as an universal binary, requires Mac OS X 10.1.5 minimum (since I don't have the Mac OS X 10.0 SDK). (Then again, does anyone still use Mac OS X 10.0?)

It was compiled with this somewhat long command line:

NEXT_ROOT=/Developer/SDKs/MacOSX10.1.5.sdk/ gcc2 -isystem /Developer/SDKs/MacOSX10.1.5.sdk/ -L/Developer/SDKs/MacOSX10.1.5.sdk/usr/lib/ -o mozbackup-ppc.o mozbackup.c -arch ppc -O3 && env NEXT_ROOT=/ gcc-4.0 -arch i386 -O3 mozbackup.c && lipo -output mozbackup-cmd.osx a.out mozbackup-ppc.o -create && gzexe mozbackup-cmd.osx

Also, the source code had to be changed to reflect the different profile location:

Code:

#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 \"~/Library/Mozilla\" %s", folder);
        if (system(cmd)) return 1;
        else return 0;
}


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

Henceforth, you shall be known as... Darth Extremist.

Last edited by Pu7o on 18 Mar, 2006 8:59 pm; edited once(1)
Back to top profile website
Pu7o
Macfox


Joined: 06 Jan 2005
Posts: 1952
Location: Portugal
18 Mar, 2006 9:11 pm [sdp=71694]  

To finish, on Mac OS X, Firefox profiles are on ~/Library/Application Support/Firefox, but Mozilla ones are on ~/Library/Mozilla. While my previous version only backs up Mozilla, I now created one to back up Firefox.

http://puto.mozfaq.org/mozbackup/fxbackup.cmd

And the respective source code:

Code:

#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 ~/Library/Application\\ Support/Firefox %s", folder); /* The \\ are needed to escape the space */
        if (system(cmd)) return 1;
        else return 0;
}


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

Henceforth, you shall be known as... Darth Extremist.

Last edited by Pu7o on 18 Mar, 2006 9:13 pm; edited once(1)
Back to top profile website
Antony
Site Admin


Joined: 18 Jun 2002
Posts: 11915
18 Mar, 2006 9:38 pm [sdp=71698]  


(Can't see the image above? Your ads blocking software unethically blocks an innocent image.)

Donzilla Backup ‘QuickPick’ page is now available at http://mac.sillydog.org/backup/donzilla_backup.php

Donzilla Backup ‘QuickPick’ will enable users to create and manage backup plans. Users can specify multiple backup scheduled times and a variety of destinations in one plan.

Backup can also create Full Backup or Incremental Backups to save time and space, destination includes harddisk, external harddisk, iPod, and iDisk.

It is also possible to use this Donzilla Backup ‘QuickPick’ to synchronise Donzilla profiles between computers.

You will need Backup.app (from .Mac) to use this 'QuickPick', .Mac membership is required to activate Backup.app for the first time (free trial membership will work). You don't need .Mac membership to continue using Backup.app.

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

Back to top profile website
Don_HH2K
Moderator


Joined: 09 May 2004
Posts: 4535
18 Mar, 2006 9:45 pm [sdp=71699]  

Antony wrote:
It is also possible to use this Donzilla Backup ‘QuickPick’ to synchronise Donzilla profiles between computers.


It might interest you to know that Donzilla can already do this as of version 1.0, on any operating system.

UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.1) Gecko/20060130 Donzilla/1.1PR1 (WML/1.3)

Laptop: Turion 64 X2 @ 2GHz, 2GB PC5300, 100GB HD, Radeon X300, 15" LCD, Vista Ultimate x64
Web server: P2 @ 233MHz, 280MB PC66, 20GB HD, 13.3" LCD, Windows Server 2003 x86
Misc. server: MIPS32 @ 216MHz, 16MB PC100, 4MB flash, DD-WRT Linux mipsel
Back to top profile website
Display posts from previous:   
Reply to topic    Forum Index > SD701 DevZone All times are CST (GMT -6)
page 1 of 1
To add your questions, comments, and for more features and more, please join SillyDog701 Message Centre. It's free! This is SillyDog 701 Message Centre (SD701 Forums).
H-D parts - shop online for harley davidson parts & accessories at 20% discount.
Buy Text Links - buy and/or sell text link ads.

The Addams Family iTunes .Mac

*Search | FAQ | Rules and Policies | MozInfo701 - Mozilla Information Centre | SD701 Open Directory | Message Board Map | download Netscape