A command-line tool for SMS backup and restore
Hi, I've just developed a small command-line utility to backup and restore SMS on N9. Also the one for call log.
It can be downloaded here: SMSBackupRestore CallBackupRestore Here is a GUI version forked, JFYI: https://github.com/harmattan/MeegoSMSBackupRestore If you're interested in building from source, a little bit instruction here. Use at your own risk. Donation appreciated to Paypal account: wwwjfy@gmail.com |
Re: A command-line tool for SMS backup and restore
hi can some instructions on its usage be posted to make things easier?
|
Re: A command-line tool for SMS backup and restore
it works beautifully {7000+ texts backed up, merged with another few hundred, tweaked, and restored}.
one fatal flaw: no donation box!! how do i give you all my money, wwwjfy? |
Re: A command-line tool for SMS backup and restore
I have an old nokia e70; i would like to copy the sms from there to my nokia n9, since nokia e70 works with nokia suite, would it possible using your tool to import the e70 .csv exported with the suite in the n9 ?
|
Re: A command-line tool for SMS backup and restore
Is there the same tool to back-up and restore Notes for the N9?
Thanks! |
Re: A command-line tool for SMS backup and restore
import fails if you do 'delete all messages' first. it works again if you send a message.
error is: About to commit the changes virtual bool CommHistory::EventModelPrivate::doAddEvent(CommHis tory::Event&) Group id not set Error adding events |
Re: A command-line tool for SMS backup and restore
Quote:
|
Re: A command-line tool for SMS backup and restore
Quote:
|
Re: A command-line tool for SMS backup and restore
Quote:
Though maybe not related, could you paste a sample csv file here? if you can, please comment there, https://github.com/wwwjfy/MeegoSMSBa...store/issues/1, so I can track and receive notifications (no idea how to set it here) |
Re: A command-line tool for SMS backup and restore
thread tools => subscribe to this thread => [instant notification by email]
if youre already subscribed to daily/weekly: thread tools => unsubscribe to this thread REALLY THOUGH: where is the donation box? get a flattr or paypal or something and put it here. |
Re: A command-line tool for SMS backup and restore
Thanks for the info, I've already subscribed to the thread.
I never thought of accepting donation, maybe it's the beginning. I've put it on the first post. :) |
Re: A command-line tool for SMS backup and restore
Quote:
|
Re: A command-line tool for SMS backup and restore
Quote:
|
Re: A command-line tool for SMS backup and restore
Quote:
|
Re: A command-line tool for SMS backup and restore
Quote:
|
Re: A command-line tool for SMS backup and restore
ok, so ive been using this for a week or two and its beautiful.
every 12 hours, if my phone and computer are on the same network, my SMSes are automatically backed up, de-duplicated, sorted into files by the contact, and committed incrementally to a private git repository. on the restore end, i run a quick script and i get messages received in the last 30 days {or the last 5 messages per contact if there are no new ones} in a neat little file for importing. this is everything ive ever wanted, ever, for SMS backup and restore. thanks a ton. |
Re: A command-line tool for SMS backup and restore
Quote:
|
Re: A command-line tool for SMS backup and restore
Quote:
|
Re: A command-line tool for SMS backup and restore
Quote:
|
Re: A command-line tool for SMS backup and restore
Quote:
|
Re: A command-line tool for SMS backup and restore
help guys! i want to add another sms back up but when i type the command smsbackuprestore import [filename] it processes nothing. here is the command i used
~# smsbackuprestore import meback ~# smsbackuprestore import meback |
Re: A command-line tool for SMS backup and restore
Quote:
please try to use the absolute path for "meback" |
Re: A command-line tool for SMS backup and restore
Quote:
|
Re: A command-line tool for SMS backup and restore
Quote:
or actually you want to "export"? then the file doesn't need to exist :) |
Re: A command-line tool for SMS backup and restore
Thank you very much. This worked for me.
|
Re: A command-line tool for SMS backup and restore
hi how can we merge two or more files from the backup.
during the backup i rec'd the error "the background thread has stalled" due to which the newer backups are smaller file sizes than the first backup. the new backups contain new smses and less than 1/3 of the old smses. so i want to merge these files and import them back. thanks for your help |
Re: A command-line tool for SMS backup and restore
Quote:
cat 1st 2nd | sort -u -k3 -t, > new to merge two files. (-u is for unique, -k3 is for sorting by date, -t, is for separator ,) with multiline sms, it's much easier if you copy the files to your windows/linux/mac to process. I can provide a python script if you need |
Re: A command-line tool for SMS backup and restore
Thanks for the great app!!
As an earlier poster asked, is there any chance of doing the same for Notes? Is it a similar process or too involved?I would do it if I could!! Also, so I can wipe my phone and have confidence that I can restore all my sms's as new? |
Re: A command-line tool for SMS backup and restore
Quote:
thanks for your help. |
Re: A command-line tool for SMS backup and restore
Quote:
check the bottom, there is already an app for that |
Re: A command-line tool for SMS backup and restore
here is my util for splitting and joining the smsbackuprestore dumps.
it looks at all your exports, automatically removes dupes, splits the texts by phone number into separate files, and sorts by date sent/received. for restoring, it joins them together taking only texts from the last 30 days from the backup. note: for non-united-states folks, you might wanna remove this line below before using. @messages = removeUSCountryCode @messages; i run it on the phone, like this: #exports to ~/MyDocs/sms-backup/#######.sms perl n9-sms-tool.pl backup #reads all .sms files in ~/MyDocs/sms-backup, #removes duplicates, and splits them out by phone number, #into separate files in ~/MyDocs/sms-backup-repo perl n9-sms-tool.pl split #unnecessary step: commits a git repo {local only, no pushing} perl n9-sms-tool.pl commit #makes a file for importing, using texts only from the last 30 days perl n9-sms-tool.pl join Code:
#!/usr/bin/perl |
Re: A command-line tool for SMS backup and restore
check wolke's script.
I just finished mine before I found out that :) I also paste it here: http://wwwjfy.net/tools/merge_csv.py It's not as powerful as his. Simple enough, just merge two csv files into one. I finished it in a hurry, so please check before you delete the original files or restore. :) you need python installed |
Re: A command-line tool for SMS backup and restore
sorry, i should have posted this weeks ago. ;)
|
Re: A command-line tool for SMS backup and restore
Quote:
1) move all your backups to /home/user/MyDocs/sms-backup 2) add ".sms" to all the backups there 3) run "perl n9-sms-tool.pl split" to populate sms-backup-repo 4) change "30 days ago" in the script to whatever you like. to do all messages, change it to "jan 1 1970". 5) run "perl n9-sms-tool.pl join" to make a file called "filtered.sms" in sms-backup 6) run smsbackuprestore import filtered.sms |
Re: A command-line tool for SMS backup and restore
thanks it worked a charm.
|
Re: A command-line tool for SMS backup and restore
Quote:
|
Re: A command-line tool for SMS backup and restore
Hi,
I'm attempting to back up, as my N9 is imploding in on itself. I'm trying to preserve the texts I've exchanged with my lady for the past few months, since my last backup. I used to be able to backup with PC Suite and an NBU, not so any more. When running your script I got a timeout error, restarted tried again, now I get a huuuuuuuuge error - with something looking like DB values. It starts with: GDBUS.Error :org.freedesktop.Tracker1.SparqlError.Internal: Operation was cancelled. After this it just parses a few hundred lines of what looks like a db dump... Any advice? Edit; Forgot to mention, I was able to get some backup done previosuly.. only 16.2 kb though.. and not a lot of texts.. but some. I actually got two of that size, several of 0kb when the "timeout" thing happened. |
Re: A command-line tool for SMS backup and restore
Quote:
~/.cache/tracker/meta.db and ~/.cache/tracker/meta.db-wal |
Re: A command-line tool for SMS backup and restore
Quote:
wolke, I see you wrote this post as well: http://talk.maemo.org/showpost.php?p...5&postcount=18 Any chance you can tell me the pain-in-the-*** way of going about it? =) edit: (added question and fixed link) edit2: I think I got it.. 1MB file of text messages.. seems like the important stuff is there.. so I'm re-flashing my N9. I had a battery usage at idle at 200+ mA.. so it was fairly critical =) Thanks for the help anyway, man! :) |
Re: A command-line tool for SMS backup and restore
hi,
i've used the following http://forum.meego.com/showthread.php?t=5725 to backup my smses and call logs direct to my gmail account. could you create something similar which helps not only to backup but to also re-import. i managed to import my smses from your script above but my call logs are backed up to my gmail account and can't be imported back due to my limited coding knowledge. the publisher isn't interested in creating an import utility. sorry if it bothers you and thanks in advance. |
All times are GMT. The time now is 06:36. |
vBulletin® Version 3.8.8