#!/opt/imh-python/bin/python3
"""Move cpanel backups to and from /home"""
sys.path.insert(0, '/opt/support/lib')
from arg_types import cpmove_file_type, path_in_home
def parse_args() -> tuple[Path, Path]:
"""Validate and return source and destination paths"""
parser = argparse.ArgumentParser(description=__doc__)
help='cPanel backup file',
help='destination folder',
args = parser.parse_args()
return args.src, args.dst
"""Validate input, then move a cpanel backup in or out of /home"""
source, dest_dir = parse_args()
dest = dest_dir.joinpath(source.name)
print(shlex.quote(str(source)), '->', shlex.quote(str(dest)))
if __name__ == '__main__':