Support

Akeeba Solo

#31623 backing up remote website with samba

Posted in ‘Akeeba Solo (standalone)’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

PHP version
n/a
Akeeba Solo version
n/a

Latest post by on Saturday, 07 September 2019 17:17 CDT

chuck
Is using a samba share a valid way to backup remote websites?

Is there another way that's superior?

dlb
I'm not sure I understand what you have in mind. Normally Solo is installed on the same server as the site you're trying to back up. Your license allows you to install Solo on multiple sites so a central installation is not necessary.

If you are thinking about post processing, I'm not sure that can be done via Samba share, but it can be done via WebDAV, which may be a choice on your target server.


Dale L. Brackin
Support Specialist


us.gifEnglish: native


Please keep in mind my timezone and cultural differences when reading my replies. Thank you!


????
My time zone is EST (UTC -5) (click here to see my current time in Philadelphia, PA)

chuck
I'm wanting to backup clients' websites from a central location. I have their sites on separate VPSs that aren't children of the server with Solo.
I could have Solo on each of their servers, but it would be easier to maintain and monitor one installation.

Solo is already designed to access remote databases. So if using samba, or another method to mount, does not have inherent problems, it might be an interesting way to set things up. Sounds like I might be a pioneer in this.

nicholas
Akeeba Staff
Manager
Since you are talking about Samba I assume you have a Linux VPS acting as the centralized backup server. You can always create mountpoints for Samba shares in your /etc/fstab using the cifs mount type and putting the credentials in a file referenced in the options. For details see this Ubuntu wiki post on mounting Windows shares permanently. At that point your site's root is basically a local path such as /mnt/site1. For all Solo cares, you have a local path. It doesn't need to know anything about the underlying filesystem and the OS won't tell it either. It is blissfully ignorant and works just fine :)

If your site servers are also Linux, however, I'd recommend using NFS instead of Samba for the network shares. It's a much faster protocol and you can definitely limit access only to your server. Please do not try using fish, sshfs or any such end-user-oriented solution; they are fine for the occasional file transfer but suffer horribly for performance when you're trying to access an entire site's files.

Nicholas K. Dionysopoulos

Lead Developer and Director

πŸ‡¬πŸ‡·Greek: native πŸ‡¬πŸ‡§English: excellent πŸ‡«πŸ‡·French: basic β€’ πŸ• My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

chuck
Thanks for the input Nicholas.

FYI. It's just too slow. Connection between the two servers clocked at 1.08 GB. But it took 1 hour for an 100 MB Joomla backup.

nicholas
Akeeba Staff
Manager
Samba is meant to be used for transferring few files, not a large amount of files with random access reads. Your best bet would be NFS with async on both the server and the client since we're only doing reads in our use case and don't care about filesystem consistency.

We basically want both ends to not bother too much with filesystem consistency. The backup assumes that some files may change during its run. We know from experience that this kind of potential inconsistency is tolerable in the context of a site backup. Moreover we want our client (the backup server) to use in-memory caching since we're doing random access reads to essentially the whole file every time. The reason we do random access is to prevent PHP from running out of memory or time. Having the client side use memory caching means the whole file is transferred from the web server's disk to the backup server's memory while our PHP code is compressing the file. To further understand the context of these options please read this first.

Nicholas K. Dionysopoulos

Lead Developer and Director

πŸ‡¬πŸ‡·Greek: native πŸ‡¬πŸ‡§English: excellent πŸ‡«πŸ‡·French: basic β€’ πŸ• My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

System Task
system
This ticket has been automatically closed. All tickets which have been inactive for a long time are automatically closed. If you believe that this ticket was closed in error, please contact us.

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!