Polanskiman

Server to DSM backup: your opinion

Recommended Posts

Little help from the community here, 

 

I am having a hard time choosing between two possible scenarios backup wise. Here is the deal. I need to backup a server (full backup - cpanel). 

I have looked into rsync but I want to avoid that due to SSH needing to be open. So I opted for FTP. Here are the two options I have:

 

1 - push option: create the backup from a script directly on the server then push the backup to DSM via FTP. This implies the script containing both cpanel credential of the server and DSM FTP credentials. The script that can be used for that can be found here: https://github.com/eduardoestrella/cPanel-automated-system-backup

 

2 - pull option: This option does not involve any script on the server, instead it is done from a script on DSM by logging into the remote server, mirroring the content and packaging all in tar.gz. This could be summarised by the following link https://evotec.xyz/how-to-backup-ftp-to-synology/

 

What do you guys think would be the best approach?

 

Thank you.

Share this post


Link to post
Share on other sites

I''ve used Duplicati for encrypted over the internet backups between devices, not Synology, but there is a third Syno party package, https://www.duplicati.com/download. Source runs Duplicati, target setup as a WebDAV server, https://www.synology.com/en-uk/knowledgebase/DSM/tutorial/File_Sharing/How_to_access_files_on_Synology_NAS_with_WebDAV

 

Of your two scenarios above 2) looks to me a 'better' approach.

Share this post


Link to post
Share on other sites

Personally I'd go with option 2.

Share this post


Link to post
Share on other sites
20 hours ago, sbv3000 said:

I''ve used Duplicati for encrypted over the internet backups between devices, not Synology, but there is a third Syno party package, https://www.duplicati.com/download. Source runs Duplicati, target setup as a WebDAV server, https://www.synology.com/en-uk/knowledgebase/DSM/tutorial/File_Sharing/How_to_access_files_on_Synology_NAS_with_WebDAV

 

Of your two scenarios above 2) looks to me a 'better' approach.

 

Thanks but duplicati is not an option. The server I am backing up is on a shared server. I can't install third party applications.

 

16 hours ago, Dfds said:

Personally I'd go with option 2.

 

At both: why option 2?

 

Also, I am unsure whether choosing option 2 does a proper full cPanel backup (by proper I mean a backup that can be restored through cPanels restore function) compared to doing it directly on the server. If anyone has some info on that it would be appreciated.

Share this post


Link to post
Share on other sites

For me purely because it kept everything in DSM.

Share this post


Link to post
Share on other sites
5 hours ago, Dfds said:

For me purely because it kept everything in DSM.

same here, one stop shop to setup and control using DSM

Share this post


Link to post
Share on other sites

Well that makes sense. My only concern is that cPanel backup thing. I am not entirely sure if doing the backup from DSM does in fact do a proper cPanel backup. It will of course backup all directories in the account but not sure if many of those directory will be restorable. Will investigate that. Thanks for the input to both.

Share this post


Link to post
Share on other sites

I guess the only way to know for sure if it's going to work the way you want is to test it.

Share this post


Link to post
Share on other sites

That's not an option. Testing a restore file on a live server is not really the kind of test that one should carry out. If for some reason the restore file is faulty then we could be talking several hours of downtime.

Share this post


Link to post
Share on other sites
3 hours ago, Polanskiman said:

That's not an option. Testing a restore file on a live server is not really the kind of test that one should carry out. If for some reason the restore file is faulty then we could be talking several hours of downtime.

 

On a live server I would agree, however you do need to perform some kind of disaster recovery test to verify that what you're doing to safeguard the data is actually going to work. If a backup / DR server isn't possible then I  would have thought a little bit of time invested in creating a couple of VM's for the purpose would be time well spent.

Share this post


Link to post
Share on other sites

That's not really an option either. As I said this is a live server with a hosting company running cPanel and on a shared server. No way I can reproduce that on a VM exactly as is. Anyway, thank you for the input. 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now