Here is my script
#!/bin/sh
instance=${1:-palace}
root=${2:-/home/angeleyez/palaceserver} cp $root/$instance/psdata/pserver.pat $root/$instance/psdata/backup/pserver`date +%y%m%d`.pat cp $root/$instance/psdata/pserver.prefs $root/$instance/psdata/backup/pserver`date +%y%m%d`.prefs This script is ran daily. The one thing that I need
to do is set it so after those are 5 days old the script deletes them. ( the
backups) as it would become hectic after a few months.
How do I have it delete the files that are 5 days
old?
--------------
Jesse Angell PalaceUnlimited.com #1 Palace Host |
- Re: Bash scripting Jesse Angell
- Re: Bash scripting Cameron Simpson
- Re: Bash scripting Jesse Angell
- Re: Bash scripting Thierry ITTY
- Re: Bash scripting Cameron Simpson
- Re: Bash scripting rpjday
- Re: Bash scripting Karl O . Pinc
- Re: Bash scripting dbrett
- Re: Bash scripting rpjday