Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Source folder does not exist" when backing up from a remote system via ssh #36

Closed
chri2 opened this issue Sep 26, 2023 · 2 comments
Closed

Comments

@chri2
Copy link

chri2 commented Sep 26, 2023

I downloaded rsync-time-machine.py and tried the following:

someuser@pureos:~/tmp/backup$ ./rsync_time_machine.py '[email protected]:/data' target
rsync-time-machine.py: [ERROR] Source folder '/data' does not exist - aborting.

But I'm quite sure the source folder does exist:

someuser@pureos:~/tmp/backup$ ssh '[email protected]' ls -ld /data
drwxr-xr-x 5 root root 4096  3. Sep 19:56 /data
someuser@pureos:~/tmp/backup$ ssh '[email protected]' ls -l /data
insgesamt 12
drwxr-xr-x  6 root root 4096 16. Sep 2022  home
drwxr-xr-x  5 root root 4096 12. Sep 16:25 opt
drwxr-xr-x 14 root root 4096 30. Aug 2022  var

I then thought that the script maybe looks for the folder locally on my system instead of checking the existence on the remote system and tried the following:

someuser@pureos:~/tmp/backup$ ./rsync_time_machine.py '[email protected]:/data' target
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 -- "target" ; touch "target/backup.marker"'
someuser@pureos:~/tmp/backup$ ls target/backup.marker
target/backup.marker

Seems to indicate that the source folder when backing up from a ssh source seems to be checked locally.

@chri2
Copy link
Author

chri2 commented Sep 26, 2023

Followed up by #37

@basnijholt
Copy link
Owner

Took a while but this is fixed in v1.3.1 via #46

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants