IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 9, 2019, 2:15:34 PM (7 years ago)
Author:
fairlamb
Message:

Added local rsync to subprocess and how to handle it in backups (functionally the same as cp)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ipp-259_genericise_backups/tools/backups/utils/subprocess_utils.py

    r40913 r40932  
    3434
    3535
     36def local_rsync_wrapper(args: [str]):
     37    if args is None:
     38        raise ValidationError(f"Error:no arguments provided to {local_rsync_wrapper.__name__}")
     39    command_and_args = ["rsync"] + args
     40    return simple_unix_wrapper(command_and_args)
     41
     42
    3643def simple_unix_wrapper(command_and_args: [str]):
    3744    """ This should provide the program name and all arguments in a list.
Note: See TracChangeset for help on using the changeset viewer.