Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a collection of directories.

I need a one-click way of backing up to an external drive, but only the most recent file within each directory.

How can I do that?

share|improve this question
    
Why need to differentiate files? Backup system won't backup another copy of a file, new files get added, old ones that match are skipped. But if you're rolling your own backup, I like rsync, since it'll just add new files and skip existing. Of course, you could do some fancy scripting using find, ls (sort by date), tail (or head) and probably xargs for simplicity. –  lornix Jul 22 '13 at 9:28
    
@lornix The OP is on Windows. –  slhck Jul 22 '13 at 9:41
    
@sihck: I know. There exists rsync for windows, and I prefer a straight copy type backup rather than being encumbered with some proprietary new-fangled compression scheme that won't be compatible with next month's update. KISS always works. But if OP was using something more.... scriptable... it's almost (almost!) trivial. Hey, how about powershell? It's like bash in .net (just kill me now!) –  lornix Jul 22 '13 at 9:45

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.