|
I'm assuming you want to get your staging system installed with the packages and options you want for your production server, then magically cause the production server to adopt the new packages and options.
I'm thinking rsync isn't the way to go to for this. The interdependencies are such that copying files basically in random order, as rsync would do, could be very bad for running programs that access those files. You could set something up to stop running programs that depend on changed files, etc, but you would basically end up making your own package manager.
You might consider messing around with I think /var/cache/debconf/config.dat. I believe it's posisble to preload package installation options there. You might be able to copy that from your staging server version to at least get the package installation options over. Might be better ways to do that, but I think that works. If you ever change package options on the production server independent of the staging server, you'd have to reconcile the differences.
After you get the default installation options transferred, it might be simplest just to install all staging server packages to the production server. If a package is already loaded, it won't hurt to have it try to install it again, it will just say it can't be upgraded or something.
You might be able to use the rsync method if you shut down your production linode, mount its file system under another running configuration, rsync that, then restart it. But I assume you want to avoid shutting down your production server and then waiting for an rsync to complete.
Good luck.
|