jed-users mailing list

[2013 Date Index] [2013 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

Re: [Jed-users-l] extended backup (versioning)?


On Sat 2013-04-13 (12:33), Ulli Horlacher wrote:

> > Based on backups.sl (which was a very good guideline!) I have now written
> > versions.sl which does file versioning like my first idea. It rotates
> > versions on saving:
> 
> framstag@fex:/sw/share/jedlib-0.99-19/lib: ll versions.sl* .versions/vers*
> -rw-r--r-- framstag users    2,050 2013-04-13 11:59:22 versions.sl
> -rw-r--r-- framstag users    2,031 2013-04-13 11:56:41 .versions/versions.sl~1~
> -rw-r--r-- framstag users    1,953 2013-04-13 11:39:43 .versions/versions.sl~2~
> -rw-r--r-- framstag users    1,774 2013-04-13 10:09:06 .versions/versions.sl~3~
> -rw-r--r-- framstag users    1,822 2013-04-13 10:01:55 .versions/versions.sl~4~
> -rw-r--r-- framstag users    1,854 2013-04-13 09:58:03 .versions/versions.sl~5~
> -rw-r--r-- framstag users    1,855 2013-04-13 09:57:25 .versions/versions.sl~6~
> -rw-r--r-- framstag users    1,854 2013-04-13 09:33:51 .versions/versions.sl~7~
> -rw-r--r-- framstag users    1,664 2013-04-13 09:03:53 .versions/versions.sl~8~
> -rw-r--r-- framstag users    1,664 2013-04-13 09:03:05 .versions/versions.sl~9~

Meanwhile I have written the helper program jv (jed versions) for easier
access to the file versions:

framstag@fex:/sw/share/jedlib-0.99-19/lib: jv -h
usage: jv [-l] [file]
   or: jv -r version-number file [new-file]
   or: jv -d version-number file
options: -l   list available versions
         -r   recover file
         -d   show diff
examples: jv -l project.pl
          jv -r 2 project.pl project_2.pl

framstag@fex:/sw/share/jedlib-0.99-19/lib: jv
 8 defaults.sl
 4 jed.rc
 1 misc.sl
 3 keys.sl
10 versions.sl
 1 backups.sl

framstag@fex:/sw/share/jedlib-0.99-19/lib: jv -l jed.rc

jed.rc:
#0 2013-04-13 09:02:56        13171 B (current version)
#1 2013-04-12 09:29:20        13162 B
#2 2013-04-12 09:25:19        13163 B
#3 2012-04-06 16:06:49        13074 B
#4 2012-04-06 16:03:54        13038 B

framstag@fex:/sw/share/jedlib-0.99-19/lib: jv -r 2 jed.rc
`jed.rc' -> `./.versions/jed.rc~0~'
`./.versions/jed.rc~2~' -> `jed.rc'


-- 
Ullrich Horlacher              Informationssysteme und Serverbetrieb
Rechenzentrum IZUS/TIK         E-Mail: horlacher@xxxxxxxxxxxxxxxxxxxx
Universitaet Stuttgart         Tel:    ++49-711-68565868
Allmandring 30a                Fax:    ++49-711-682357
70550 Stuttgart (Germany)      WWW:    http://www.tik.uni-stuttgart.de/
REF: <20130413103332.GA12153@xxxxxxxxxxxxxxxxxxxx>
_______________________________________________
Jed-users-l mailing list
Jed-users-l@xxxxxxxx
http://mailman.jtan.com/mailman/listinfo/jed-users-l


[2013 date index] [2013 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]