Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: filter ssh commands where dest is not over ssh (#58)
This is one possible solution for the issue I'm facing where some commands: - check for `backup marker` - check that `dest` folder exists - creating the `latest` symlink were actually running on the `src` instead of the `dest`. Run `verbose` and you would note that some commands are now run locally Args are: `--verbose [email protected]:/home/josh/Documents /tmp/edesk.local/Documents ` Snipped output shows where some commands which used to be run `remote` are now run locally ``` rsync-time-machine.py: Running remote command: test -e '/home/josh/Documents' rsync-time-machine.py: Running local command: find '/tmp/edesk.local/Documents/backup.marker' rsync-time-machine.py: Command output: /tmp/edesk.local/Documents/backup.marker rsync-time-machine.py: Running local command: find '/tmp/edesk.local/Documents/' -maxdepth 1 - rsync-time-machine.py: Running remote command: find '/tmp/edesk.local/Documents/backup.inprogress' ... rsync-time-machine.py: Running local command: rm -f -- '/tmp/edesk.local/Documents/latest' rsync-time-machine.py: Running local command: ln -s -- '2024-03-25-172323' '/tmp/edesk.local/Documents/latest' rsync-time-machine.py: Running remote command: rm -f -- '/tmp/edesk.local/Documents/backup.inprogress' ``` * fix: filter ssh commands where dest is not over ssh * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * linting
- Loading branch information