Kod: Zaznacz cały
#!/bin/bash
find /volume1/Monitoring -name "*.*" -type f -mtime +7 -not -path '*/#recycle/*' -print -delete;
Kod: Zaznacz cały
#!/bin/bash
find /volume1/Monitoring -name "*.*" -type f -mtime +7 -not -path '*/#recycle/*' -print -delete;
Kod: Zaznacz cały
#!/bin/bash
find /volume1/Monitoring -type d -name "#recycle" -prune -o -type f -name "*.*" -mtime +7 -exec mv {} /volume1/Monitoring/#recycle \;