New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Need help crontab keep recent x file
Im looking solution for my rsync database backup server, because im paranoid rather than delete x day i think its safer to keep several file not getting delete.
bash script to Delete all files but keep the most recent X files in bash.
lets say 5 max file, if new file coming, the last old file get delete, so i can maintain storage.
Thanked by 1linuxthefish
Comments
not working here
solution from my old friend https://paste.ee/p/IGOUS#sThRNXmBTxvRsaWdEcgpzPw97imFCLN3
case can be closed
work here. dir= directory