Backup NAS542
Options
![QmpCP](https://us.v-cdn.net/6029482/uploads/avatarstock/nB4T9R998KRTR.png)
QmpCP
Posts: 3
Freshman Member
![](https://www.zyxel.com/library/assets/zyxel-forum/freshman_member.png)
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
- 413 Beta Program
- 2.3K Nebula
- 192 Nebula Ideas
- 87 Nebula Status and Incidents
- 5.3K Security
- 142 USG FLEX H Series
- 253 Security Ideas
- 1.3K Switch
- 75 Switch Ideas
- 993 Wireless
- 51 Wireless Ideas
- 6.1K Consumer Product
- 231 Service & License
- 362 News and Release
- 74 Security Advisories
- 23 Education Center
- 5 [Campaign] Zyxel Network Detective
- 2.6K FAQ
- 34 Documents
- 34 Nebula Monthly Express
- 101 About Community
- 67 Security Highlight