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

Fix send first raw snapshots #101

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions pyznap/send.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,6 @@ def send_config(config):
resume = conf['resume'].pop(0) if conf.get('resume', None) else False
# check if we should create dataset if it doesn't exist
dest_auto_create = conf['dest_auto_create'].pop(0) if conf.get('dest_auto_create', None) else False

try:
_type, dest_name, user, host, port = parse_name(backup_dest)
except ValueError as err:
Expand Down Expand Up @@ -302,8 +301,10 @@ def send_config(config):
except DatasetNotFoundError:
if dest_auto_create:
logger.info('Destination {:s} does not exist, will create it...'.format(dest_name_log))
if create_dataset(dest_name, dest_name_log, ssh=ssh_dest):
if not raw:
if create_dataset(dest_name, dest_name_log, ssh=ssh_dest):
continue
pass
else:
logger.error('Destination {:s} does not exist, manually create it or use "dest-auto-create" option...'
.format(dest_name_log))
Expand Down