<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rsyncshot/.gitignore, branch main</title>
<subtitle>Time Machine–style rsync snapshots for Linux — hardlinked and space-cheap
</subtitle>
<id>https://git.cjennings.net/rsyncshot/atom?h=main</id>
<link rel='self' href='https://git.cjennings.net/rsyncshot/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://git.cjennings.net/rsyncshot/'/>
<updated>2026-06-25T16:04:58+00:00</updated>
<entry>
<title>chore: stop tracking todo.org</title>
<updated>2026-06-25T16:04:58+00:00</updated>
<author>
<name>Craig Jennings</name>
<email>c@cjennings.net</email>
</author>
<published>2026-06-25T16:04:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.cjennings.net/rsyncshot/commit/?id=e44391ed2422dcc759c9e5972bfd3aecf8216e26'/>
<id>urn:sha1:e44391ed2422dcc759c9e5972bfd3aecf8216e26</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fix: harden rsyncshot destination, rotation, and mount handling</title>
<updated>2026-06-25T05:07:31+00:00</updated>
<author>
<name>Craig Jennings</name>
<email>c@cjennings.net</email>
</author>
<published>2026-06-25T05:07:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.cjennings.net/rsyncshot/commit/?id=03a9ff353721ba8fb5f37cad2546d25788011451'/>
<id>urn:sha1:03a9ff353721ba8fb5f37cad2546d25788011451</id>
<content type='text'>
Refuse to run when REMOTE_PATH or MOUNTDIR is empty or non-absolute. A blank config value otherwise resolves the destination to the filesystem root, where rotation runs rm -rf and --delete.

Run the rotation cp/mv/rm as bare command names in remote mode, resolved by the remote PATH, instead of hardcoded /usr/bin paths that broke on remotes whose binaries live elsewhere. Resolve the real binary via command -v in local mode.

Pass rsync -R so each source is stored under its full path. Two includes sharing a basename (/usr/local/bin and /usr/bin) previously both mapped to latest/bin, and the second sync's --delete wiped the first. This changes the stored layout: /usr/local/bin now lives at latest/usr/local/bin instead of latest/bin. /home and /etc are unchanged.

Add rsync --numeric-ids so /etc and /home ownership survives a restore when the destination has a different passwd/group database.

Match mount points exactly via is_mounted() instead of a substring grep of /proc/mounts, so /media/backup no longer matches /media/backup2, paths compare literally, and mount points with spaces work.

Reject a retention count below 1, which previously still created one snapshot. Drop the grep "|| echo 0" that emitted a stray second line, assemble ssh options as arrays, and quote the RSYNC_RSH identity path.

Extract derive_paths() and is_mounted() as sourceable functions and add unit, rsync-flag, and gated remote-mode test suites. The suite now runs 36 tests, and shellcheck is clean across the script and tests.
</content>
</entry>
<entry>
<title>restructure: move docs/ to .ai/ + sync latest template</title>
<updated>2026-04-20T13:36:28+00:00</updated>
<author>
<name>Craig Jennings</name>
<email>c@cjennings.net</email>
</author>
<published>2026-04-20T13:36:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.cjennings.net/rsyncshot/commit/?id=2e895830798d1685c35f24e595896b5caa4fdbcc'/>
<id>urn:sha1:2e895830798d1685c35f24e595896b5caa4fdbcc</id>
<content type='text'>
Per claude-templates c36fd14. Claude tooling moves to hidden .ai/;
project-level docs/ reserved for real documentation.
</content>
</entry>
<entry>
<title>Add .gitignore and increase rsync I/O timeout to 10 minutes</title>
<updated>2026-02-08T03:50:59+00:00</updated>
<author>
<name>Craig Jennings</name>
<email>c@cjennings.net</email>
</author>
<published>2026-02-08T03:50:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.cjennings.net/rsyncshot/commit/?id=c7a4275791dfc85c7c49ef8418e78f70c5093807'/>
<id>urn:sha1:c7a4275791dfc85c7c49ef8418e78f70c5093807</id>
<content type='text'>
Add .gitignore for docs/ and inbox/. Increase rsync --timeout from
300s to 600s for slower connections.
</content>
</entry>
</feed>
