I’d appreciate it if everyone could just stop burning fossil fuels, please. Thank you for your cooperation.

  • 0 Posts
  • 20 Comments
Joined 2 years ago
cake
Cake day: November 3rd, 2023

help-circle

















  • I was going to give some suggestions, but it’s easiest to say it like this:

    if ( ! test -d ~/Backups ) ; then exit; fi
    cd ~/Backups
    count=`ls -d Main-* | wc -l`
    if [ count -gt 11] ; then 
        rm -rf `ls -rtd Main-* | head -$((count - 11))`
    fi
    rsync -aL ~/Main Main-`date -Ihours`
    

    You’d run something like that every six hours. Don’t expect it to work, but maybe it could help get you started.