(targetdir)
| 358 | |
| 359 | |
| 360 | def 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 ) |
| 365 | def restore_etc(targetdir): |
| 366 | if not targetdir.endswith("/"): targetdir += "/" |
| 367 | rsynccall = ["rsync","-ax","--delete"] + [targetdir,"/etc/"] |
nothing calls this directly
no test coverage detected