ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Auditing old files on your File Server

    IT Discussion
    8
    13
    1.7k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • W
      wirestyle22
      last edited by wirestyle22

      Do you or your users ever audit your file server for old files? If so, how are you doing it? I've always created a folder structure that has a specific naming convention with the year included but I'm thinking there may be a better way that I am not aware of. I can't tell you how many files we are retaining for no reason other than no one is auditing.

      1 Reply Last reply Reply Quote 0
      • A
        Alex Sage
        last edited by Alex Sage

        I use this: http://www.foldersizes.com/

        Oldest File Report - http://www.foldersizes.com/screens/oldestfiles

        W 1 Reply Last reply Reply Quote 1
        • W
          wirestyle22 @Alex Sage
          last edited by

          @aaronstuder Thanks

          1 Reply Last reply Reply Quote 0
          • S
            scottalanmiller
            last edited by

            The find command is all you need on Linux.

            T S 2 Replies Last reply Reply Quote 2
            • T
              travisdh1 @scottalanmiller
              last edited by

              @scottalanmiller said in Auditing old files on your File Server:

              The find command is all you need on Linux.

              Yeah, lots of options with find and time based searches.

              -amin last accessed n minutes ago
              -atime X last accessed X24 hours ago
              -ctime X status changed X
              24 hours ago
              -mtime X data was last modified X*24 hours ago

              The man page is rather large for find, but is easy to find the options you want......

              I'll get my coat.

              D 1 Reply Last reply Reply Quote 1
              • D
                dafyre @travisdh1
                last edited by

                @travisdh1 said in Auditing old files on your File Server:

                @scottalanmiller said in Auditing old files on your File Server:

                The find command is all you need on Linux.

                Yeah, lots of options with find and time based searches.

                -amin last accessed n minutes ago
                -atime X last accessed X24 hours ago
                -ctime X status changed X
                24 hours ago
                -mtime X data was last modified X*24 hours ago

                The man page is rather large for find, but is easy to find the options you want......

                I'll get my coat.

                It's important to note that some file systems can have the atime option disabled to provide performance boosts and/or cut down on writes to drives.

                T 1 Reply Last reply Reply Quote 2
                • T
                  travisdh1 @dafyre
                  last edited by

                  @dafyre said in Auditing old files on your File Server:

                  @travisdh1 said in Auditing old files on your File Server:

                  @scottalanmiller said in Auditing old files on your File Server:

                  The find command is all you need on Linux.

                  Yeah, lots of options with find and time based searches.

                  -amin last accessed n minutes ago
                  -atime X last accessed X24 hours ago
                  -ctime X status changed X
                  24 hours ago
                  -mtime X data was last modified X*24 hours ago

                  The man page is rather large for find, but is easy to find the options you want......

                  I'll get my coat.

                  It's important to note that some file systems can have the atime option disabled to provide performance boosts and/or cut down on writes to drives.

                  Yep. Just because it's an option, doesn't mean it'll work with your particular system.

                  1 Reply Last reply Reply Quote 0
                  • D
                    dbeato
                    last edited by

                    Are you doing this for Windows or Linux Servers?

                    W 1 Reply Last reply Reply Quote 0
                    • W
                      wirestyle22 @dbeato
                      last edited by

                      @dbeato said in Auditing old files on your File Server:

                      Are you doing this for Windows or Linux Servers?

                      Both

                      D 1 Reply Last reply Reply Quote 0
                      • D
                        dbeato @wirestyle22
                        last edited by

                        @wirestyle22 nice. I would what was recommended above with the Find command in linux.

                        For Windows you can look this:
                        https://blogs.technet.microsoft.com/filecab/2009/05/11/dealing-with-stale-data-on-file-servers/
                        https://technet.microsoft.com/en-us/library/dd759233(v=ws.11).aspx

                        TreeSize also works.

                        W 1 Reply Last reply Reply Quote 1
                        • W
                          wirestyle22 @dbeato
                          last edited by

                          @dbeato said in Auditing old files on your File Server:

                          @wirestyle22 nice. I would what was recommended above with the Find command in linux.

                          For Windows you can look this:
                          https://blogs.technet.microsoft.com/filecab/2009/05/11/dealing-with-stale-data-on-file-servers/
                          https://technet.microsoft.com/en-us/library/dd759233(v=ws.11).aspx

                          TreeSize also works.

                          much appreciated

                          1 Reply Last reply Reply Quote 0
                          • J
                            joelbarlow40
                            last edited by joelbarlow40

                            First you need to enable auditing of object access as:

                            Whichever Top Level Policy-->Computer Configuration-->Windows Settings-->Security Settings-->Local Policies-->Audit Policy-->Audit Object Access - you can enable success/failure. Please check out the given below links:

                            Configuring Audit Policies

                            http://technet.microsoft.com/en-us/library/dd277403.aspx

                            How To Set, View, Change, or Remove Auditing for a File or Folder in Windows 2000

                            http://support.microsoft.com/kb/301640

                            Apply or modify auditing policy settings for a local file or folder

                            http://technet.microsoft.com/en-us/library/cc784387.aspx

                            1 Reply Last reply Reply Quote 1
                            • S
                              stacksofplates @scottalanmiller
                              last edited by

                              @scottalanmiller said in Auditing old files on your File Server:

                              The find command is all you need on Linux.

                              Systemd's systemd-tmpfiles-clean service is a good utility too.

                              1 Reply Last reply Reply Quote 0
                              • 1 / 1
                              • First post
                                Last post