Tags: basnijholt/rsync-time-machine.py
Tags
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
Add space to SSH command to fix error when using -i option (#46) * Add space to SSH command to fix error when using -i option Using the `-i` option to supply a SSH key fails with the error 'Safety check failed - the destination does not appear to be a backup folder or drive (marker file not found).' This seems to be because of a missing space in the SSH parsing code which means that the key address and the SSH address get munged together. This pull request simply adds a space between them. * add space elsewhere to make test pass * oops --------- Co-authored-by: Bas Nijholt <[email protected]>
Add exclusion_file documentation and --exclude-from argument (#18) * Add exclusion_file documentation and --exclude-from argument * chore(docs): update TOC * obvious expanding * Update README.md * Add tutorial link * Rephrase * Update README.md * Rephrase * Update README.md * Add Hacker News and Reddit * add backticks * Update README.md --------- Co-authored-by: basnijholt <[email protected]>