Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    How to delete 400 GB in /usr/local/sarg-reports/ ?

    Scheduled Pinned Locked Moved pfSense Packages
    7 Posts 4 Posters 3.9k Views
    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.
    • U
      unguzov
      last edited by

      I have a big squid log and sarg reports make 450 GB reports and eat all free space! I removed sarg package and want my space back. So i just tried

      rm -rf sarg-reports/
      

      but this takes one day to remove 5% of the files. Is there a faster way to delete this folder and get space back to the OS?

      1 Reply Last reply Reply Quote 0
      • marcellocM
        marcelloc
        last edited by

        you do not need to remove sarg package, just select how many days to keep reports and enable compress on schedules on gui options and it will save space and do the rm -rf for you.

        I'm not sure if there is a faster way to remove it.

        Treinamentos de Elite: http://sys-squad.com

        Help a community developer! ;D

        1 Reply Last reply Reply Quote 0
        • U
          unguzov
          last edited by

          I remove it because I need to solve problem with the space first an then install and reconfigure again. When disk is full you can not login on GUI page because PHP doesn't work  ;)

          I can not find faster way to delete files. My current progress: 20%…

          1 Reply Last reply Reply Quote 0
          • jimpJ
            jimp Rebel Alliance Developer Netgate
            last edited by

            you can open multiple ssh sessions and rm different subdirectories from each shell. That's the only way it might get faster, and even that's a stretch.

            It's just not a very speedy filesystem operation when it comes to that amount of data.

            Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

            Need help fast? Netgate Global Support!

            Do not Chat/PM for help!

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

              I seem to remember that the fastest way to remove huge amount of files would be using: find -delete

              1 Reply Last reply Reply Quote 0
              • jimpJ
                jimp Rebel Alliance Developer Netgate
                last edited by

                If you have a bunch of files in a single directory, yes, but if it's a whole tree you're looking to remove, rm on its own is faster I believe.

                Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                Need help fast? Netgate Global Support!

                Do not Chat/PM for help!

                1 Reply Last reply Reply Quote 0
                • U
                  unguzov
                  last edited by

                  Ok, after 3 days files are deleted…
                  @jimp: I tried multiple SSH sessions but I just want to find some magic hack and delete like NTFS - just mark file as deleted and space is free. But now I know - just wait  ;)

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post
                  Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.