-
Notifications
You must be signed in to change notification settings - Fork 20
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
Support for snapper snapshot structure #2
base: master
Are you sure you want to change the base?
Conversation
We should see why it fails, and fix it inside the function. What is the output of Thanks |
Hello, Indeed, sorry I misread and inverted the expected return code of exists_at_dst returns.
I don't have a directory containing all snapshots The listing of snapshots done by DSTS=( $( ls -d "$DST"/* 2>/dev/null ) ) looks for snapshots as direct subdirectories from the target path. What I need in this case is a way to specify that the snapshots are 1 level deeper from the main backup directory |
That's an interesting hierarchy... Where would the other snapshots go? |
I just faced the same issue. |
Hello, I'm back to this topic.
I doubt snapper will change this folder structure as it would be backward incompatible on an existing setup. I guess this setup was introduced because snapper generates a report file which cannot be in the snapshot, and is thus placed in the numbered folder. If you are open to introduce support to snapper and this folder hierarchy, I can contribute/validate the change. |
Certainly, it would be great to support snapper but I don't use it myself so I would need someone else that uses it to contribute this change. It is important only that the changes don't break current behavior |
@Dalmat Any progress on the changes needed for this, I would also benefit highly from it but not to sure how to go about writing the changes? |
The destination snapshot comparison does not work on my setup.
Actually exists_at_dst returns 1 when the snapshot already exists remotely
On the other side, "function_call && exit" only exit if the function_call return code is 0, i.e fine