Thread
:
Automated Online Backup?
View Single Post
q335r49
2008-12-20 , 16:43
Posts: 46 | Thanked: 36 times | Joined on Sep 2008
#
3
man, sometimes I feel like I have a unique way of using the tablet, which obviously shouldn't be the case, since a lot of features I would consider fairly cool or useful haven't been documented, you know what I'm saying? But here is one solution I found after searching online for a bit: a command line script to email a zip file to yourself via mutt and gmail. This solution would be ideal in the case of wanting to back up a few megs of important work documents in case the tablet gets stolen or dies, or you accidentally do a "rm *" (guilty), which I would consider sufficient... I never feel safe backing up to a memory card on the same device, and I can always reinstall the software.
0. Get a gmail account!
1. Install Mutt via
http://www.internettablettalk.com/fo...ad.php?t=23544
. More explicitly:
- Open the Application manager, and enable Red Pill Mode (search these forums)
- Make sure you have the Maemo extras repository enabled. (Tools > Application Catalogue) If not, click on add, and type in "http://repository.maemo.org/extras"
- Install libncursesw5 via the application manager
- Go to
http://www.courville.org/mediawiki/index.php/N810
, and download the "mutt armel deb package" and the "cyrus sasl deb package"
- Install these 2 deb files, by running "dpkg -i cyrus.deb" and then "dpkg -i mutt.deb"
2. Configure Mutt for gmail via
http://shreevatsa.wordpress.com/2007...e-minimal-way/
More explicitly:
- create the ~/.muttrc file, with the following contents:
set imap_user = "username@gmail.com"
set imap_pass = "password"
set smtp_url = "smtp://username@smtp.gmail.com:587/"
set smtp_pass = "password"
set from = "username@gmail.com"
set realname = "Your Real Name"
set folder = "imaps://imap.gmail.com:993"
set spoolfile = "+INBOX"
set postponed="+[Gmail]/Drafts"
set message_cachedir=~/.mutt/cache/bodies
set certificate_file=~/.mutt/certificates
set move = no
3. Now, the following command should email a zip file to yourself (The < dev null is there to suppress the prompts):
mutt -s "Subject" -a somebackupfile.zip
name@gmail.com
< /dev/null
4. Scheduling? Haven't bothered with this yet... having a script to backup everything is good enough for now. The entire script would be:
zip -u somebackupzip.zip /home/user/someimportantwork/*
mutt -s "Backup" -a somebackupzip.zip
myname@gmail.com
< /dev/null
Last edited by q335r49; 2008-12-20 at
16:52
.
Quote & Reply
|
The Following 2 Users Say Thank You to q335r49 For This Useful Post:
AsmoB
,
free
q335r49
View Public Profile
Send a private message to q335r49
Find all posts by q335r49