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

Function restore_etc

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

Source from the content-addressed store, hash-verified

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/"]
368 check_call( rsynccall )
369def remove_backup(targetdir):
370 check_call( ["rm","-rf",targetdir] )
371

Callers

nothing calls this directly

Calls 1

check_callFunction · 0.70

Tested by

no test coverage detected