Good afternoon,
I have just set up my first FreeBSD server for a client. My client has two Windows workstations that are going to be replaced.
At issue is that I need to copy the documents, spreadsheets, PDF's, etc. from the old workstation to the new ones. Normally not an issue, except the old users have put their documents and stuff all over the HDD. I mean I found documents in c:\Program Files(x86), I see documents in the Windows system directories, etc. The old workstations are a mess.
I have performed an offline backup to the RAID on the FreeBSD server via Samba shares. So I have a complete copy of the mess on the server.
What I need now is a CLI to search through the entire backup.
Then I need to pipe find's output into cp such as
I am not senior enough with the CLI to know how to do this, and I have to be back at the job site tomorrow to continue to the port over of my client from Windows to FreeBSD. So I really don't have a lot of time for personal experimentation.
I do keep a record of "HowTo's" on my system that the answer to this post will be kept in, so that once I receive an answer for a "HowTo", I document it so I don't repeat the post in the future.
Will someone please assist me in constructing a CLI to do what I am after? Or point me to a utility in the ports tree that will?
Thank you for your assistance.
Sincerely and respectfully,
Dave
I have just set up my first FreeBSD server for a client. My client has two Windows workstations that are going to be replaced.
At issue is that I need to copy the documents, spreadsheets, PDF's, etc. from the old workstation to the new ones. Normally not an issue, except the old users have put their documents and stuff all over the HDD. I mean I found documents in c:\Program Files(x86), I see documents in the Windows system directories, etc. The old workstations are a mess.
I have performed an offline backup to the RAID on the FreeBSD server via Samba shares. So I have a complete copy of the mess on the server.
What I need now is a CLI to search through the entire backup.
find /RAID-1/<usersharedfolder> -name "*.doc"
Then I need to pipe find's output into cp such as
cp <find's results> <target directory>
.I am not senior enough with the CLI to know how to do this, and I have to be back at the job site tomorrow to continue to the port over of my client from Windows to FreeBSD. So I really don't have a lot of time for personal experimentation.
I do keep a record of "HowTo's" on my system that the answer to this post will be kept in, so that once I receive an answer for a "HowTo", I document it so I don't repeat the post in the future.
Will someone please assist me in constructing a CLI to do what I am after? Or point me to a utility in the ports tree that will?
Thank you for your assistance.
Sincerely and respectfully,
Dave