Donzilla Backup, please test

A section for all development and testing programmes and customised browsers written by SillyDog701 community. Featured products including Donzilla, Firescape, DJGM Distro, and Netscape Streamline.

Moderator: Don_HH2K

Donzilla Backup, please test

Postby Antony » Fri 17 Mar, 2006 5:51 am

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

Screenshot of Donzilla Backup setting:
Image
(Can't see the image above? Your ads blocking software is unethically blocking innocent images.)

download
:dl: 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
User avatar
Antony
diamond member
diamond member
 
Posts: 14342
Joined: Tue 18 Jun, 2002 11:36 pm
Location: Sydney, Australia

Postby Pu7o » Fri 17 Mar, 2006 6:37 am

We are waiting for "Firescape Backup QuickPick" :)
UserAgent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/312.8 (KHTML, like Gecko) Shiira/1.2.2 Safari/125
User avatar
Pu7o
Macfox
Macfox
 
Posts: 2014
Joined: Thu 06 Jan, 2005 12:03 pm
Location: Portugal

Postby Antony » Fri 17 Mar, 2006 7:00 am

Pu7o wrote:We are waiting for "Firescape Backup QuickPick" :)
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
User avatar
Antony
diamond member
diamond member
 
Posts: 14342
Joined: Tue 18 Jun, 2002 11:36 pm
Location: Sydney, Australia

Postby Don_HH2K » Fri 17 Mar, 2006 8:30 am

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: HP Compaq nx6325 - Turion 64 X2 @ 2GHz, 2GB DDR2, 100GB HD, ATI Radeon X300, 15" LCD, Seven Pro
Handheld: Palm Treo 650 - Intel PXA270 @ 312MHz, 10MB RAM, 32MB flash, 2.7" LCD, Palm OS 5.4
User avatar
Don_HH2K
Moderator
Moderator
 
Posts: 5112
Joined: Sun 09 May, 2004 3:59 pm

Postby Antony » Fri 17 Mar, 2006 9:01 am

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 ;-)

Image
(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? :-)

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

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
User avatar
Antony
diamond member
diamond member
 
Posts: 14342
Joined: Tue 18 Jun, 2002 11:36 pm
Location: Sydney, Australia

Postby beanboy89 » Fri 17 Mar, 2006 10:22 am

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
User avatar
beanboy89
diamond member
diamond member
 
Posts: 1623
Joined: Sun 16 May, 2004 8:56 am

Postby Pu7o » Fri 17 Mar, 2006 3:24 pm

Antony wrote:
Pu7o wrote:We are waiting for "Firescape Backup QuickPick" :)
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 [tt]~/Library/Application Data/Firescp[/tt]. For version 0.2 and others, the profile location is version-specific, i.e. for version 5.7 beta 9, it is [tt]FS_57b9[/tt]. Final versions end with _f, i.e. [tt]FS_02_f[/tt]. (A possible way to do this would be to backup [tt]~/Library/Application Data/Firescp[/tt] and [tt]~/Library/Application Data/FS_*[/tt] (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
User avatar
Pu7o
Macfox
Macfox
 
Posts: 2014
Joined: Thu 06 Jan, 2005 12:03 pm
Location: Portugal

Postby Don_HH2K » Fri 17 Mar, 2006 7:41 pm

I batch-scripted the process on Windows, eventually producing [tt]profilebackup.bat[/tt] and [tt]profilerestore.bat[/tt]. 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 [tt]profilebackup.bat[/tt]. To restore, run [tt]profilerestore.bat[/tt].

Download here

On NT/2k/XP/2k3, the script will look for [tt]%HOMEDRIVE%\%HOMEPATH%\Application Data\Mozilla[/tt], 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 [tt]C:\WINDOWS\Application Data\Mozilla[/tt], 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 [tt]profilebackup.bat[/tt], 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)
Last edited by Don_HH2K on Sat 18 Mar, 2006 10:26 pm, edited 1 time in total.
Laptop: HP Compaq nx6325 - Turion 64 X2 @ 2GHz, 2GB DDR2, 100GB HD, ATI Radeon X300, 15" LCD, Seven Pro
Handheld: Palm Treo 650 - Intel PXA270 @ 312MHz, 10MB RAM, 32MB flash, 2.7" LCD, Palm OS 5.4
User avatar
Don_HH2K
Moderator
Moderator
 
Posts: 5112
Joined: Sun 09 May, 2004 3:59 pm

Postby Pu7o » Sat 18 Mar, 2006 9:30 pm

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 ([tt]chmod +x mozbackup.bin[/tt], and then run it ([tt]./mozbackup.bin[/tt]). 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):

Image
UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en) AppleWebKit/417.9 (KHTML, like Gecko) Safari/417.9.2
User avatar
Pu7o
Macfox
Macfox
 
Posts: 2014
Joined: Thu 06 Jan, 2005 12:03 pm
Location: Portugal

Postby Pu7o » Sat 18 Mar, 2006 9:43 pm

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
Last edited by Pu7o on Sat 18 Mar, 2006 9:46 pm, edited 2 times in total.
User avatar
Pu7o
Macfox
Macfox
 
Posts: 2014
Joined: Thu 06 Jan, 2005 12:03 pm
Location: Portugal

Postby Pu7o » Sat 18 Mar, 2006 9:54 pm

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:

[tt]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[/tt]

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

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 \"~/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
Last edited by Pu7o on Sat 18 Mar, 2006 9:59 pm, edited 1 time in total.
User avatar
Pu7o
Macfox
Macfox
 
Posts: 2014
Joined: Thu 06 Jan, 2005 12:03 pm
Location: Portugal

Postby Pu7o » Sat 18 Mar, 2006 10:11 pm

To finish, on Mac OS X, Firefox profiles are on [tt]~/Library/Application Support/Firefox[/tt], but Mozilla ones are on [tt]~/Library/Mozilla[/tt]. 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: 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 ~/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
Last edited by Pu7o on Sat 18 Mar, 2006 10:13 pm, edited 1 time in total.
User avatar
Pu7o
Macfox
Macfox
 
Posts: 2014
Joined: Thu 06 Jan, 2005 12:03 pm
Location: Portugal

Postby Antony » Sat 18 Mar, 2006 10:38 pm

Image
(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
User avatar
Antony
diamond member
diamond member
 
Posts: 14342
Joined: Tue 18 Jun, 2002 11:36 pm
Location: Sydney, Australia

Postby Don_HH2K » Sat 18 Mar, 2006 10:45 pm

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: HP Compaq nx6325 - Turion 64 X2 @ 2GHz, 2GB DDR2, 100GB HD, ATI Radeon X300, 15" LCD, Seven Pro
Handheld: Palm Treo 650 - Intel PXA270 @ 312MHz, 10MB RAM, 32MB flash, 2.7" LCD, Palm OS 5.4
User avatar
Don_HH2K
Moderator
Moderator
 
Posts: 5112
Joined: Sun 09 May, 2004 3:59 pm


Return to SD701 DevZone

Who is online

Registered users: Google [Bot], MSNbot Media