NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
john_es
Apr 17, 2014Aspirant
Copy/move between shares is sloooooooooooow...
I have SSH'd into my 316 and am doing cp and mv's... trying to move a bunch of data from one share to another (/data/share1 to /data/share2). It's slow. Like, really slow (maybe 90 seconds per GB)...
rotordave
May 11, 2014Aspirant
To keep the thread constructive, here is a script I wrote to at least reduce the effort to one command line:
I've left the -i switch in the "rm" command to keep it safe when testing the first time. The last argument is the destination...
Example:
#!/bin/bash
tail=${@:$#}
echo -- Moving $(($#-1)) files to "$tail"
for i in "$@"
do
if [ "$i" != "$tail" ]; then
echo -- Copying "$i" to "$tail"
cp -av --reflink "$i" "$tail"
echo -- Deleting "$i"
rm -irv "$i"
fi
done
I've left the -i switch in the "rm" command to keep it safe when testing the first time. The last argument is the destination...
Example:
script-name file1 second\ file\ with\ spaces /data/another\ share
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!