Re: search by date
Chris Collins wrote: Can somebody tell me how to search for files by the date they were created. Maybe somebody has a script they have created and would like to share. I have about 5000 files in different directories I would like to backup crated prior to 2003 and then delete. Any ideas? Check find(1) Unfortunately if you try to specify a specific age this is not in Unix time but in 24h intervals relative to when find was started. The -newer option on the other hand allows you to find all files created/accessed/modified since the times of a given file. The idea is that if you do incremental backups, you stamp a file in the backup dir and use that as reference to find which files have been modified since last backup. Cheers, Erik ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: search by date
> Can somebody tell me how to search for files by the date they were created. > Maybe somebody has a script they have created and would like to share. I > have about 5000 files in different directories I would like to backup crated > prior to 2003 and then delete. Any ideas? You can try stat() to pick up the creation/ last modified date. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: search by date
Chris Collins wrote: Hello Can somebody tell me how to search for files by the date they were created. Maybe somebody has a script they have created and would like to share. I have about 5000 files in different directories I would like to backup crated prior to 2003 and then delete. Any ideas? Thanks ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]" I am not sure this is possible, due to the filesystem not storing the creation date in the inode. Cheers Harley ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
search by date
Hello Can somebody tell me how to search for files by the date they were created. Maybe somebody has a script they have created and would like to share. I have about 5000 files in different directories I would like to backup crated prior to 2003 and then delete. Any ideas? Thanks ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"