diff options
author | Jeff Cai <jeff.cai@sun.com> | 2008-02-25 15:26:14 +0800 |
---|---|---|
committer | Jeff Cai <jeffcai@src.gnome.org> | 2008-02-25 15:26:14 +0800 |
commit | a6c0536339963b29d2f25b390b9e6eb6a1de34f5 (patch) | |
tree | 60da010956cc2e006c88c9955dff6a405219bbe0 /plugins/backup-restore | |
parent | 6eb14fb4f58ebcf5cf38f6d68842c0a1e167a187 (diff) | |
download | gsoc2013-evolution-a6c0536339963b29d2f25b390b9e6eb6a1de34f5.tar.gz gsoc2013-evolution-a6c0536339963b29d2f25b390b9e6eb6a1de34f5.tar.zst gsoc2013-evolution-a6c0536339963b29d2f25b390b9e6eb6a1de34f5.zip |
Because Solaris tar doesn't respect '-z' option, use gzip&tar to finish
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.
svn path=/trunk/; revision=35084
Diffstat (limited to 'plugins/backup-restore')
-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); |