QtMoko - QtBackup
Hi, I just released a new small backup-application (which is not in the QtMoko feeds yet). This little application creates a qtbackup.tgz on the sdcard. The application itself can only create backups, not restore. I've added the restore function to the QtMoko installer-kernel, this kernel checks, after flashing the rootfs, if the qtbackup.tgz file is available and if it is it extracts this file in the root of the freshly flashed rootfs. As you can guess, the main purpose of this little app is te keep settings, applications, contacts etc over new versions. The program I wrote just calls a shell-script wich contains the follwing command: cat qtbackup.conf | xargs tar zcf /media/card/qtbackup.tgz > /dev/null 2>&1 The file qtbackup.conf currently has the following lines in it: /home/root /var/lib/bluetooth /usr/share/navit/navit.xml /root/.gconf You can already try this app if you add a new feed with the following url: http://www.openmobile.nl/media/qtmoko I already created an installer-version with the restore function: http://www.openmobile.nl/pages/downloads.php#qtm14b QtMoko V14B Can someony please tell me how to get this app in the QtMoko feeds? (Radek?) And of course I would like to upload the source to some git, qtmoko-apps on github? (Sektor?) -- View this message in context: http://n2.nabble.com/QtMoko-QtBackup-tp3819776p3819776.html Sent from the Openmoko Community mailing list archive at Nabble.com. ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: QtMoko - QtBackup
On Wed, Oct 14, 2009 at 1:51 AM, ghislain wrote: > > Hi, > > I just released a new small backup-application (which is not in the QtMoko > feeds yet). This little application creates a qtbackup.tgz on the sdcard. > The application itself can only create backups, not restore. I've added the > restore function to the QtMoko installer-kernel, this kernel checks, after > flashing the rootfs, if the qtbackup.tgz file is available and if it is it > extracts this file in the root of the freshly flashed rootfs. As you can > guess, the main purpose of this little app is te keep settings, > applications, contacts etc over new versions. > > The program I wrote just calls a shell-script wich contains the follwing > command: > cat qtbackup.conf | xargs tar zcf /media/card/qtbackup.tgz > /dev/null 2>&1 > > The file qtbackup.conf currently has the following lines in it: > /home/root > /var/lib/bluetooth > /usr/share/navit/navit.xml > /root/.gconf > > You can already try this app if you add a new feed with the following url: > http://www.openmobile.nl/media/qtmoko > I already created an installer-version with the restore function: > http://www.openmobile.nl/pages/downloads.php#qtm14b QtMoko V14B > > Can someony please tell me how to get this app in the QtMoko feeds? (Radek?) > And of course I would like to upload the source to some git, qtmoko-apps on > github? (Sektor?) > I was just about to write something like this (though not nearly as generic) for myself. What a pleasant Wednesday morning surprise... Thanks! -Andy > > > > -- > View this message in context: > http://n2.nabble.com/QtMoko-QtBackup-tp3819776p3819776.html > Sent from the Openmoko Community mailing list archive at Nabble.com. > > ___ > Openmoko community mailing list > community@lists.openmoko.org > http://lists.openmoko.org/mailman/listinfo/community > ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: QtMoko - QtBackup
ghislain wrote: > I just released a new small backup-application (which is not in the QtMoko > feeds yet). This little application creates a qtbackup.tgz on the sdcard. Very nice. > Can someony please tell me how to get this app in the QtMoko feeds? (Radek?) > And of course I would like to upload the source to some git, qtmoko-apps on > github? (Sektor?) The simplest way is to create project on github. Then let me know and i will add the app to qtmoko-apps as subproject and i can also build it and upload to QtMoko feed. Another way is to fork qtmoko-apps, add it there and i can merge it back, but i think the solutioin with subprojects is better. Regards Radek ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: QtMoko - QtBackup
Radek, I just added qtbackup to github: http://github.com/ghislain/qtbackup/ Can you add it to the QtMoko feeds? Tnx already. -- View this message in context: http://n2.nabble.com/QtMoko-QtBackup-tp3819776p3839959.html Sent from the Openmoko Community mailing list archive at Nabble.com. ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: QtMoko - QtBackup
On Saturday 17 of October 2009 09:17:41 ghislain wrote: > Radek, > > I just added qtbackup to github: http://github.com/ghislain/qtbackup/ > Can you add it to the QtMoko feeds? > > Tnx already. > Hi, it's there now. But i had to do a few changes. First in qbuild.pro i changed hint to content for the sh and conf file - otherwise had errors. I think the image generated is only for files that are built during compilation Second before running script i set permissions to executable otherwise the script did not start for me. All the changes are attached, so maybe you would like to apply them to your source tree? Thanks! Radek diff --git a/MainForm.cpp b/MainForm.cpp index 80f091b..d4accc9 100644 --- a/MainForm.cpp +++ b/MainForm.cpp @@ -44,7 +44,10 @@ void MainForm::on_pushButtonBackup_clicked() } if(QFile::exists("qtbackup.sh")) { -// Show Message 'Please Wait' +if(!QFile::setPermissions("./qtbackup.sh", (QFile::Permission)0x)) { + QMessageBox::warning(this,tr("QtBackup"),tr("Failed to set permissions.")); +} + // Show Message 'Please Wait' window_title = this->windowTitle(); setWindowTitle(tr("Please Wait")); // Execute script diff --git a/qbuild.pro b/qbuild.pro index 828b676..af446d0 100644 --- a/qbuild.pro +++ b/qbuild.pro @@ -29,7 +29,7 @@ pics [ ] extras_bin [ -hint=image generated +hint=content files = qtbackup.sh files+= qtbackup.conf path = / diff --git a/qtbackup.sh b/qtbackup.sh old mode 100644 new mode 100755 ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: QtMoko - QtBackup
Radek, Thanks for adding the program to the QtMoko feeds. I've applied your changes to the QtBackup-source-tree. It was my first Qt-App and I wanted to use QtCreator only, which succeeded when using version 1.2.10 and change some build-settings. But for package creating I had to ask my friend google :) For the permissions, I also saw there were no executing permissions, but it worked for me nonetheless. But checking and setting the permissions is better of course. Thanks! Ghislain -- View this message in context: http://n2.nabble.com/QtMoko-QtBackup-tp3819776p3843471.html Sent from the Openmoko Community mailing list archive at Nabble.com. ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community