Umzug von flashsd

This commit is contained in:
Olli Graf
2023-01-11 13:44:47 +01:00
commit be273b1a11
3 changed files with 128 additions and 0 deletions

13
rmoldest.sh Executable file
View File

@@ -0,0 +1,13 @@
#!/usr/bin/env bash
files_to_remove=$(find . -maxdepth 1 -type f|cut -c3-|xargs ls -t|tail -3)
echo "eldest files ${files_toremove}"
for backupfile in ${files_to_remove}; do
echo "deleting backup ${backupfile}"
done