bash backup script problem
On our server at work I have two scripts that run daily and monthly backups.
Currently the following line moves all files from the root and all subdirectories to one directory (in this instance 'Apr_10', which basically means it moves ALL backups into ONE folder). How can I change it so it only moves files found in the root folder (not the sub folders)?
find . -type f -print0 | xargs -0 mv -t $DIRNAME
I'm in the directory I need to be in and basically I just need to move all the files that have been backed up over the month in that directory (not sub-directories) to another date indexed folder. Maybe I need another command!
Last edited by sevenearths; May 11th, 2010 at 10:32 AM.
There is nothing common about sense - unknown