Sorting all files of home folder modified after a specific date for backup
Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Data backup: Sorting all files of home directory modified after a specific date
Here's what I'd like to be able to do. I'm sure it's possible, but not sure how to go about it using the command line.
Let's say I burned my entire home directory on November 1, 2006 onto a DVD. I'd now like to burn a new backup DVD, but I don't want to recopy all of the stuff I'd already saved on Nov 1, 2006, just the files that were written or modified on and after Nov 1, 2006; in other words, all files in the home directory, but also all files in all subdirectories written/modified after Nov 1, 2006. I would like to leave the home directory intact (no changes). Is this possible?
I know that 'ls -tl' lists files in order from the most recently modified/written to the least recent. The recursive (-r) option could be used, and I could also pipe the results of it into another command... copy them (cp) into another directory, for example. I could then burn the contents of the new directory and discard it once the DVD has been burned. I can't figure out how to choose a specific date and time and to get only the files that were written/modified after that point. Even if I did know how to do that, I wouldn't know what the best way of doing so would be.