From a6c0536339963b29d2f25b390b9e6eb6a1de34f5 Mon Sep 17 00:00:00 2001 From: Jeff Cai Date: Mon, 25 Feb 2008 07:26:14 +0000 Subject: Because Solaris tar doesn't respect '-z' option, use gzip&tar to finish 2008-02-25 Jeff Cai * backup.c: (backup), (restore): Because Solaris tar doesn't respect '-z' option, use gzip&tar to finish the silimar function. svn path=/trunk/; revision=35084 --- plugins/backup-restore/ChangeLog | 6 ++++++ plugins/backup-restore/backup.c | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/plugins/backup-restore/ChangeLog b/plugins/backup-restore/ChangeLog index a91179b3f8..528a68e321 100644 --- a/plugins/backup-restore/ChangeLog +++ b/plugins/backup-restore/ChangeLog @@ -1,3 +1,9 @@ +2008-02-25 Jeff Cai + + * backup.c: (backup), (restore): + Because Solaris tar doesn't respect '-z' option, use gzip&tar to + finish the silimar function. + 2008-02-20 Jeff Cai ** Fix for bug #516648 diff --git a/plugins/backup-restore/backup.c b/plugins/backup-restore/backup.c index cd1894eee0..6b8f418a97 100644 --- a/plugins/backup-restore/backup.c +++ b/plugins/backup-restore/backup.c @@ -81,7 +81,7 @@ backup (const char *filename) /* FIXME compression type?" */ /* FIXME date/time stamp?" */ /* FIXME backup location?" */ - command = g_strdup_printf ("cd $HOME && tar zpcf %s .evolution .camel_certs", filename); + command = g_strdup_printf ("cd $HOME && tar cf - .evolution .camel_certs | gzip > %s", filename); s (command); g_free (command); @@ -117,7 +117,7 @@ restore (const char *filename) CANCEL (complete); txt = _("Extracting files from backup"); - command = g_strdup_printf ("cd $HOME && tar zxf %s", filename); + command = g_strdup_printf ("cd $HOME && gzip -cd %s| tar xf -", filename); s (command); g_free (command); -- cgit