On Fri, Jan 21, 2011 at 11:07 AM, <cac...@quantum-sci.com> wrote: > > Well thanks to some help from you guys I seem to have my backup server almost > fully running and functional with rsync. Amazing functions, this > snapshotting and rsync. > > I still don't know why I cannot remove snapshots though. (Debian Testing with > 2.6.32-28) > > And I don't know how to reach out from the backup server to the HTPC and stop > MythTV there, so I can export the Mysql database safely, from a cron job on > the backup server. Suggestions?
Simplified, but workable: #!/bin/sh ssh someu...@mythtv.pc "/path/to/some/script stop" /path/to/your/rsync/script ssh someu...@mythtv.pc "/path/to/some/script start" The above script would be your backup wrapper script, that gets called by cron. On the HTPC, "/path/to/some/script" would be a script that takes 2 arguments (stop|start). The stop argument would stop mythtv using the init script for it. Then would do whatever you need to do to the database (stop it, dump it, whatever). The start argument would do the reverse, starting the database and MythTV. And, "/path/to/your/rsync/script" would call your actual backups script that runs rsync. -- Freddie Cash fjwc...@gmail.com -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html