0

I am trying to cleanup a 12TB Windows FTP with several million files.

Basically, I want to keep the directories that are still being used by a specific subset of users who had access, and only keep them if they were modified within the last year.

Is there a file copy tool that would allow me to do this? I reviewed robocopy, but it did not seem to have the syntax to filter by user, only file age.

Thanks! Adam

ATSiem
  • 113

1 Answers1

3

If it were me, I'd write a script for this:

find /mnt/ftp -user 'myuser' -mtime -365 -exec cp {} /home/me/tosend  \;

That command will work in Linux. If you are using Windows, then the same can probably be accomplished with Cygwin. Either way, you want to make sure the FTP is mounted to the filesystem first.

krowe
  • 287