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

Error with symlink to folder #92

Closed
Loki3000 opened this issue Sep 22, 2017 · 2 comments
Closed

Error with symlink to folder #92

Loki3000 opened this issue Sep 22, 2017 · 2 comments
Labels

Comments

@Loki3000
Copy link
Contributor

Following case:

/path/to/backup <--backup folder
/backup <-- symlink to /path/to/backup

make buckup:

rtbackup /some/path/ /backup/

make another backup:

#expecting incremental backup
rtbackup /some/path/ /backup/
#as a result - new full backup

the reason is here
https://github.com/laurent22/rsync-time-backup/blob/master/rsync_tmbackup.sh#L205
and here
https://github.com/laurent22/rsync-time-backup/blob/master/rsync_tmbackup.sh#L63

find "/backup" -maxdepth 1 -type d //returns empty
find "/backup/" -maxdepth 1 -type d //returns list of dirs
@laurent22
Copy link
Owner

Right, that's indeed a problem. However, since we know that the destination and source don't have a / at the end (it's stripped off) I guess we could simply add it just when running the find command.

@laurent22 laurent22 added the bug label Sep 26, 2017
@Loki3000
Copy link
Contributor Author

Loki3000 commented Sep 26, 2017

I'm already added it in my own copy some days ago. As I can see it's works well.

Loki3000 added a commit to Loki3000/rsync-time-backup that referenced this issue Feb 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants