Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 14
Hello all!! I have a question: I should gather information about a file. Not just the creation date last modify etc (I can easly get them with stat command), but ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Dec 2010
    Posts
    6

    Get file history


    Hello all!!
    I have a question:
    I should gather information about a file. Not just the creation date last modify etc (I can easly get them with stat command), but the history of the changes (just the date would be enough.

    Anyone can help!?

    Thanks a lot guys!!!!

    \\ Tommy

  2. #2
    Linux User Manko10's Avatar
    Join Date
    Sep 2010
    Posts
    250
    You need a file system which supports that. Which one are you using?
    Refining Linux Advent calendar: 24 Outstanding ZSH Gems

  3. #3
    Just Joined!
    Join Date
    Dec 2010
    Posts
    6
    It should be fat32 or ntfs, as the file is an xlsx.

  4. #4
    Linux User Manko10's Avatar
    Join Date
    Sep 2010
    Posts
    250
    Both are not versioning file systems. The file format also has nothing to do with the file system.
    Please have a look at this: File system - Wikipedia, the free encyclopedia
    and at this Versioning file system - Wikipedia, the free encyclopedia in particular.
    Refining Linux Advent calendar: 24 Outstanding ZSH Gems

  5. #5
    Just Joined!
    Join Date
    Dec 2010
    Posts
    6
    Is there a way to check it? It could be a Shadow Copy....

  6. #6
    Linux User Manko10's Avatar
    Join Date
    Sep 2010
    Posts
    250
    Shadow copies are indeed a posibility for NTFS but I doubt that Linux supports that. I guess you have to use this on Windows. Shadow copies also have to be enabled before. See here: Understanding Volume Shadow Copies
    I'd rather prefer a real versioning file system instead.
    Refining Linux Advent calendar: 24 Outstanding ZSH Gems

  7. #7
    Just Joined!
    Join Date
    Dec 2010
    Posts
    6
    Hello Manoko!
    you're sure right... Unfortunately, these 2 files belongs to a friend of mine that actually doesn't know anything about IT.
    So, unleass the file isn't provided with a versioned file system, there will be no way to get a lil history tag (not the real modify, but just date and time)?

    Thanks a lot!

  8. #8
    Linux User Manko10's Avatar
    Join Date
    Sep 2010
    Posts
    250
    If neither the file system itself nor a daemon such as th Shadow Copy daemon on Windows keeps track of the changes, there is no way to examine this information.
    If the file system is journaled like Ext3/4 or NTFS there is a chance to recover the last not succeeded change, but that's something different than versioning.
    Refining Linux Advent calendar: 24 Outstanding ZSH Gems

  9. #9
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,391
    Hmm,
    What about using a version control system like cvs, subversion, git, etc?

    It might be overkill for just two files, and this would also work best with textfiles, not binary blobs.
    Additionally, you say your friend doesnt know IT. Which then might be a learning experience to get to know your version control system of choice.

    Just a thought
    You must always face the curtain with a bow.

  10. #10
    Just Joined!
    Join Date
    Dec 2010
    Posts
    6
    I know git an cvs, but they create the version history of a file... they can't gather those info of a file created, for example, on another pc.

    am I wrong?

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •