+ if os.path.exists(os.path.join(host_dir, todays_date)):
+ #There is a snapshot for today, removing it and creating a new one
+ try:
+ check_call(shlex.split("btrfs subvol delete %s"%(os.path.join(host_dir, todays_date))))
+ except CalledProcessError as ex:
+ pass