diff options
Diffstat (limited to 'plugins/backup-restore/backup.c')
-rw-r--r-- | plugins/backup-restore/backup.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |