Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Evolution empty-cache-and-create-backup bash script
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
Matje
l33t
l33t


Joined: 29 Oct 2002
Posts: 619
Location: Hasselt, Belgium

PostPosted: Fri Oct 03, 2003 3:01 pm    Post subject: Evolution empty-cache-and-create-backup bash script Reply with quote

Hi everyone,

Just thought I'd share this script with the rest of you. Because I travel a lot between my home and my school (2 days a week at home, rest at school) I bought myself a USB-stick to take my mailboxes with me so I don't have the hassle of leaving mails on the server and stuff like that. So I decided I'd create a script that would make the backup for me that I could take home and back. But I noticed these backups where rather largish, like 120 Mb. After taking a look at my Evolution folder I noticed that a huge number of images and other files where located in so-called cache-dirs. So I made a script:

http://users.pandora.be/matje/linux/evolution-backup.sh

Code:

# This script first cleans out all the cache of Evolution.
# Then it creates a backup-date.tar.bz2 which it copies to a backup-folder.
# It also auto-mounts a USB-stick (or any other device) and copies the backup on it.
# Next it will unmount the USB-stick and remove temporary files.


As usual, comments, suggestions and flames are welcome ;-)
BTW: my backups now are about 60 MB. I decided to copy the backups to a location on my hard drive too, since backups are a good thing. If you want you can edit that part out, or the part where the USB stick gets mounted, or... Do what you like ;-)

I tested this just with Evolution 1.4.4 but I'm sure that it'll work with other versions too...

Also as usual: I do not take responsibility if this borks your data!!!
_________________
Life is like a box of chocolates... Before you know it, it's empty...
Back to top
View user's profile Send private message
Matje
l33t
l33t


Joined: 29 Oct 2002
Posts: 619
Location: Hasselt, Belgium

PostPosted: Sun Oct 05, 2003 12:03 pm    Post subject: Reply with quote

As I noticed while I wanted to try my backup at home, Evolution doesn't actually save the account-information in the evolution folder. I presume it is in the gconf database then so I'll be adding a bit to the script to make sure this gets backed up too. I'll post an updated script as soon as I have created it.
_________________
Life is like a box of chocolates... Before you know it, it's empty...
Back to top
View user's profile Send private message
pjv
Guru
Guru


Joined: 02 Jul 2003
Posts: 353
Location: Belgium

PostPosted: Sat Feb 14, 2004 10:48 pm    Post subject: Reply with quote

I feel urged to response, not only because I happen to be in a physical location very near to you (Limburgers onder elkaar :D ), but also because I share your precautiousness about Evolution. Up until now I have put a lot of effort in making sure that I don't lose my mails and still can handle them in a flexibel way.

This is what I learned (possibly the rough way :P ) so far. I'd like to share it with the community.

1. Migrating from Windows to Evo is reasonably simple compared to migrating the other way. So there's no (or at least a pretty hard) way back! It would be nice not only to have an import feature but an export button too, Ximian people!

2. Most of your files (ofcourse especially mails) reside in the evolution folder in your home dir. This dir is very messy, I think, when comparing to the .pst file's in the old days.

3. Unfortunately NOT everything is kept there (hey the world would be to simple, right ? 8) :lol: ). No, your accounts (as Matje already pointed out) setup is kept somewhere in the deep dark cave that is called GConf (and not in one spot there). When you have only one mail address that isn't going to be a problem, but if you have one for each finger on your hand (figure of speech :P), like me, it is.

For example:
Problems that I have had:

- Making a chain of emailprogs (both win and linux) to be able to convert my old mailformat to evolution (which is not 100% compatible with the standard mbox format).

- I had some problems with my gconf so I moved (not even deleted!) the .gconf dir and some more like it, so that default one's would be created. Not only did I end up with a broken gnome (which default dpi font setting btw seemed to be unexplicably small, I had miniature windows and labels), But Evo did seem to have lost it's config against all expectations (for a moment really scared me when it hid my mails behind a maximalized and white preview pane).

- As a consequence I now backup thoroughly. It's bit of a painstaking process.

The roundup: I like Evo a lot, I really do. It's the best mailapp for linux I've ever seen. But it has some rough edges that the marketing guys at Ximian didn't mention and that you need to watch out for!


@Matje: Sorry, I dropped in on your post, I just felt that I needed to say this to warn other users, and I didn't want to start another Evo post". Thx for your script, I'm sure it comes in handy to a lot of people! :o
Back to top
View user's profile Send private message
Matje
l33t
l33t


Joined: 29 Oct 2002
Posts: 619
Location: Hasselt, Belgium

PostPosted: Sun Feb 15, 2004 8:07 am    Post subject: Reply with quote

Well actually, I reinstalled my box and because I didn't want all those gnome packages to clutter up my box anymore (I use xfce now), I switched to sylpheed-claws, a much lighter gtk+ mailclient. It doesn't have features like a calendar and stuff, but it does what I want and I'm pleased with it.

(PS: Als Limburger moet je zeker naar LANzone komen ;) :D )
_________________
Life is like a box of chocolates... Before you know it, it's empty...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum