LINUX LITE 7.2 FINAL RELEASED - SEE RELEASE ANNOUNCEMENTS SECTION FOR DETAILS


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
file copy from fat/ntfs - only copy newer files
#1
Hi.

Background (may be boring stuff)
This is one of my MS windows habits when it comes to copy files from my digital camera to local disk. When I used windows, I always used to use MS explorer and sort files by attributes - because that way, I was able to sort out new files only - that is the files where the attribute archive are set. And from there, I could easilly copy only new files from memory card to disk, and then unset the archive attributes for all files on SD-card that was copied.
I have found no way of being able to sort the files in same way using Thunar. Assume the archive attribute is a fat/ntfs feature only.

So I think I need help to solve the problem in either of two ways:

1. copy files - but only those files where archive attribute is set.
In MS-dos / windows command line - the command is xcopy /A.

2. Copy files - but only those that is changed after given date.
This also work for me. The "only copy files achive attribute set" solution would be the best one because about every digital camera utilize fat filesystem, and I don't need to look at the files using a file manager to look for the last date after last time I copied files from camera.

3. Same as 2 - but store a timestamp for when the file copy operation occured last time
Don't know if this is possible. I thinking of storing a local file onto the sd card (in the camera). That text file should consist of one line only, and that is a string that contains the date and time. That time stamp should be changed every time the file copy is done.
And - for every file copy operation, only the files that has a timestamp that is newer than the time stored in text file should be copied.


Tanks
I won't let an old, but fully functional computer die just because some company tell me that they won't make no more security updates to their OS. Thanks Linux Smile
Reply


Messages In This Thread
file copy from fat/ntfs - only copy newer files - by Sprintrdriver - 12-30-2017, 05:27 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)