From 3e8fa614ac3f755e81299aab23fb96c3a29f0b60 Mon Sep 17 00:00:00 2001 From: admManuel Date: Sat, 2 Mar 2024 16:37:32 +0000 Subject: [PATCH] Update Windows/BackupGPO.md --- Windows/BackupGPO.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Windows/BackupGPO.md b/Windows/BackupGPO.md index 40a6228..170765b 100644 --- a/Windows/BackupGPO.md +++ b/Windows/BackupGPO.md @@ -81,4 +81,12 @@ Get-ChildItem -Path $path -Recurse -Force | Where-Object { !$_.PSIsContainer } | Get-ChildItem -Path $path -Recurse -Force | Where-Object { $_.PSIsContainer -and (Get-ChildItem -Path $_.FullName -Recurse -Force | Where-Object { !$_.PSIsContainer }) -eq $null } | Remove-Item -Force -Recurse Remove-Item -Path $temp -Force +``` + +## possible command for the cronjob on the linux system + +You can run this without the `-delete` and you will see affected files by the filter. +```bash +# -mtime +10 => older than 10 days +find /backup/gpos -mtime +10 -type f -delete ``` \ No newline at end of file