You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not sure how to summarize this except that it seems that there's some unintended behaviour when backing up over ssh where the src and dest parameters are mixed up.
This leads to the check for backup.marker running over the SSH connection on the source, and the latest link being created on the source.
Description
rsync-time-machine requires a backup marker on the source not dest when backing up over ssh
The destination directory is created on the SSH source
So edesk.local is my source, and I'm backing up to to machine the script is running on. I expect this to mirror the content of my remote folder (@edesk.local) to /tmp/... on the computer I run the command on.
Here is what happens the first time
/tmp via 🐍 v3.11.3 (rdiffdb-py3.11)
❯ rsync-time-machine [email protected]:/home/josh/Documents /tmp/edesk.local/Documents
rsync-time-machine.py: Safety check failed - the destination does not appear to be a backup folder or drive (marker file not found).
rsync-time-machine.py: If it is indeed a backup folder, you may add the marker file by running the following command:
rsync-time-machine.py: ssh -p 22 [email protected] 'mkdir -p -- "/tmp/edesk.local/Documents" ; touch "/tmp/edesk.local/Documents/backup.marker"'
As expected there is no backup marker, so it errors out.
However what's surprising here is that the command given is to add the backup marker, on the source (that is, edesk).
Now I have a backup directory created; but it's on edesk (the ssh source)!
I create the backup directory on destination
mkdir -p /tmp/edesk.local/Documents/
and now it completes without errors, I can run rsync-time-machine [email protected]:/home/josh/Documents /tmp/edesk.local/Documents and everything backs up.
However
There is no check for a backup.marker in this folder
The 'destination' folders are actually created on edesk
The latest folder is not created here but on edesk
The text was updated successfully, but these errors were encountered:
joshbrooks
changed the title
Backup over SSH
Backup over SSH confuses 'ssh' and 'local' commands?
Mar 25, 2024
Not sure how to summarize this except that it seems that there's some unintended behaviour when backing up over ssh where the
src
anddest
parameters are mixed up.This leads to the check for
backup.marker
running over the SSH connection on the source, and thelatest
link being created on the source.Description
rsync-time-machine
requires a backup marker on the source not dest when backing up over sshDetails
I'm backing up a folder over ssh with the command
So
edesk.local
is my source, and I'm backing up to to machine the script is running on. I expect this to mirror the content of my remote folder (@edesk.local) to/tmp/...
on the computer I run the command on.Here is what happens the first time
As expected there is no backup marker, so it errors out.
However what's surprising here is that the command given is to add the backup marker, on the source (that is,
edesk
).OK, we run that command suggested
and now we run backup the command again with the following result.
Now I have a backup directory created; but it's on edesk (the ssh source)!
I create the backup directory on destination
and now it completes without errors, I can run
rsync-time-machine [email protected]:/home/josh/Documents /tmp/edesk.local/Documents
and everything backs up.However
backup.marker
in this folderedesk
latest
folder is not created here but onedesk
The text was updated successfully, but these errors were encountered: