evolution r35084 - trunk/plugins/backup-restore
- From: jeffcai svn gnome org
- To: svn-commits-list gnome org
- Subject: evolution r35084 - trunk/plugins/backup-restore
- Date: Mon, 25 Feb 2008 07:26:14 +0000 (GMT)
Author: jeffcai
Date: Mon Feb 25 07:26:14 2008
New Revision: 35084
URL: http://svn.gnome.org/viewvc/evolution?rev=35084&view=rev
Log:
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.
Modified:
trunk/plugins/backup-restore/ChangeLog
trunk/plugins/backup-restore/backup.c
Modified: trunk/plugins/backup-restore/backup.c
==============================================================================
--- trunk/plugins/backup-restore/backup.c (original)
+++ trunk/plugins/backup-restore/backup.c Mon Feb 25 07:26:14 2008
@@ -81,7 +81,7 @@
/* 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 @@
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]