Skip to content

Tags: basnijholt/rsync-time-machine.py

Tags

v1.4.0

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Detect whether `--dry-run` was used and add it as a command line flag (

…#113)

v1.3.3

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
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

v1.3.2

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Allow root "/", closes #52 (#53)

v1.3.1

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
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]>

v1.3.0

No not access stdout of CmdResult

v1.2.0

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Set auto_delete_log correctly when using --log-dir (#24)

v1.1.0

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
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]>

v1.0.0

Add default version