Hi,
I want to backup files and images that are 30 days, 60 days old and so on.. My script below finds all files on a certain directory ($DIR) that are X old days, but the scp command copies all files where I ran the script. I ran it under /home/Files_to_be_Moved/, all files under this folder were moved to the remove /home/data, not only the 30 day or 60 day old files. Can anybody help me? I just want to scp the files found by the "find" command on the script.
find $DIR -type f -mtime +$DAYS -exec scp -r -p -P22000 user@192.168.10.254:/home/data/ \; &
tia
