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

resume function #11

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

yveskretzschmar
Copy link

this is a really quick and dirty resume function by writing current filepos of every worker to file
needed this because i wanted to sync really big files and when ssh disconnected the sync process began from the first block

i use this in a bash script like this:

until python /opt/remotebackup/blocksync.py [ ... ]
do
sleep 30
done
rm syncpos*$(basename $image)*

i hope this helps and someone can rework this in a better way

resume function by writing current filepos of every worker to file
@theraser
Copy link
Owner

Sorry for the late answer, for some reason there was no notification about the PR...

This is a interesting feature, thanks! I'm just a little bit worried about what happens when you don't want this feature to be enabled. I think there should be an additional command line option for enabling/disabling this feature because most people would expect a similar behavior to rsync, which always starts at the beginning. Could you integrate this, too?

And would it be useful to remove the syncpos-files automatically after a complete sync of a file is finished? In case of a lost connection as you described it it is good to leave the files as they are, but in case of a finished sync those files are not required anymore until you start a new sync.

@klemens-u
Copy link
Contributor

+1 for this feature!

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

Successfully merging this pull request may close these issues.

3 participants