diff options
-rw-r--r-- | plugins/backup-restore/ChangeLog | 6 | ||||
-rw-r--r-- | 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<jeff.cai@sun.com> + + * 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<jeff.cai@sun.com> ** 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); |