i am doing regular mysqldump to backup databases daily.
the files are gzipped and store (via scp) into another server (let's call it server B)
filename format is
I want to write a shell script such that i can draw the data and at the same time, maintain only up to 7 days worth of data
I use $today=`date -I' to get the today's date format so can store in the file...
but to calculate today's date minus x no. of days?
hope its clear enough