Replicating Generation Data Groups on W7


  1. Posts : 5,941
    Linux CENTOS 7 / various Windows OS'es and servers
       #1

    Replicating Generation Data Groups on W7


    Hi all
    Going back to my mainframe days it was possible to store previous versions of a file very simply by what was knows as a GDG or Generation Data Group.

    For example you had file A. the current version was known as FILE A(0).
    If you create a NEW version then you would write to FILE A(+1), or if you wanted to access the previous version this would be FILE A(-1). You could define how many levels you wanted.

    When you deleted the oldest version FILE A(+1) becomes the Current version FILE A(0) and so on.

    Anybody got any software for simply replicating this type of stuff --- I'm getting so many backups that it is almost a job in itself keeping a decent track on everything - conventional cataloging software doesn't seem to be very good at this.

    This old Mainframe system was EXCELLENT and was available from the early 70's or even before - but we don't seem to have anything like this on modern computers.

    How do most I.T depts organise caraloguing their backups or is it genearlly "Panic Stations" when something needs to be restored.

    Cheers
    jimbo
      My Computer


  2. Posts : 1,325
    Windows7 Ultimate 64bit
       #2

    Why not use SAN, Jim? SAN has that capability IIRC, it called SNAPSHOTS, and it works at block level. The downside would be you need to setup an independent storage machine to run this software. In Linux you can build SAN your self, use RAID + LVM, added to that ext3/ext4 FS, that storage server is close to undestructable...

    zzz2496
      My Computer


  3. Posts : 1,325
    Windows7 Ultimate 64bit
       #3

    Or maybe back your files using Rsync? It has similar to SNAPSHOT feature you can explore.

    zzz2496
      My Computer


  4. Posts : 1
    Windows 7
       #4

    You could run this BAT.

    Code:
     
    @echo on
    setlocal enabledelayedexpansion
    set myDir=%~1
    set limit=%~2
    if "x%myDir%"=="x" set myDir=%CD%\*.bak
    if "x%limit%"=="x" set limit=3
    REM Find the total number files in the directory.
    set /A total=0
    for %%v in ("%myDir%") do (
        set /A total+=1
    )
    REM Delete all but the last few files.
    set /A delCount = %total% - %limit%
    set /A count=1
    for /f usebackq %%v in (`dir /b /od /tc "%myDir%"`) do (
        if /i "!count!" LEQ "!delCount!" del %%v
        set /A count+=1
    )
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 09:10.
Find Us