Try good old zip for this kind of task? It has never failed me.
As in:
Code: Select all
cd /mnt/sdX
zip -9ry /mnt/sdX/sdY-disk.zip /mnt/sdY/*
-9 => maximum compression
-r => recurse (i.e. grab all directories and sub-directories)
-y => store symlinks as symlinks
Please also note the use of two separate partitions for this kind of task:
One should store the contents of partition sdY on partition sdX.
If you need more information about the capacities of zip for a task like
this, you can type
Code: Select all
zip -h2 | more
(e.g. "pipes"), etc., if you need to do so.
But zip will compress ".mozilla" and similar hidden directories as usual,
no need to indicate a special parameter.
IHTH. BFN.