<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, Dec 23, 2016 at 10:38 AM, Daryl McDonald <span dir="ltr"><<a href="mailto:darylangela@gmail.com" target="_blank">darylangela@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Greetings Mythizens, I'm looking for an elegant way to backup my database not only to the standard location /mythtv/DBbackups but also to a separate always on PC. Right now i can access it through the "connect to server" option in Ubuntu "files".<div>Myth runs on one Ubuntu machine FE/BE and wakes up for recordings, I have a gigabit LAN (cat5 between the two boxes) with the primary Ubuntu/ZoneMinder box running 24/7. What are my options?</div></div></blockquote></div><br></div><div class="gmail_extra">Not sure if this is what you're looking for, but here's what it sounds like:<br><br></div><div class="gmail_extra">A) Mount the always-on system to the mountpoint of your choice on the system where your database server is running (or at least where your DB backup is performed). My db-server is the same as my BE/FE.  I have windows systems mounted with cifs (and I have Samba running in the same workgroup as the Windows systems, too.)  I have a NAS mounted with nfs.<br></div><div class="gmail_extra">B) Add to whatever script does your current local backups the appropriate commands to duplicate the newly created backup file(s) to the remote mounted drive(s) of your choice.  I use something like:<br>             # rsync -aP --delete-during   /<path to backup>/<backup directory>/   /<remote mount point>/<remote path>/<remote backup directory>/<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">I use /usr/bin/mythconverg_backup to do the basic backup with parameters that only keep a set number of the latest backups around.  The --delete-during option to rsync takes care of cleaning up the remote directory to match. I intentionally end both the source and the destination parameters to the rsync command because I _really_ mean I want to have the contents of the source _directory_ replicated in the destination _directory_ and I get in too much trouble when I try to get too elegant/efficient.<br><br></div><div class="gmail_extra">Hope this helps.<br><br>--<br></div><div class="gmail_extra">Craig.<br></div></div>