Can someone script something for me real quick in bash. This cold and fever and meds has my head all messed up but I want to get linuxrocks backups running again.
if backup-1.tar.gz exist then backup-2.tar.gz
if -1 and -2 exist then backup-1.tar.gz
tar -czvf /home/backups/backup-$n.tar.gz /home/mastodon/live/public/
the script I tried don't seem to wanna work basically I just want two copies of public folder. So simple yet cant seem to think clearly to get it to work