• SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Use a NAS to backup a web server

stefan

New Around Here
I want to backup my web server using a NAS via rsync. I want the NAS to "pull" the backup files from the web server at a scheduled time. Once the backup files have been rsynced to the NAS, I would like to keep them in separate folders by date.

Can a NAS do this (I dont mind having to write a script for this)? I like the features of the Synology DS211j, but did not see any options for it to "pull" files from another server.
 
Synology (and QNAP) can rsync to a target or be a target. But can't "pull" backups.

Why not have the web server rsync to the NAS? The server is going to have to support rsync anyway.
 
Synology (and QNAP) can rsync to a target or be a target. But can't "pull" backups.

Can you write your own shell scripts on those NAS?


Why not have the web server rsync to the NAS? The server is going to have to support rsync anyway.


If the web server gets hacked, hackeers could then delete everything off the NAS as well.
 
Can you write your own shell scripts on those NAS?

Yes you can, on QNap, and I suspect Synology, you can make a Cron entries to run a script or even just run rsync.

You'll need to run RSync in Daemon mode on the web server, then from the shell level on the NAS put either a script or an rsync entry in your crontab on the NAS.

Hope that helps
 
Yes you can, on QNap, and I suspect Synology, you can make a Cron entries to run a script or even just run rsync.

You'll need to run RSync in Daemon mode on the web server, then from the shell level on the NAS put either a script or an rsync entry in your crontab on the NAS.

Hope that helps

Thanks for the info. :)

I also want folders and files after x days to be deleted. Would this also have to be done with a script or can the Qnap or synology be configured to do this with the GUI?
 

Similar threads

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top