Sync files based on file list (include files only in csv, txt)

Get help for specific problems
Posts: 2
Joined: 20 Mar 2021

lakend

Hi,

We have a list of files in text file (.CSV, excel) with full path and filename. We need to sync the files in that list to the target server if they are missing.

Is it possible to to sync files only listed in .CSV (or txt, excel file)? Meaning include only the files in the source list to be synced. Not the whole existing folder / filesetc.

Automated task failed and accidentally deleted some files on a server that we would need to recover quickly. There might have been file changes after this happened, so we don't wan't sync all files from our backup.

We would appreciate a quick reply if you have information how to do this.

Best Regards
User avatar
Posts: 4867
Joined: 11 Jun 2019

xCSxXenon

Depending on formatting, you may be able to just copy/paste from the .CSV into the include filters in FFS
Posts: 2
Joined: 20 Mar 2021

lakend

Thank you for your input.
We have about 10 000 files so I don't that will work very well.
User avatar
Posts: 4867
Joined: 11 Jun 2019

xCSxXenon

You may be able to find a batch script online that can parse the file to extract the filepaths and pipe them into a copy command or congregate them into their own .txt and use a forfiles