SMB vs FTP Topic is solved

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
eglider86
Posts: 50
Joined: Sat Mar 20, 2021 10:12 am

SMB vs FTP

Post by eglider86 »

Hi,
I am setting up a backup server to provide back for my Samba based NAS.
My question is whether i should use another samba server or an ftp server is better for computing resources requirement. In other words, which one, the samba or the ftp server is lighter.
thanks
User avatar
trendy
Posts: 362
Joined: Tue Feb 25, 2020 2:54 pm

Re: SMB vs FTP

Post by trendy »

If you cannot use NFS for some reason, FTP is lighter.
eglider86
Posts: 50
Joined: Sat Mar 20, 2021 10:12 am

Re: SMB vs FTP

Post by eglider86 »

So instead of SMB, NFS is lighter and better for hosting backup files?
User avatar
trendy
Posts: 362
Joined: Tue Feb 25, 2020 2:54 pm

Re: SMB vs FTP

Post by trendy »

It is lighter. Regarding what is better for backup files, it has to do with the local file system.
User avatar
Joulinar
Posts: 5688
Joined: Sat Nov 16, 2019 12:49 am

Re: SMB vs FTP

Post by Joulinar »

on NFS you could preserve file system permission and owner, while on SAMBA this might be lost if you copy files over
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
User avatar
WarHawk
Posts: 774
Joined: Thu Jul 20, 2017 8:55 am

Re: SMB vs FTP

Post by WarHawk »

rsync would probably be a good idea...

https://www.2daygeek.com/linux-rsync-sc ... erse-mode/
https://medium.com/axcess-io/understand ... bcb20791d0

This way you could rsync thru scp and only upload the changes and not eat up all your valuable bandwidth
User avatar
Joulinar
Posts: 5688
Joined: Sat Nov 16, 2019 12:49 am

Re: SMB vs FTP

Post by Joulinar »

well rsync is a tool t copy data but you still need the server hosting the target directories. And for this NFS would be best option. And yes, if this is setup, you can use rsync to backup the data ;)
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
eglider86
Posts: 50
Joined: Sat Mar 20, 2021 10:12 am

Re: SMB vs FTP

Post by eglider86 »

My last question on the topic is cifs. I just want to understand it correctly.
So samba and cifs used to be different sharing protocol, but now it is united and by installing samba, cifs is also installed along, and makes multi user environment possible. Am i correct?
User avatar
Joulinar
Posts: 5688
Joined: Sat Nov 16, 2019 12:49 am

Re: SMB vs FTP

Post by Joulinar »

Well CIFS is a form of SMB. There no real difference if it comes down to file system permissions.

https://www.varonis.com/blog/cifs-vs-smb/
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
eglider86
Posts: 50
Joined: Sat Mar 20, 2021 10:12 am

Re: SMB vs FTP

Post by eglider86 »

I see. The question emerged while setting up a multi user smb environment. When i installed smb, cifs was also installed.
Post Reply