Read through a bunch of threads on this but it doesn't seem totally clear what the best practice is. I work with the Cinema DNG video format which consists of thousands of RAW files. As a result, I move a lot of small files around quite a bit. I have scripts that I use to make moving footage around easier. For example:
This moves a segment of footage from the original folder to a source clip folder that has already been created. This has worked very well before moving to the NAS. If I do the above from a local terminal via the SMB share, it is slow and inefficient, but works. If I use SSH and issue the command on the TrueNAS server, it is hit or miss and I cannot make heads or tails of it.
Sometimes it works fine and the only issue is that SMB shares don't see the files are moved right away.
Other times and I cannot figure out why, it just doesn't want to execute at all and returns this:
Just to test permissions and folders, if I remove the range expression and issue this command to move just one file, it works fine:
I am a bit stumped. Anyone have any ideas? Why would it work sometimes? Ideally, I would like to move the files via SMB and avoid using SSH but it seems TrueNAS SMB gets bogged down when there are lots of little files (e.g. deleting lots of little files over SMB to TrueNAS takes a loooooong time to complete).
Code:
mv H238_C001_20190702_R1/H238_C001_20190702_R{01766..02023}.dng source/kyoto-gardens-02
This moves a segment of footage from the original folder to a source clip folder that has already been created. This has worked very well before moving to the NAS. If I do the above from a local terminal via the SMB share, it is slow and inefficient, but works. If I use SSH and issue the command on the TrueNAS server, it is hit or miss and I cannot make heads or tails of it.
Sometimes it works fine and the only issue is that SMB shares don't see the files are moved right away.
Other times and I cannot figure out why, it just doesn't want to execute at all and returns this:
Code:
mv: rename H238_C001_20190702_R1/H238_C001_20190702_R{01766..02023}.dng to source/kyoto-gardens-02/H238_C001_20190702_R{01766..02023}.dng: No such file or directory
Just to test permissions and folders, if I remove the range expression and issue this command to move just one file, it works fine:
Code:
mv H238_C001_20190702_R1/H238_C001_20190702_R01766.dng source/kyoto-gardens-02
I am a bit stumped. Anyone have any ideas? Why would it work sometimes? Ideally, I would like to move the files via SMB and avoid using SSH but it seems TrueNAS SMB gets bogged down when there are lots of little files (e.g. deleting lots of little files over SMB to TrueNAS takes a loooooong time to complete).