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.
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/
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/
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.