NavigationRecent blog postsWho's onlineThere are currently 0 users and 3 guests online.
User loginCalendar |
Using flexbackupHow to set up a NAS-based backup-to-disk systemPrinciples of operationThe server mounts a volume from the NAS, then starts flexbackup. InstallationInstall flexbackup: I prepared a wrapper script (to be called in a crontab) that mounts NAS volume, runs database dumps, runs flexbackup ant finally umounts NAS volumes (download link at page bottom). On my servers I install this script in /usr/local/sbin/do_backup. ...perhaps you also need theseOther than flexbackup, other packages/commands are needed. Check if your server(s) have the following commands installed: ConfigurationAdd NAS volume to the server filesystemMost NAS offer their shared volumes as smbfs or (better) cifs shares. Maybe, in some cases the use of NFS should be desirable, but NFS is poorly supported (AFAIK, works smoothly on Synology hardware, gives serious troubles on Buffalo Terastations), and, since we're dealing with backups, better stick to an affordable method...
I usually prepare a shared, read-writable folder on the NAS, called flexbackup (what a fantasy!). On the server to be backed up, add a line to /etc/fstab: Configure flexbackupedit /etc/flexbackup.conf. Refer to man flexbackup.conf and to comments in the file itself. Automate the processLast, the backup process must be properly handled using cron, eliminating any possible user intervention. A reliable backup should not depend on human factors, shouldn't it? Sample crontab:
For those who can't live without a GUIHave a look at xelfbackup, a nice wrapper (with web-based reporting and control interface) to good oldflexbackup. Note: this section is still "in progress". At present, I just installed the wrapper and am figuring out how to properly configure and run. Eventually this will replace my do_backup script, in the meantime I still use do_backup. Stay tuned! Update [20090416] the do_backup script still does its job neatly: perhaps, it is a good wrapper script itself! Download package from sourceforge.
Compile it (make && make install)
|