{"action":"created","issue":{"url":"https://api.github.com/repos/GoogleCloudPlatform/gsutil/issues/284","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/gsutil/issues/284/labels{/name}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/gsutil/issues/284/comments","events_url":"https://api.github.com/repos/GoogleCloudPlatform/gsutil/issues/284/events","html_url":"https://github.com/GoogleCloudPlatform/gsutil/issues/284","id":93311795,"number":284,"title":"Option to backup modified or deleted files","user":{"login":"br1985","id":11139549,"avatar_url":"https://avatars.githubusercontent.com/u/11139549?v=3","gravatar_id":"","url":"https://api.github.com/users/br1985","html_url":"https://github.com/br1985","followers_url":"https://api.github.com/users/br1985/followers","following_url":"https://api.github.com/users/br1985/following{/other_user}","gists_url":"https://api.github.com/users/br1985/gists{/gist_id}","starred_url":"https://api.github.com/users/br1985/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/br1985/subscriptions","organizations_url":"https://api.github.com/users/br1985/orgs","repos_url":"https://api.github.com/users/br1985/repos","events_url":"https://api.github.com/users/br1985/events{/privacy}","received_events_url":"https://api.github.com/users/br1985/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-07-06T15:45:35Z","updated_at":"2015-08-01T14:04:43Z","closed_at":"2015-07-09T17:11:28Z","body":"In backup-like scenarios something similar to 'rsync -b' would be extreamly useful.\r\n\r\nThis options tells rsync to rename (appending specified suffix) and optionally move (to a specified directory) any file that is going to be overridden or deleted.\r\n\r\nWithout this simple automatic rsync-based backup jobs are just too risky. If something bad happens with the source (e.g. your files were accidentaly truncated) all changes will simply propagate to the target effectively destroying you backup.\r\n\r\nThe '-b' option prevents this and greatly simplifies your jobs.\r\n"},"comment":{"url":"https://api.github.com/repos/GoogleCloudPlatform/gsutil/issues/comments/126917503","html_url":"https://github.com/GoogleCloudPlatform/gsutil/issues/284#issuecomment-126917503","issue_url":"https://api.github.com/repos/GoogleCloudPlatform/gsutil/issues/284","id":126917503,"user":{"login":"mfschwartz","id":333551,"avatar_url":"https://avatars.githubusercontent.com/u/333551?v=3","gravatar_id":"","url":"https://api.github.com/users/mfschwartz","html_url":"https://github.com/mfschwartz","followers_url":"https://api.github.com/users/mfschwartz/followers","following_url":"https://api.github.com/users/mfschwartz/following{/other_user}","gists_url":"https://api.github.com/users/mfschwartz/gists{/gist_id}","starred_url":"https://api.github.com/users/mfschwartz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mfschwartz/subscriptions","organizations_url":"https://api.github.com/users/mfschwartz/orgs","repos_url":"https://api.github.com/users/mfschwartz/repos","events_url":"https://api.github.com/users/mfschwartz/events{/privacy}","received_events_url":"https://api.github.com/users/mfschwartz/received_events","type":"User","site_admin":false},"created_at":"2015-08-01T14:04:43Z","updated_at":"2015-08-01T14:04:43Z","body":"Hi Koen,\r\n\r\nI'm not clear on what the problem is that you're reporting. I believe gsutil's synchronizing only the live objects in versioned buckets is what you need to backup your data.\r\n\r\nAbout your second point: when you talk about \"modified files\" are you saying gsutil updated an object in the destination bucket (based on the source object having changed) and an archived version of that object didn't get created even though versioning is enabled on that bucket?\r\n\r\nIf not, please provide more detail about what you did and what didn't work as expected.\r\n\r\nThanks. "}}