[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ipcop-svn
Subject:    [Ipcop-svn] SF.net SVN: ipcop:[2386] ipcop/trunk/src/misc-progs
From:       owes () users ! sourceforge ! net
Date:       2009-01-25 22:33:16
Message-ID: E1LRDXY-0004XK-OY () dn4whf1 ! ch3 ! sourceforge ! com
[Download RAW message or body]

Revision: 2386
          http://ipcop.svn.sourceforge.net/ipcop/?rev=2386&view=rev
Author:   owes
Date:     2009-01-25 22:33:16 +0000 (Sun, 25 Jan 2009)

Log Message:
-----------
Include a marker in backup to indicate which version created the backup.
Makes easier to restore from specific versions later.

Modified Paths:
--------------
    ipcop/trunk/src/misc-progs/ipcopbackup.c
    ipcop/trunk/src/misc-progs/ipcopbkcfg.c

Modified: ipcop/trunk/src/misc-progs/ipcopbackup.c
===================================================================
--- ipcop/trunk/src/misc-progs/ipcopbackup.c	2009-01-25 21:21:25 UTC (rev 2385)
+++ ipcop/trunk/src/misc-progs/ipcopbackup.c	2009-01-25 22:33:16 UTC (rev 2386)
@@ -216,6 +216,9 @@
     fprintf(stdout, "%s Backup size: %ld / %d B\n", floppydev, st.st_size, \
                MAX_FLOPPY_SIZE);
     fflush(stdout);             /* ensure Backup size will be displayed first on GUI \
*/  
+    /* Add a marker to indicate which version created this backup */
+    system("echo `grep -m 1 '::version' /usr/lib/ipcop/general-functions.pl | cut -f \
2 -d \"'\"` > /var/ipcop/backup/version"); +
     /* Start tarring files to floppy */
     snprintf(command, STRING_SIZE - 1,
              "/bin/tar -T %s"

Modified: ipcop/trunk/src/misc-progs/ipcopbkcfg.c
===================================================================
--- ipcop/trunk/src/misc-progs/ipcopbkcfg.c	2009-01-25 21:21:25 UTC (rev 2385)
+++ ipcop/trunk/src/misc-progs/ipcopbkcfg.c	2009-01-25 22:33:16 UTC (rev 2386)
@@ -443,6 +443,9 @@
     }
     close(temptarfilefd);
 
+    /* Add a marker to indicate which version created this backup */
+    system("echo `grep -m 1 '::version' /usr/lib/ipcop/general-functions.pl | cut -f \
2 -d \"'\"` > /var/ipcop/backup/version"); +
     /* Start tarring files to temp archive. Separate tar from gzip
      * W (verify) and z (compress) tar options can't be used together */
     snprintf(command, STRING_SIZE - 1,


This was sent by the SourceForge.net collaborative development platform, the world's \
largest Open Source development site.

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Ipcop-svn mailing list
Ipcop-svn@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ipcop-svn


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic