{"action":"created","issue":{"url":"https://api.github.com/repos/digint/btrbk/issues/37","labels_url":"https://api.github.com/repos/digint/btrbk/issues/37/labels{/name}","comments_url":"https://api.github.com/repos/digint/btrbk/issues/37/comments","events_url":"https://api.github.com/repos/digint/btrbk/issues/37/events","html_url":"https://github.com/digint/btrbk/issues/37","id":99382417,"number":37,"title":"new command/option to update targets only (make no new snapshot)","user":{"login":"chaosjug","id":3767486,"avatar_url":"https://avatars.githubusercontent.com/u/3767486?v=3","gravatar_id":"","url":"https://api.github.com/users/chaosjug","html_url":"https://github.com/chaosjug","followers_url":"https://api.github.com/users/chaosjug/followers","following_url":"https://api.github.com/users/chaosjug/following{/other_user}","gists_url":"https://api.github.com/users/chaosjug/gists{/gist_id}","starred_url":"https://api.github.com/users/chaosjug/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chaosjug/subscriptions","organizations_url":"https://api.github.com/users/chaosjug/orgs","repos_url":"https://api.github.com/users/chaosjug/repos","events_url":"https://api.github.com/users/chaosjug/events{/privacy}","received_events_url":"https://api.github.com/users/chaosjug/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-06T08:10:39Z","updated_at":"2015-08-07T09:47:11Z","closed_at":null,"body":"I have a USB drive as one target for my snapshots which isn't connected most of the time.\r\nWhat I would like to do, is connect it once in a while and sync the snapshot (copy missing and delete old). At the moment this means that I have to connect the drive, make sure it is mounted and wait for the cron-job to happen. Or start the backup manually which will result in two snapshots for the same day.\r\nWhat I'm missing is a new command or a option for the \"run\" command to prevent btrbk from making new snapshots, just making sure all targets are up to date.\r\nThis would also be useful in case a remote server was down during the backup."},"comment":{"url":"https://api.github.com/repos/digint/btrbk/issues/comments/128659018","html_url":"https://github.com/digint/btrbk/issues/37#issuecomment-128659018","issue_url":"https://api.github.com/repos/digint/btrbk/issues/37","id":128659018,"user":{"login":"digint","id":7590973,"avatar_url":"https://avatars.githubusercontent.com/u/7590973?v=3","gravatar_id":"","url":"https://api.github.com/users/digint","html_url":"https://github.com/digint","followers_url":"https://api.github.com/users/digint/followers","following_url":"https://api.github.com/users/digint/following{/other_user}","gists_url":"https://api.github.com/users/digint/gists{/gist_id}","starred_url":"https://api.github.com/users/digint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/digint/subscriptions","organizations_url":"https://api.github.com/users/digint/orgs","repos_url":"https://api.github.com/users/digint/repos","events_url":"https://api.github.com/users/digint/events{/privacy}","received_events_url":"https://api.github.com/users/digint/received_events","type":"User","site_admin":false},"created_at":"2015-08-07T09:47:11Z","updated_at":"2015-08-07T09:47:11Z","body":"If I understand it right, you need something like a \"-r  --resume-only\" command line option, then you would be able to run btrbk by hand as soon as the USB stick is plugged in:\r\n\r\n```\r\n# btrbk -r /mnt/btr_pool/src_subvolume\r\n```\r\n\r\nwhile still having a daily cron job running btrbk.\r\n\r\nI've been already thinking of implementing this, this should be pretty straight-forward.\r\n\r\nFor now, you can solve your problem by creating a separate config file for the manual run:\r\n\r\n```\r\nbtrbk -c /etc/btrbk/btrbk.conf.usbdrive\r\n```\r\n\r\n/etc/btrbk/btrbk.conf.usbdrive:\r\n```\r\nvolume /mnt/btr_pool\r\n  subvolume src_subvolume\r\n    snapshot_preserve_daily  all\r\n    snapshot_create          no\r\n    resume_missing           yes\r\n\r\n    target_preserve_[...]\r\n\r\n    target send-receive  /mnt/usb_stick/btrbk/\r\n```"}}