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 Tue 2013-04-09 (08:52), Ulli Horlacher wrote:

> > So "backup.sl" is really close to what VMS was doing.
> 
> Neat, I was not aware of backup.sl!
> One thing is missing: keep only n versions (automatic deleting of old
> versions)

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:

file -> file~ -> file~1~ -> file~2~ -> ... -> file~9~ -> (deleted)

Example:

framstag@fex:/sw/share/jedlib-0.99-19/lib: ll versions*
-rw-r--r-- framstag users    1,530 2013-04-09 16:10:50 versions.sl
-rw-r--r-- framstag users    1,529 2013-04-09 14:47:48 versions.sl~
-rw-r--r-- framstag users    1,530 2013-04-09 13:23:43 versions.sl~1~
-rw-r--r-- framstag users    1,456 2013-04-09 11:50:29 versions.sl~2~
-rw-r--r-- framstag users    1,456 2013-04-09 11:50:09 versions.sl~3~

With this numbering scheme file versions are automatically sorted in time
descending order. I prefer it this way (in spite of VMS versioning).


-- 
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: <20130409065255.GA13163@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]