Is there an archive method that preserves the same information as rsync -a?

Right now I use “rsync -a” to sync my zimbra directory with another directory as a backup. I’d like to archive that backup (zip…rar…etc etc) in such a way that it preserves the same information as rsync -a would (symlinks, permissions… Etc etc). Does anyone know of such an archive method? My goal is to have it so that if I uncompress the file, the result should match exactly what my zimbra was at the time of backup.

Have you looked at tar?

abacabb wrote:
> Right now I use “rsync -a” to sync my zimbra directory with another
> directory as a backup. I’d like to archive that backup
> (zip…rar…etc etc) in such a way that it preserves the same
> information as rsync -a would (symlinks, permissions… Etc etc). Does
> anyone know of such an archive method? My goal is to have it so that if
> I uncompress the file, the result should match exactly what my zimbra
> was at the time of backup.

Excuse me asking the obvious, but if you want the effect of rsync -a,
why not use rsync with the -a option?

On 2011-05-11 14:50, Dave Howorth wrote:

> Excuse me asking the obvious, but if you want the effect of rsync -a,
> why not use rsync with the -a option?

A single file has advantages. Me, I would like a compressed rsync.


Cheers / Saludos,

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

Carlos E. R. wrote:
> On 2011-05-11 14:50, Dave Howorth wrote:
>
>> Excuse me asking the obvious, but if you want the effect of rsync -a,
>> why not use rsync with the -a option?
>
> A single file has advantages.

Ah, true. I missed that bit.

> Me, I would like a compressed rsync.

Use a compressed filesystem?

Single files are way better to manage. And using a compressed file system does not solve the single file issue for me. An RSYNCed directory on a compressed file system is still many files…and not one.

On 2011-05-11 15:48, Dave Howorth wrote:
> Carlos E. R. wrote:

>> Me, I would like a compressed rsync.
>
> Use a compressed filesystem?

Which does not exist for linux.


Cheers / Saludos,

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