Posts Tagged ‘synology’

Have a site without a server and want to test the speed?

Login to Synology and navigate to somewhere writable e.g. Volume1

wget https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py

Make the speedtest.py script executable.

chmod +x speedtest.py

Run SpeedTest
./speedtest.py

VN:F [1.9.22_1171]
Rating: 10.0/10 (1 vote cast)
VN:F [1.9.22_1171]
Rating: +1 (from 1 vote)

Recently I wanted to copy a load of files from a server to a Synology NAS. 

You can use Synology GUI to map a remote file using SMB with a username and password. You can then reference that folder for an RSYNC copy to do the inital sync then copy changes 

The RSYNC Command is below

rsync –archive –progress –verbose –inplace –exclude ‘*@SynoResource’ –exclude ‘@eaDir’ –exclude ‘*.vsmeta’ –exclude ‘.DS_Store’ ‘/volume1/Remote/Dir/’ ‘/volume1/Dir/’ >> /volume1/DIR/log1.txt 2>&1

Just to show you –Archive is equals -rlptgoD (no -H,-A,-X)  , so it will overwrite newer files with the older ones so only use the above for the initial sync

To replicate the rest when the new volume is being used do

rsync -rlptgoDu –progress –verbose –inplace –exclude ‘*@SynoResource’ –exclude ‘@eaDir’ –exclude ‘*.vsmeta’ –exclude ‘.DS_Store’ ‘/volume1/Remote/Dir/’ ‘/volume1/Dir/’ >> /volume1/DIR/log1.txt 2>&1

 

VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)