webOS Nation Forums >  webOS apps and software >  webOS development > Possible To Use zlib to Backup?
Possible To Use zlib to Backup?

  Reply
 
LinkBack Thread Tools Display Modes
Old 10/07/2009, 12:09 PM   #1 (permalink)
Member
 
Veritas06's Avatar
 
Join Date: Oct 2007
Location: Northport, NY
Posts: 610
Likes Received: 4
Thanks: 448
Thanked 133 Times in 89 Posts
Default Possible To Use zlib to Backup?

I saw the zlib package in Preware & was wondering if we could use that to create system backups? A few weeks ago i was trying to get tar or zip, but they would not let me exclude directories. I was looking up information on zlib (seems kinda complicated -- at least in comparision to how tar & zip typically work by command line) & thought maybe we could use this. Maybe the first step would be getting it to work through Terminal, then, if possible, make a simple GUI with a button for backup / updating changed files (thought i saw this when i was reading through the info). If anyone knows about this it would be great. I haven't been able to get too deep into it because of school work, but hopefully i can get another look tonight / tomorrow.

~Thanks for any help anyone can provide.
__________________
Fix 'Hidden' SMS Conversations
PreThemer Profile
Hide Amazon MP3 Store
Veritas06 is offline   Reply With Quote
Old 10/07/2009, 01:16 PM   #2 (permalink)
Member
 
Join Date: Oct 2009
Posts: 197
Likes Received: 7
Thanks: 15
Thanked 27 Times in 21 Posts
Default

I have compressed a directory on the Pre using Tar and gzip, you need to make the partition read/write using the mount command. then you just use:

tar cvf NameofFile.tar /dir/you/want/to/compress/

This creates NameofFile.tar Then zip it up using
gzip NameofFile.tar
creates NameofFile.tar.gz

Then I personally use Rsync to back up my Pre files. For more on this check out the post

Using Rsync To Do a Complete Backup of Your Pre



Hope this helps

Last edited by elpollodiablo1; 10/08/2009 at 08:44 PM.
elpollodiablo1 is offline   Reply With Quote
Old 10/07/2009, 08:51 PM   #3 (permalink)
Member
 
Veritas06's Avatar
 
Join Date: Oct 2007
Location: Northport, NY
Posts: 610
Likes Received: 4
Thanks: 448
Thanked 133 Times in 89 Posts
Default

Yeah, I knew how to do a specific directory, I was hoping to get a way to do everything (minus proc, sys, & /media/internal) to have coplete backups instead of picking & choosing. I know it's pretty overkill, but I was really just curious if it could be done. I saw that rSync post too. Makes me want to set mine back up.

~Thanks for the info
Veritas06 is offline   Reply With Quote
Old 10/07/2009, 11:36 PM   #4 (permalink)
Member
 
sushi's Avatar
 
Join Date: Jul 2009
Posts: 159
Likes Received: 0
Thanks: 15
Thanked 15 Times in 10 Posts
Default

You can exclude files with rsync and grab the entire directory structure if you like. This is what I use:

Quote:
rsync -e ssh -HlptgoDPSarv --exclude=/sys --exclude=/proc --force --delete --del --stats . name@internet.rysnc.server:/directory/to/backup/
Essentially, I'm using SSH to create a tunnel to a server I have running rsync, through which I send the entire Palm structure minus the exclusions noted.
sushi is offline   Reply With Quote
Old 10/08/2009, 01:51 AM   #5 (permalink)
Member
 
Veritas06's Avatar
 
Join Date: Oct 2007
Location: Northport, NY
Posts: 610
Likes Received: 4
Thanks: 448
Thanked 133 Times in 89 Posts
Default

Thanks for posting your exact command. I know i have mine saved somewhere, but i forget where. I'm just curious: Do you leave the rsync daemon running on your Pre or shut it down after every sync?
__________________
Fix 'Hidden' SMS Conversations
PreThemer Profile
Hide Amazon MP3 Store
Veritas06 is offline   Reply With Quote
Old 10/08/2009, 07:31 AM   #6 (permalink)
Member
 
Join Date: Oct 2009
Posts: 197
Likes Received: 7
Thanks: 15
Thanked 27 Times in 21 Posts
Default

I dont like setting up rsync server on the pre, I prefer to set up ssh on another computer and use rsync over ssh to back up. if you put rsync server on your phone you might forget to shut it down after every use. leaving it running makes you pre less security. Anyone can then get on there and get all your content. with rsync over ssh you dont have to worry about this.
elpollodiablo1 is offline   Reply With Quote
Reply

 

Tags
backup, tar, zip

Thread Tools
Display Modes



 


Content Relevant URLs by vBSEO 3.6.0