Super-Compressing /home

Hi there, penguins!
As a deletion of /home is not necessary at all when moving to an upgraded System (hint), I´d like to know hwo it might be possible to super-squeeze /home.
Of course, using an external drive would be the easiest way to go, but what to do if /home is HUGE and no adequate HDD is around?

Which command does exist to super-compress home as much as possible in oder to uncompress it on the new system?
NOTE: I am not looking forward to compress /home with any archiving tools like Arc.

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

I believe Ark (like file-roller) is just a frontend for the apps on the
backend. If you have a huge directory to squeeze, though, the same
technologies apply. To move them quickly with low compression just use
tar but to actually squeeze (rather than just bundle) data into a smaller
space use a compression application like gzip or bzip2:

tar -cvf /tmp/yourUserHomeDirectory.tar /home/yourUser #bundle
tar -zcvf /tmp/yourUserHomeDirectory.tgz /home/yourUser #gzip compress
tar -jcvf /tmp/yourUserHomeDirectory.tgz /home/yourUser #bzip2 compress

Once done move the /tmp/whatever file to your new box.

Good luck.

TheMask wrote:
> Hi there, penguins!
> As a deletion of /home is not necessary at all when moving to an
> upgraded System (hint), I´d like to know hwo it might be possible to
> super-squeeze /home.
> Of course, using an external drive would be the easiest way to go, but
> what to do if /home is HUGE and no adequate HDD is around?
>
> Which command does exist to super-compress home as much as possible in
> oder to uncompress it on the new system?
> NOTE: I am not looking forward to compress /home with any archiving
> tools like Arc.
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJK8CWBAAoJEF+XTK08PnB5Y9MQANcBtTN/6+lR1lYqZyEgYNtX
VM7WcCo8SYRyNQlLN6NAnJ0J1GzlTZjvE1L/itFKmrUp77jt8nd7+asy4N3n1HR1
D2KeAtgcvmxQujAzLiAN8FIBByTv7+ONH2P9C0G7rfS+/ptldfPQz899vjk/T/CB
SIX5+1kAqTFNK9sDBLlMjSNiKM9E8AMRiaMNd+6rck4V0MnzjuTh3uWNOq+Kzlq/
0WJOceHNjpwKUM3/eTJCjXqWoIqhWVh/J2ZydQrRIBb+0yw342AVAcGeNWUUpt9y
CjyvNkJWlipYbuB/Sr5pZglIDJnr7o3mZKTgq1F958TAZ6luJeddY72L3cyrugTe
Z9yk+6OZIn4RmoTAUabaa6rcahOvMUyixUGKN4DQhc9t3iKRDm7UEnNmeyTVpFdg
aRCHc9zDN+tF/T+HUyY//Vcwxp+TZredav/1qWsOpq8trQql8DMexJ+i1tX6Mfc9
ckDXxf39YEI7CM4wxVfCu3zwwt3jO3gzNgLgfe8xmKnjd2HvWdeYz69ytDkIOXc5
Df1eSax6ZArkSQUAp9dfyZK5I3gCZvehdAm+yAVDX9ULTBEaB0W0N0nNsDmhtdBr
ZCkDIaXK9RpOp2/ExlOKajESCsCbwYibEd34qa4UfOh2tZGn04KQk8757mMrgFmx
/VdIeq8fqoXMJFNccxdO
=NcN2
-----END PGP SIGNATURE-----

Umpf, isn´t there some other way to do this? When doing this like you suggested, I´d have to install Ark again - and I´ve uninstalled it for a reason.
Which internal compressing commands do exist for OpenSuse?

If it’s about moving /home to a new system, I never compress. I put the new drive in my main system, ‘dd’ /home to the new disk, after that enlarge the partition if needed.

I don´t understand what you just said. Please explain it again. :wink:

Of yourse there is, you can also use one of the other dozens of compressing programs, so where’s your problem?

Compressing without a compression program is something that won’t work.

Where is Ark involved in that process?

The ones already mentioned for example.

Thanks Alkoellh for your clrification. Still looking forward to receive Knurphts response.

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

man dd

‘dd’ is a command to copy data byte-by-byte from one place to another.
Personally I do not know why you would use this over just a plain old ‘cp’
of data from the source to the destination (especially since you could
have the destination be a larger size from the start) but hopefully that
explanation will come. Using ‘cp’ and other commands also means you can
optimize transfer of things like sparse files.

Good luck.

TheMask wrote:
> I don´t understand what you just said. Please explain it again. :wink:
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJK8DE/AAoJEF+XTK08PnB5qFsQAJ7r8znul6fnOO9K4hVwEes1
8DTMHsGOYNkkoS2hElTojmhgxXgwSbjNizgR/Uxsq9JBCr2281s3XSiLoVHF+vdE
KOL+l+q9quez/4WqIuNpENormrIljazAido1Ih8VulptCU/qsFr/a+7/MBZFNv7+
uqhkr9DxQp7aD0AiiHrr5uxwFVgE57q9z07ycMuB+hBqwslm2exC/x5rX7mEMOd4
aRuGX2cYsxlhdEGcYfhvLtcueBLdqEPnuMkDEzVFrk8tztKgBhzRjOfzSoqTf0E5
iAUQBG6BxavRo3BbrbpbtWf7TdVehLskWbzi5MHc7dW9KSdO3hotiwmFxjk/hEc9
lYaTr3jbyV4hKh4gd9hyRl9GlctdQWioLoJUzG+uCaWFwrvWXkg3V54RTGD7Ep2o
NFIDgybrYrOwfNHprrcX51oqcY25isy9gYjIyN0ibDHPI7WqD7EFtgu99koND7zz
e2X00HaSUPvMYGR0pzuWzjkMv3UUKVu4TOm2m6V58IQ8hMvoeBac+DuynaoS0WC+
gcyepVFdS9hufsutHTTosTBS8Te3w7WffmW0C1igeRcT4V736GHUtP5kKFr4qRSy
FbzRmMUB5QkNQ6MYOFSPbpKF/S3Wq+aNBPCPwGh+YQS2TyZdTbfQkpY4Uyug52Nq
xRNLf92e/Cke4Bpd8yL0
=Cmrn
-----END PGP SIGNATURE-----

Hi
Look at using lmza from the command line, else as ab said, use dd
http://en.wikipedia.org/wiki/Lempel-Ziv-Markov_chain_algorithm


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.37-0.1-default
up 10:26, 2 users, load average: 0.31, 0.26, 0.22
GPU GeForce 8600 GTS Silent - CUDA Driver Version: 190.18

To explain, this is what I did:

Had /home on a 120GB, bought a 250GB, put it in the machine, did:
dd if=/dev/sd[homedisk] of=/dev/sd[newdisk]
Used partitioner to enlarge /home partition on the newdisk, and mount it instead of the old one, done.

Is that what you meant? A ‘man dd’ will give you all the info you need.

missed some things. Indeed cp -r -p would do the job as well. It’s an old habit to use ‘dd’, it never failed on me. As it is an old habit to have /home on a separate disk.

Nope. I intendet to compress it as much as possible with soe tool/command that does not take me 500 years to do the job and uncompress it later after upgrading.

And the chances, that compressing (+ copying) + uncompressing will take even longer are > 90%.

Thanks for your input everyone. Please consider this thread to be solved. :wink: