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 directory path with symlink fail in the latest version ? #83

Open
calamarim opened this issue Sep 8, 2024 · 11 comments
Open

Source directory path with symlink fail in the latest version ? #83

calamarim opened this issue Sep 8, 2024 · 11 comments

Comments

@calamarim
Copy link

calamarim commented Sep 8, 2024

Updating the rsync_time_machine.py to the latest version broke my backup script that ran for a year.

Hera a sample command & message

host:~$ /home/marcoc/rsync-time-machine.py/rsync_time_machine.py -p 22229 /mnt/win_d/Books   [email protected]:/mnt/backup/backup_Books
rsync-time-machine.py: [ERROR] Source folder '/mnt/win_d/Books' does not exist - aborting.

host:~$ ls -al /mnt/win_d
lrwxrwxrwx 1 root root 5 nov  3  2021 /mnt/win_d -> /home

host:~$ ls -l /mnt/win_d/Books
total 184
drwx------ 47 marcoc marcoc  4096 lug 31  2006 0_Articoli_Cassandra_Crossing
...
drwxr-xr-x  2 marcoc marcoc 12288 dic  4  2022 UAV
@basnijholt
Copy link
Owner

Do you know what version you ran before?

@calamarim
Copy link
Author

calamarim commented Sep 8, 2024 via email

@basnijholt
Copy link
Owner

Is that md5sum for the working version?

@calamarim
Copy link
Author

calamarim commented Sep 9, 2024 via email

@basnijholt
Copy link
Owner

Thank you for sharing that. This means that this commit has broken your script: ad5fc8d.

Investigating.

@basnijholt
Copy link
Owner

Could you share what you get when using this in the terminal:

test -e '/mnt/win_d/Books'; echo $?

@basnijholt
Copy link
Owner

basnijholt commented Sep 10, 2024

Also, can you rerun your backup command with --verbose?
So
/home/marcoc/rsync-time-machine.py/rsync_time_machine.py --verbose -p 22229 /mnt/win_d/Books [email protected]:/mnt/backup/backup_Books

@calamarim
Copy link
Author

calamarim commented Sep 10, 2024 via email

@calamarim
Copy link
Author

calamarim commented Sep 10, 2024 via email

@basnijholt
Copy link
Owner

That means that the test -e '/mnt/win_d/Books' command says the folder does not exist. This behavior has not changed since the initial release.

@calamarim
Copy link
Author

If I can suggest something, integrate the test -h, together test -e in the logic of existence control; something like an OR.
A folder whose path include a link of course exists

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