MCPcopy Create free account
hub / github.com/apache/cloudstack / backup_etc

Function backup_etc

python/lib/cloud_utils.py:360–364  ·  view source on GitHub ↗
(targetdir)

Source from the content-addressed store, hash-verified

358
359
360def backup_etc(targetdir):
361 if not targetdir.endswith("/"): targetdir += "/"
362 check_call( ["mkdir","-p",targetdir] )
363 rsynccall = ["rsync","-ax","--delete"] + ["/etc/",targetdir]
364 check_call( rsynccall )
365def restore_etc(targetdir):
366 if not targetdir.endswith("/"): targetdir += "/"
367 rsynccall = ["rsync","-ax","--delete"] + [targetdir,"/etc/"]

Callers

nothing calls this directly

Calls 1

check_callFunction · 0.70

Tested by

no test coverage detected