Reply
Thread Tools
Posts: 5 | Thanked: 1 time | Joined on Feb 2008
#1
I have problems with my backup app. I'm using the latest version of OS2008 and N800. After choosing where to place the backup files and choosing what to backup the app stops. It stops in the screen where you can choose what to include in the backup. I just push the OK button and the ok button turns white and the app freezes. If I choose not to update the settings, the backup works properly, but the backupfile is only 2,8MB. Previous backup was something like 20MB with settings included. Is there anyway to see what seems to be the problem?
 
Saturn's Avatar
Posts: 1,648 | Thanked: 2,122 times | Joined on Mar 2007 @ UNKLE's Never Never Land
#2
Are you using Claws and are you confortable with xterm and becomeroot?

If no please ignore the rest..
If yes could you do the following?

Open an xterm.

sudo gainroot
cd /etc/osso-backup/applications/
mv claws-mail.conf claws-mail.conf.old
exit
try to backup again choosing only 'settings'
does it work now?

Note that you can revert back to your previous configuration by doing the following:

sudo gainroot
cd /etc/osso-backup/applications/
mv claws-mail.conf.old claws-mail.conf
exit
It seems for me this is the root of the problem which makes my backup-osso nuts and I would like to double check with others before filling a bug.

Thanks.

Last edited by Saturn; 2008-02-15 at 16:28.
 

The Following 6 Users Say Thank You to Saturn For This Useful Post:
Posts: 5 | Thanked: 1 time | Joined on Feb 2008
#3
That seems to do the job. Backup works properly now after that command. Thank you very much!
 

The Following User Says Thank You to peperoni For This Useful Post:
Saturn's Avatar
Posts: 1,648 | Thanked: 2,122 times | Joined on Mar 2007 @ UNKLE's Never Never Land
#4
Thanks for verifying this for me.

I've filled a bug in claws.
 

The Following User Says Thank You to Saturn For This Useful Post:
Posts: 6 | Thanked: 0 times | Joined on Feb 2008
#5
Thanks Saturn, that works for me too. It was driving me insane and I never would have figured out the Claws configuration file was hosing it. Keep us up to date if the Claws team fixes this issue, please!
 
Saturn's Avatar
Posts: 1,648 | Thanked: 2,122 times | Joined on Mar 2007 @ UNKLE's Never Never Land
#6
Originally Posted by hazmatte View Post
Thanks Saturn, that works for me too. It was driving me insane and I never would have figured out the Claws configuration file was hosing it. Keep us up to date if the Claws team fixes this issue, please!
It has been closed already! (note: didn't say fixed)

http://www.thewildbeast.co.uk/claws-...ug.cgi?id=1523

It's an osso-backup, i.e. maemo, bug.
In my case, it must be the @ in the name of my account, for ex. imap@blablabla.com, but other special characters could trigger this, or simply 'long' names (from what I read around).

So, 'claws' is right; if you are affected you have to remove it manually or go and file a bug to maemo.

Now, if anyone has got the time he could try by editing the file to find the culprit. Here how the file looks:
Code:
<backup-configuration>
  <locations>
    <location type="file" category="settings">/home/user/.claws-mail/accountrc</location>
    <location type="dir" category="settings">/home/user/.claws-mail/addrbook</location>
    <location type="dir" category="settings">/home/user/.claws-mail/certs</location>
    <location type="file" category="settings">/home/user/.claws-mail/clawsrc</location>
    <location type="file" category="settings">/home/user/.claws-mail/folderitemrc</location>
    <location type="file" category="settings">/home/user/.claws-mail/folderlist.xml</location>
    <location type="dir" category="emails">/home/user/.claws-mail/imapcache</location>
    <location type="file" category="settings">/home/user/.claws-mail/matcherrc</location>
    <location type="file" category="settings">/home/user/.claws-mail/menurc</location>
    <location type="dir" category="emails">/home/user/.claws-mail/newscache</location>
    <location type="dir" category="settings">/home/user/.claws-mail/tagsdb</location>
    <location type="file" category="settings">/home/user/.claws-mail/tagsrc</location>
    <location type="file" category="settings">/home/user/.claws-mail/toolbar_*.xml</location>
    <location type="dir" category="emails">/home/user/Mail</location>
    <location type="file" category="settings">/home/user/.claws-mail/*_history</location>
    <location type="dir" category="emails">/home/user/.claws-mail/uidl</location>
  </locations>
</backup-configuration>
The structure is simple. Each line refers to something to be backed up.

For the moment, I choose to remove this file completely and make manually a zip of the /home/user/.claws-mail folder.
 
Saturn's Avatar
Posts: 1,648 | Thanked: 2,122 times | Joined on Mar 2007 @ UNKLE's Never Never Land
#7
Hi,

I've made this trivial script to backup/restore my claws folder.

Code:
#!/bin/sh

# Backup/Restore Claws settings

stamp=`date +%Y%m%d-%Hh%M`;
path=/media/mmc2/claws/backup; 
 
if mount | grep -q mmc2;
  then echo Memory MMC2 is available. Cont..;
else echo Memory MMC2 is missing; exit;
fi;

selection=
until [ "$selection" = "0" ]; do
    echo ""
    echo "Backup/Restore Claws settings"
    echo ""
    echo "1 - BACKUP claws settings"
    echo "2 - DELETE claws settings"
    echo "3 - RESTORE claws settings (from last backup)"   
    echo "4 - Show backup files"
    echo ""
    echo "0 - exit program"
    echo ""
    echo -n "Enter selection: "
    read selection
    echo ""
    case $selection in
        0) exit ;;
	1) tar czvf $path/backup-$stamp.tgz .claws-mail && echo "Backup has been created succesfully";;
	2) rm -r /home/user/.claws-mail && echo "Claws folder has been deleted succesfully";;
	3) export latest=`ls -al $path| grep -i backup- | awk '{last = $8} END{print last}'`; 
		tar xzvf $path/$latest && echo "Backup file $latest has been restored succesfully" ;;
	4) ls -al $path ;;
	*) echo "Please enter 1, 2, 3, 4 or 0"
    esac
done;
You can choose the appropriate path for storing the backups in the line: "path="

Apart from that you need to place it in a text file for example under /home/user/ with a name like claws_backup.sh and give it executable rights.
Code:
chmod +x claws_backup.sh
Then you run it with:
Code:
./claws_backup.sh
Hope someone finds it useful.
 

The Following User Says Thank You to Saturn For This Useful Post:
Saturn's Avatar
Posts: 1,648 | Thanked: 2,122 times | Joined on Mar 2007 @ UNKLE's Never Never Land
#8
Anyone interested on solving this problem please vote in bugzilla.
https://bugs.maemo.org/show_bug.cgi?id=3591
 
Posts: 309 | Thanked: 51 times | Joined on Apr 2007
#9
Just found that the backup problem is still there. Latest Diablo, latest Claws.
 
Posts: 53 | Thanked: 6 times | Joined on Sep 2008
#10
Originally Posted by Saturn View Post
Are you using Claws and are you confortable with xterm and becomeroot?

If no please ignore the rest..
If yes could you do the following?

Open an xterm.



try to backup again choosing only 'settings'
does it work now?

Note that you can revert back to your previous configuration by doing the following:



It seems for me this is the root of the problem which makes my backup-osso nuts and I would like to double check with others before filling a bug.

Thanks.
Thanks a lot, it worked even for me! I have diablo and I dont have claws mail installed (though I installed earlier and uninstalled it again since rss feeds were not that convenient for me). How come this solution worked for me when I dont have claws mail installed!
 
Reply

Tags
backup, claws

Thread Tools

 
Forum Jump


All times are GMT. The time now is 05:45.