Open LeadSeason opened 3 months ago
Some commands to handel backup files
List files older than 14 days find -mtime +14 List files newer than 14 days find -mtime -14
find -mtime +14
find -mtime -14
For testing Create a file 3 days old. touch -d "3 days ago" test_3d
touch -d "3 days ago" test_3d
Done. Check in in a months time.
Some commands to handel backup files
List files older than 14 days
find -mtime +14
List files newer than 14 daysfind -mtime -14
For testing Create a file 3 days old.
touch -d "3 days ago" test_3d