uyuni-project / contrib

Collection of tools that are are not (yet!) officially part of the Uyuni product
8 stars 5 forks source link

Create last_update_export.py #23

Open josephoaks opened 5 months ago

josephoaks commented 5 months ago

This script is designed for use in a "disconnect" environment. The host server is to do daily exports based on last build of a channel. This script looks at the list of channels, gets the ChannelLastBuildByID and checks if the date is the current date or prior and then exports that channel.

Logging is provided as well to show which channels were updated in that export.

The target server can then rsync the /mnt/export directory and run another script to execute the inter-server-sync import of the exported data.