Which protocol (CIFS, SFTP or WebDav) to backup large amount of multi-user data?
That really depends on the specifics of the network, and how the storage appliance is designed.
If you absolutely have to mount the storage directory as a filesystem, you're pretty obviously stuck using either SMB/CIFS or SSHFS (which just needs working SFTP support on the storage device). Of those two, SMB is almost always going to get better performance for anything except bulk transfers (and for bulk transfers, either one may win out). If you can get working NFSv4 support (and you absolutely should be able to if it's an Ubuntu box, regardless of what the OEM says), that will usually outperform both SMB/CIFS and SSHFS most of the time.
If you just want to throw data across the network, then your options aren't much better to be honest. SFTP and SCP are what I would probably use in your situation because regular FTP (and FTPS, which is FTP over SSL) is crap, and WebDAV (regardless of if it's over HTTP or HTTPS) was not designed for bulk storage scenarios (DAV stands for Distributed Authoring and Versioning, which pretty well describes the fact that it was designed as an alternative to FTP for pushing content to web servers). In an ideal situation for that, I would either use rsync (if I had lots of files to transfer), or possibly just netcat (if I needed to just copy one big file).
Antonello
Updated on September 18, 2022Comments
-
Antonello over 1 year
I have a Linux server (Ubuntu 16.04) where I would like to mount an external "storage box" where to periodically backup several terabyte of server's data (both high and low-frequency changing), possibly keeping track of user's attributes (owner/group/permissions).
The provider of these storage box offers the following protocols: FTP, FTPS, SFTP, SCP, Samba/CIFS, HTTPS, WebDAV
Which backup tool should I consider? If you suggest rsync, as I would have first to mount the data locally, which protocol should I prefer for the mounting ? Would it be possible to backup user's attributes (i.e. mapping users between server and host ) ?
-
Stéphane Chazelas over 6 yearsYou mean those storage boxes don't have
rsync
support natively (overssh
or directly)? Have they got at leastssh
support? What's the storage technology on them? If ZFS/btrfs, you could possibly usezfs send
/btrfs send
. -
Stéphane Chazelas over 6 years
scp
would suggest they havessh
. I'd be surprised if you couldn't usersync
without mounting the FS. Network file system will always be slower than a syncing method over a TCP connection.
-
-
AdminBee over 2 yearsPlease note that this answer does not seem to address the actual question - "which protocol to use" for backing up data.
-
Zim over 2 years@AdminBee It just answers the asker's last question -- "Would it be possible to backup user's attributes (i.e. mapping users between server and host ) ?"