Backup NAS542
QmpCP
Posts: 3 Freshman Member
There is a problem with NAS542. I'm trying to backup 5 Tb data from NAS to Ubuntu Server via SSH:
- ssh -T -c aes128-gcm@openssh.com -o Compression=no -x root@10.100.0.1 '(cd /i-data/sysvol/; tar cf - Resource | mbuffer -m 1024M | sudo tar xf -
But average speed is ~10 MB/s (~80 Mbit/s). iperf NAS with Ubuntu Server shows 850 Mbit/s.
If I mount Resource of NAS via cifs (smb) at Ubuntu Server, it starts faster but after time it starts copy one file (300 Kb) for 5 seconds. Used commands:
- tar cf - /mnt/NAS/Resource | mbuffer -m 1024M | (cd /home/backup/; sudo tar xf -)
- ls /mnt/NAS/Resource | xargs -n1 -P2 -I{} rsync -Pa "{}" /home/backup
Speed via SSH stable but slow. Speed via mounting resource high but only first time.
Is there any way to:
- Speed up SSH transfer or...
- Solve problem with speed comes to 0 via rsync/tar with mounting (smb/cifs)?
0
Accepted Solution
-
Really? Shame on me.I'll tell you a secret. The server part of MetaRepository is powered by (busybox) inetd. That was the result of the search for the smallest (in bytes) possible solution. And for some reason which I can't remember anymore I also added nc to the busybox binary. So by executing/i-data/sysvol/.PKG/MetaRepository/bin/busybox-metarepo ncyou'll have your nc. (Or create a symlink).Another option is to install Entware netcat. But that is a bit heavy for just installing nc.0
All Replies
-
Resource mounted by:
- sudo mount -t cifs //10.100.0.1/Resource /mnt/NAS/Resource -o username="backup",password="password"
0 -
I think the CPU of the NAS maxes out on encryption of a 80mbit stream. Try netcat instead.
0 -
Is there any way to add nc to NAS? Wasn't found it at RandomTools.
0 -
Really? Shame on me.I'll tell you a secret. The server part of MetaRepository is powered by (busybox) inetd. That was the result of the search for the smallest (in bytes) possible solution. And for some reason which I can't remember anymore I also added nc to the busybox binary. So by executing/i-data/sysvol/.PKG/MetaRepository/bin/busybox-metarepo ncyou'll have your nc. (Or create a symlink).Another option is to install Entware netcat. But that is a bit heavy for just installing nc.0
Categories
- All Categories
- 414 Beta Program
- 2.2K Nebula
- 131 Nebula Ideas
- 91 Nebula Status and Incidents
- 5.4K Security
- 179 USG FLEX H Series
- 258 Security Ideas
- 1.4K Switch
- 71 Switch Ideas
- 1K Wireless
- 36 Wireless Ideas
- 6.2K Consumer Product
- 236 Service & License
- 372 News and Release
- 79 Security Advisories
- 24 Education Center
- 5 [Campaign] Zyxel Network Detective
- 2.9K FAQ
- 34 Documents
- 34 Nebula Monthly Express
- 80 About Community
- 69 Security Highlight