check_files_for_backup_remote
- check_files_for_backup_remote(files: list[str], directory: str, backup_dir: str, remote_user: str, remote_host: str, port: int | None) list[str][source]
Checks which files have been backed up on a remote server.
- Parameters:
files (list[str]) – List of filenames to check.
directory (str) – The local directory containing the files.
backup_dir (str) – The remote backup directory.
remote_user (str) – Username on remote system.
remote_host (str) – Remote hostname or IP.
port (int | None) – SSH port.
- Returns:
List of full paths of files that can be safe to remove locally.
- Return type:
list[str]