maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   MeeGo / Harmattan (https://talk.maemo.org/forumdisplay.php?f=45)
-   -   [Announce] BackDeb : a Script for Backup Debian Package Installed With Dpkg ( Update 10/07/2012 ) (https://talk.maemo.org/showthread.php?t=86611)

farfary 2012-09-05 20:58

[Announce] BackDeb : a Script for Backup Debian Package Installed With Dpkg ( Update 10/07/2012 )
 
BackDeb :

A script ( NEW ! with Menu ! ) For Backuping Packages Installed

- All User Packages ( Applications and Depends )
- One User Package
- One System Package

Backup Folder : MyDocs/BackDeb/

- MyDocs/BackDeb/All ( For All Packages Backup )
- MyDocs/BackDeb/User ( For User Packages Backup )
- MyDocs/BackDeb/System ( For System Packages Backup )

Install :

Copy the .tar file to MyDocs and in terminal Run this command :
Code:

tar -xvf /home/user/MyDocs/backdeb.tar -C /
for Run Script in terminal :

Code:

# backdeb
Download :

backdeb.tar

Recommended Using It In N9QT

thedead1440 2012-09-06 02:17

Re: [Testing] BackDeb : a Script for Backup Debian Package Installed With Dpkg
 
hi farfary,
you can use this tar http://dl.dropbox.com/u/52851745/tar if you want to use dpkg-deb on your device... It is tested to work well...


Btw: Forgot to report earlier your script works well ;)

farfary 2012-09-06 07:38

Re: [Testing] BackDeb : a Script for Backup Debian Package Installed With Dpkg
 
Quote:

Originally Posted by thedead1440 (Post 1261894)
hi farfary,
you can use this tar http://dl.dropbox.com/u/52851745/tar if you want to use dpkg-deb on your device... It is tested to work well...


Btw: Forgot to report earlier your script works well ;)

very thanks for reply :)
this tar is the gnu-tar package in harmattan sdk repo ?

thedead1440 2012-09-06 08:08

Re: [Testing] BackDeb : a Script for Backup Debian Package Installed With Dpkg
 
yup gnu-tar that won't install on your system as its for n900...i extracted just tar and linked it...putting it in /bin/ with chmod 775'ng it allows dpkg-deb to successfully compile...Its tested so no worries ;)

farfary 2012-09-06 08:11

Re: [Testing] BackDeb : a Script for Backup Debian Package Installed With Dpkg
 
Quote:

Originally Posted by thedead1440 (Post 1261999)
yup gnu-tar that won't install on your system as its for n900...i extracted just tar and linked it...putting it in /bin/ with chmod 775'ng it allows dpkg-deb to successfully compile...Its tested so no worries ;)

veryy thanks , my scripts has some bugs , such as the icon in applications manager is not show
i work to fix these :)

Schturman 2012-09-06 09:10

Re: [Testing] BackDeb : a Script for Backup Debian Package Installed With Dpkg
 
farfary, from this message of thedead1440 you need to edit your first post from 777 to 775 ;)

Quote:

Originally Posted by thedead1440 (Post 1261999)
yup gnu-tar that won't install on your system as its for n900...i extracted just tar and linked it...putting it in /bin/ with chmod 775'ng it allows dpkg-deb to successfully compile...Its tested so no worries


farfary 2012-09-06 09:17

Re: [Testing] BackDeb : a Script for Backup Debian Package Installed With Dpkg
 
Quote:

Originally Posted by Schturman (Post 1262043)
farfary, from this message of thedead1440 you need to edit your first post from 777 to 775 ;)

Ohh YEsss :D
i Edited post #1

thedead1440 2012-09-06 09:42

Re: [Testing] BackDeb : a Script for Backup Debian Package Installed With Dpkg
 
farfary one last thing :D

for the tar replacement just do:

cp -R /path/to/downloaded/tar /bin/
chmod 775 /bin/tar


rm /bin/tar hence not required...
it will ensure people are less scared to try this out :D



Edit: why don't you package the new tar together with your backdeb with a cp -R command in your package? that would save the cp -R step...actually i think you can add a Makefile that does this as well as chmod 775's both backdeb and tar so then a user just installs your package and is good to go...

farfary 2012-09-06 17:01

Re: [Testing] BackDeb : a Script for Backup Debian Package Installed With Dpkg
 
Quote:

Originally Posted by thedead1440 (Post 1262068)
farfary one last thing :D

for the tar replacement just do:

cp -R /path/to/downloaded/tar /bin/
chmod 775 /bin/tar


rm /bin/tar hence not required...
it will ensure people are less scared to try this out :D



Edit: why don't you package the new tar together with your backdeb with a cp -R command in your package? that would save the cp -R step...actually i think you can add a Makefile that does this as well as chmod 775's both backdeb and tar so then a user just installs your package and is good to go...

OWww :D i Don'n Know that ( cp -R ... )
i try to add tar to my package but the dpkg errorED , its say the busybux has this file in file list , and you can not replace it
when i want to use the dpkg-divert , its not allowed to divert file
i not know about dpkg-divert and replace a file that in other package, if know help mee
---
i now work to add digsigsums the deb file
in next update i add it , and try to add tar to my package if i can :D

kainerious 2012-09-18 05:42

Re: [Announce] BackDeb : a Script for Backup Debian Package Installed With Dpkg ( Update 9/6/2012 )
 
Sorry, do not quite understand. I can get the installer.. Skype for example? I saw your mod in Quicktweak. Thanks.

thedead1440 2012-09-18 06:04

Re: [Announce] BackDeb : a Script for Backup Debian Package Installed With Dpkg ( Update 9/6/2012 )
 
Quote:

Originally Posted by kainerious (Post 1268243)
Sorry, do not quite understand. I can get the installer.. Skype for example? I saw your mod in Quicktweak. Thanks.

Once you have installed Tweak KK-3-1,

in terminal as root:

Code:

backdeb -o account-plugin-skype

Edit:

If you want to find the package name of an app; in terminal as root:

Code:

dpkg -l | grep APP_NAME
The packages related to the app will appear then use backdeb to get them...

farfary 2012-09-19 18:51

Re: [Announce] BackDeb : a Script for Backup Debian Package Installed With Dpkg ( Update 9/6/2012 )
 
Quote:

Originally Posted by kainerious (Post 1268243)
Sorry, do not quite understand. I can get the installer.. Skype for example? I saw your mod in Quicktweak. Thanks.

very Thanks for ansewr thedead1440 :D
Yes You can , all app was installed on System ( these app is original app , you can not delet these or find theme with
Code:

dpkg show <packagename>
but you can find theme with
Code:

apt-cache show <packagename>
and for list of package file
Code:

dpkg -L <packagename>
worked
AND a things
some app need depends !
i dont tested these , but when you backdeb a package , dpkg error depends , and now you can install theme with
Code:

apt-get -f install
if apt-get not installed theme, add options " -d "
apt-get downloaded these , now you can install theme with " incept "
only for find the package details i add options for my app , because
the way is deffrent

Schturman 2012-09-19 19:45

Re: [Announce] BackDeb : a Script for Backup Debian Package Installed With Dpkg ( Update 9/6/2012 )
 
Quote:

Originally Posted by thedead1440 (Post 1268252)
Once you have installed Tweak KK-3-1,

in terminal as root:

Code:

backdeb -o account-plugin-skype
Edit:

If you want to find the package name of an app; in terminal as root:

Code:

dpkg -l | grep APP_NAME
The packages related to the app will appear then use backdeb to get them...

You can use it directly from tweak (after installation of creator)...
Tweak KK-4-3-2
it will ask: "Write the correct SYSTEM package name: "
here just write the name of package, for example:
Code:

account-plugin-skype
and it will create the .deb file...

rcolistete 2012-09-21 02:09

Re: [Announce] BackDeb : a Script for Backup Debian Package Installed With Dpkg ( Update 9/6/2012 )
 
On Nokia N9, I need to install "binutils" package so "ar" works.
I've changed the destination directory to "/root/" instead of "/home/user/MyDocs/BackDeb/" by editing the scripts in "/opt/backdeb/".

thedead1440 2012-09-21 02:34

Re: [Announce] BackDeb : a Script for Backup Debian Package Installed With Dpkg ( Update 9/6/2012 )
 
I would prefer it to backup to the mmc partition as it does now so that i can backup how many packages i want without eating up space from the rootfs partition...

rcolistete 2012-09-21 02:41

Re: [Announce] BackDeb : a Script for Backup Debian Package Installed With Dpkg ( Update 9/6/2012 )
 
Quote:

Originally Posted by thedead1440 (Post 1269874)
I would prefer it to backup to the mmc partition as it does now so that i can backup how many packages i want without eating up space from the rootfs partition...

On my N9, everytime I get :
ar: /home/user/MyDocs/BackDeb/<package-name>.deb: Permission denied

thedead1440 2012-09-21 02:47

Re: [Announce] BackDeb : a Script for Backup Debian Package Installed With Dpkg ( Update 9/6/2012 )
 
hmmm i have never got that... Maybe Because i am using the version since that was first released and had a modified tar instead of the regular tar... The first page still has links to that tar...I also never installed binutils..

Will test the latest version and report back...

Schturman 2012-09-21 04:50

Re: [Announce] BackDeb : a Script for Backup Debian Package Installed With Dpkg ( Update 9/6/2012 )
 
Thedead1440, its not because of "tar" file, i don't use this file and after installation binutils it work without any problem..
After creating the .deb File, a Latest command is just transfer to user directory:
Code:

devel-su user -c "cp -f /home/.backdebtmp/$package$VERSION\_armel.deb /home/user/MyDocs/BackDeb"

thedead1440 2012-09-21 05:03

Re: [Announce] BackDeb : a Script for Backup Debian Package Installed With Dpkg ( Update 9/6/2012 )
 
Quote:

Originally Posted by Schturman (Post 1269885)
Thedead1440, its not because of "tar" file, i don't use this file and after installation binutils it work without any problem..

Thanks :)

Do you also get the permission denied error as in 4posts above? I've never got that error...

Schturman 2012-09-21 05:09

Re: [Announce] BackDeb : a Script for Backup Debian Package Installed With Dpkg ( Update 9/6/2012 )
 
Yes, i got this when copy command is directly without "devel-su user -c "command""
This is what i edited and added to N9QT..
Work like a charm ;)

thedead1440 2012-09-21 05:10

Re: [Announce] BackDeb : a Script for Backup Debian Package Installed With Dpkg ( Update 9/6/2012 )
 
ah...so the new package has to be run as user not root in terminal?

Schturman 2012-09-21 05:15

Re: [Announce] BackDeb : a Script for Backup Debian Package Installed With Dpkg ( Update 9/6/2012 )
 
No, you run it as root, just the latest copying command run as user to transfer to user directory.
This its way work from N9QT.

thedead1440 2012-09-21 05:16

Re: [Announce] BackDeb : a Script for Backup Debian Package Installed With Dpkg ( Update 9/6/2012 )
 
Quote:

Originally Posted by Schturman (Post 1269889)
Now, you run it as root, just the latest copying command run as user to transfer to user directory.
This its way work from N9QT.

Thanks will then just use it from N9QTweak ;)


Edit: True just used it from N9QTweak; it installed binutils and it works well :D

reinob 2012-09-21 12:09

Re: [Announce] BackDeb : a Script for Backup Debian Package Installed With Dpkg ( Update 9/6/2012 )
 
Quote:

Originally Posted by farfary (Post 1261777)
i creat a script to back up the installed package TO DEB

Although I'm not particularly interested in this program, one thing I'd like to note is that you only pack directories (-d) and *regular* (-f) files.

So if the package included any symlinks or special files, they will not be backed up.

thedead1440 2012-10-04 13:03

Re: [Announce] BackDeb : a Script for Backup Debian Package Installed With Dpkg ( Update 9/6/2012 )
 
farfary,

Is there a method that would allow the backup of all user/store installed apps in one go? Instead of manually entering the package names?

As I've 149 apps and unfortunately due to an issue, I need to reflash :(

mousse04 2012-10-04 13:06

Re: [Announce] BackDeb : a Script for Backup Debian Package Installed With Dpkg ( Update 9/6/2012 )
 
Quote:

Originally Posted by thedead1440 (Post 1276284)
farfary,

Is there a method that would allow the backup of all user/store installed apps in one go? Instead of manually entering the package names?

As I've 149 apps and unfortunately due to an issue, I need to reflash :(

Lazy man ;)

P.S: 149 :eek: !!!!! It is just the total number of Meego applications :D

thedead1440 2012-10-04 13:08

Re: [Announce] BackDeb : a Script for Backup Debian Package Installed With Dpkg ( Update 9/6/2012 )
 
Quote:

Originally Posted by mousse04 (Post 1276290)
Lazy man ;)

P.S: 149 :eek: !!!!! It is just the total number of Meego applications :D

Yes very lazy :p


Edit: 1880 programs btw :D

Source

farfary 2012-10-04 14:01

Re: [Announce] BackDeb : a Script for Backup Debian Package Installed With Dpkg ( Update 9/6/2012 )
 
Quote:

Originally Posted by thedead1440 (Post 1276284)
farfary,

Is there a method that would allow the backup of all user/store installed apps in one go? Instead of manually entering the package names?

As I've 149 apps and unfortunately due to an issue, I need to reflash :(

yes :) i created it , if you want this , wait , i upload it tonight

farfary 2012-10-04 15:03

Re: [Announce] BackDeb : a Script for Backup Debian Package Installed With Dpkg ( Update 9/6/2012 )
 
thedead1440 :

i updated post #1 :)
see it
but first test it and after trust it and backup

farfary 2012-10-04 15:09

Re: [Announce] BackDeb : a Script for Backup Debian Package Installed With Dpkg ( Update 9/6/2012 )
 
if this scripts fully worked plz say me :)

thedead1440 2012-10-04 15:15

Re: [Announce] BackDeb : a Script for Backup Debian Package Installed With Dpkg ( Update 9/6/2012 )
 
Ok just tried and it didn't work out...

I chose the first option to backup all packages; it asked me to create a backup from settings->Sync and backup...Once I did that it asked me to enter the bacup folder name which in my case was "Backup1"...After entering this an error came about grep"...." not found...Before i could see the error a message came that all backed up successfully...

However in the BackupN9 folder there is a empty file of BackupedListOfPackagesInBackAll.list with size 0kb...


Edit:
Took a screenshot of it :D

The output is:

Code:

/opt/backn9/backdeb/backupalluserdeb.sh: line155: unzip: not found
grep: Root/home/user/.package-manager/installed-packages.backup: No such file or directory
Prepare For List Of Packages ... Done
Backuping The List Of packages to /MyDocs/BackupN9/ ... Done
Start Backuping in 2s ...
End


Edit 2: Also if you are wondering, I do have binutils installed due to BackDeb :D

farfary 2012-10-04 15:33

Re: [Announce] BackDeb : a Script for Backup Debian Package Installed With Dpkg ( Update 9/6/2012 )
 
ok you dont have unzip ?
apt-get install unzip

thedead1440 2012-10-04 15:37

Re: [Announce] BackDeb : a Script for Backup Debian Package Installed With Dpkg ( Update 9/6/2012 )
 
Nope thats the thing it says:

Code:

# apt-get install unzip
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package unzip is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package unzip has no installation candidate

Could you share unzip then? :D

farfary 2012-10-04 15:41

Re: [Announce] BackDeb : a Script for Backup Debian Package Installed With Dpkg ( Update 9/6/2012 )
 
https://www.dropbox.com/s/0h2izheqww....0-5_armel.deb
:D

thedead1440 2012-10-04 15:46

Re: [Announce] BackDeb : a Script for Backup Debian Package Installed With Dpkg ( Update 9/6/2012 )
 
Woot!!!!

Backing up currently!!!

149/164 Pkgs remaining :D :D


http://db.tt/iA1rXSVT

farfary 2012-10-04 15:49

Re: [Announce] BackDeb : a Script for Backup Debian Package Installed With Dpkg ( Update 9/6/2012 )
 
Quote:

Originally Posted by thedead1440 (Post 1276382)
Woot!!!!

Backing up currently!!!

149/164 Pkgs remaining :D :D


http://db.tt/iA1rXSVT

:D GoooD ,
:) Good Luck Brother

but some package not good for installing :
orginaizerfeed i tested but for installing have problem :(
i dont know why

thedead1440 2012-10-04 15:52

Re: [Announce] BackDeb : a Script for Backup Debian Package Installed With Dpkg ( Update 9/6/2012 )
 
Well even if it gets 70% of the packages right we can manage the other 30%...

Really Thanks for this brilliant creation! I can now reflash tomorrow in peace :D

farfary 2012-10-04 15:53

Re: [Announce] BackDeb : a Script for Backup Debian Package Installed With Dpkg ( Update 9/6/2012 )
 
Quote:

Originally Posted by thedead1440 (Post 1276386)
Well even if it gets 70% of the packages right we can manage the other 30%...

Really Thanks for this brilliant creation! I can now reflash tomorrow in peace :D

:D I wish for you

thedead1440 2012-10-04 15:55

Re: [Announce] BackDeb : a Script for Backup Debian Package Installed With Dpkg ( Update 9/6/2012 )
 
btw, where is your donation link?

You really deserve it :)

farfary 2012-10-04 15:59

Re: [Announce] BackDeb : a Script for Backup Debian Package Installed With Dpkg ( Update 9/6/2012 )
 
my app is free :)
both of my app are gift for n9 users from me :)


All times are GMT. The time now is 08:04.

vBulletin® Version 3.8.8