OpenSuse Software Packages Backup

Hi,
I would like to know is there any way to backup all the Packages on the system.I want to backup(may be tarball or CD/DVD image) only packages and not the whole system.

On ubuntu Linux there is an utility APTONCD which allows to backup .deb packages.

I tried YAST2Control Center ->System ->System Backup. But I think its about whole or customized system backup.

Any help is most welcome.

Thanks in advance.

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

It may be useful to tell us what the backed-up packages will be used for
in the future. It’s possible to get a list of all installed packages, the
order they were installed in, for use later (redirect to a file if desired):

rpm -qa --last

and from there you could most-easily copy the same files from the original
installation media to have a complete backup of any system installed via
those RPMs (minus post-installation modifications to the RPMs). There IS
a way to recreate RPMs from a system with them installed assuming all of
the RPM pieces are in order as they usually are, but it requires (grrrr)
removing the RPM when you do it. You can always reinstall the RPM again
right away but that’s weird with some packages, such as the ‘rpm’ package
or various libraries needed by just about everything (glibc, cstdlib) so I
wouldn’t recommend this.

Not sure about the Ubuntu/Debian equivalent, but if you just wanted to
backup all files that came from RPMs then that could also be done fairly
easily:

for i in rpm -qal; do cp $i /somewhere; done

A bit more work would be needed to keep directory structures in there and
to avoid files which reside in a directory created by an RPM but when the
file itself is not associated with an RPM per the RPM database.

Good luck.

On 10/07/2010 12:06 AM, ebenash wrote:
>
> Hi,
> I would like to know is there any way to backup all the Packages on the
> system.I want to backup(may be tarball or CD/DVD image) only packages
> and not the whole system.
>
> On ubuntu Linux there is an utility APTONCD which allows to backup .deb
> packages.
>
> I tried YAST2Control Center ->System ->System Backup. But I think its
> about whole or customized system backup.
>
> Any help is most welcome.
>
> Thanks in advance.
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.15 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJMrb01AAoJEF+XTK08PnB5UNYQAKAgl/Ylq/uRVPhang+nwxhq
glOFEg8eFnJV36/1rq5JLIGnRPfGlOPQ2uDGxhfTAIVQClYuq34AwNQ5VHored6J
ILk8vnOoC85q9NTtMfqZiQ6RDWeX0zetzUIMGGS+4AuUnkzEM/eLvgJcnV94mH0t
66VEoO00wexIfHjFnn6p0I247k97vbWV1HLJRM7UMRl8tCDAEahHDVGeIZsyBTr+
WTcUIFnlqcw8Bq5mNRqmWgxHZG4v7FHFtbn7JLiN/nm65FM4zwFZq9MPoEL/+PyA
ZQ2VynpHVzDJFWGvZN/OOjzFy2GfkwhBIxJJ1+cODKlfBEwWI1+ny15rMY1RTAXE
F6vhMmRg0K/qCdmLApvLlUFUCk4x/iNmuRcFTgsvOlZm4Zg+kOdTuNwQXo/fR00W
JIDH05QApvDc+s7lnL7Rkh1+SzIspzjVvROumk5RWnylRgxhKEYctlWHH/0EpXzE
ET6GTvYus3r/iX882icPdGfLc9jgG7FKQnLDmvcexZ41HJiqlAAI4dSDxPmwmbnG
mlptxqAkQkiiff9MJVZFBq9l/Nx0Zl5eZxHqBJ6wgJzHo0XI4i/IAyv/T/OuQNlJ
HEVgtbHuWISkc7rXJ+7/ijh9nBcrm9mGliy8K9KB8GnVOIMnYl8WovqzXFGZKNqt
lGuubkTazMv7R2Hcv8LP
=45qV
-----END PGP SIGNATURE-----

First of all Thank you.
Thought no one gonna reply (just by viewers / reply ratio).

The reason for backup is -

  1. I m a PUZZLED PENGUIN and I crash the system a lot.
  2. I use Live Cd (Instead dvd) to install and it gets hectic to download all packages once again.

What I want-

  1. Any other way to restore system (by tarball or image on external Harddrive).
  2. Can u suggest me some good places to understand about RPM (Nice and Easy way).

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hmmm…

Depending on the type of crashing of your system that you are doing simply
backing up the RPMs may not be sufficient to help you recover. A complete
backup via a tarball may be a good option for you but, as the saying goes,
an ounce of prevention is worth a pound of cure. What are you doing to
destroy your system so regularly? It may be worthwhile for you to setup a
VM for your experimenting if you have enough bad luck to justify restoring
so often.

Good luck.

On 10/07/2010 12:06 PM, ebenash wrote:
>
> First of all Thank you.
> Thought no one gonna reply (just by viewers / reply ratio).
>
> The reason for backup is -
> 1. I m a PUZZLED PENGUIN and I crash the system a lot.
> 2. I use Live Cd (Instead dvd) to install and it gets hectic to
> download all packages once again.
>
> What I want-
>
> 1. Any other way to restore system (by tarball or image on external
> Harddrive).
> 2. Can u suggest me some good places to understand about RPM (Nice and
> Easy way).
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.15 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJMr959AAoJEF+XTK08PnB5KRAP/AtdXuI2JRhvyWDI7HUb9QDe
1D5CIXSSnc05sdTSb2cJD6bgXzZx8JmCokx1kmCA6Is1Sxqfzcr47J33A83TdKZ8
gCxMNeoOgG5ruGYFLXrQojf+xaWMrWaiKDkdu+XVrlK9Jrt3KoMo3tFWfycp99Jr
gfgobwd0kkrEOqNq0ZZ/TtdXc5bjPwWgdpVdcgyO4tqxJtZcAZKi7Xl9UPkZBC4C
gifShgaBIE2mhC8o1Q8ZXEjrvn9+bMf2yX8Sw2e3k/aQdo3mXPG4zhZ0iZzAhSb5
2LSLKGbUmD6dfTHOg63K0CT7RllOQHJC/E4OScCRWwJEG3LLSkACiltE1nkRLcOl
30ndVvD3VtV84KZeMUmu6EsvfsxpebWRCSqLF7pKIyjj6ZtT3m6vL3tWHF+zgq45
ArKpvnTUH94hY6gAELLu9TsU42Fzfmp8MFP9ssv+6BRkvXjFXhQk5kxBguTR2xZD
sGE5bswqqBmYxiUusj4j60Z3/EKhkM03W6OFG8zo++W1AHeyBo6Yloyz+JGh8phG
G1sgsJZ9bgghl2wxMVwDMlTuTSqVYfV73OGvYIUMIDEL5DBYNB2DTCADjJLffSBQ
r8bcfYEzy5WFfP5z7jVhinvU6++kXbUA60enZEDJtsvOdxY5jzMgFwbshIxZ0jAi
MbYuvLGtWCoEQF/bmk+/
=bewc
-----END PGP SIGNATURE-----

On 2010-10-07 08:06, ebenash wrote:
>
> Hi,
> I would like to know is there any way to backup all the Packages on the
> system.I want to backup(may be tarball or CD/DVD image) only packages
> and not the whole system.
>
> On ubuntu Linux there is an utility APTONCD which allows to backup .deb
> packages.
>
> I tried YAST2Control Center ->System ->System Backup. But I think its
> about whole or customized system backup.

The yast backup is precisely an rpm packages backup.

What it does is, using “rpm --verify”, detect what files belonging to a package has been modified,
and backup just that. Together with the list of packages installed, this can be used to automate a
reconstruction of the system, with very little space used in the backup.

It can also add files from any path you configure, in which case it works like a full backup (of
those paths).

It is not the faster method for reconstruction; the faster method is an image (as simple as doing a
“dd”). There are several different backup programs in the distro, just search for them in yast, try,
and choose. There are also some live CDs designed for imaging and restoring backups.

amanda
dar
rdiff-backup current copy is a mirror, olders are rdifss.
rsnapshot current copy is a mirror, olders are hardlinks and new files.
http://www.dirvish.org/
pdumpfs (http://0xcc.net/pdumpfs)


Cheers / Saludos,

Carlos E. R.
(from 11.2 x86_64 “Emerald” at Telcontar)

I strongly recommend you download a Clonezilla live CD, and use it to make an image of your system on a second disk. CZ will do disk to disk cloning, as well as saving a backup image (done with some combination of partclone and dd).

If you’re just starting out, and have a penchant towards blowing up your system, you can use it to make a fully restorable image of your system. Just get one install done, and your base packaged installed, then make an image. The disk will walk you through the steps to back up the system, and you can boot to the CD later to restore the image.

Thanks a lot!!