{"action":"opened","number":4202,"pull_request":{"url":"https://api.github.com/repos/sqlcollaborative/dbatools/pulls/4202","id":222720612,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIyNzIwNjEy","html_url":"https://github.com/sqlcollaborative/dbatools/pull/4202","diff_url":"https://github.com/sqlcollaborative/dbatools/pull/4202.diff","patch_url":"https://github.com/sqlcollaborative/dbatools/pull/4202.patch","issue_url":"https://api.github.com/repos/sqlcollaborative/dbatools/issues/4202","number":4202,"state":"open","locked":false,"title":"Added custom timestamps, file and directory templating, and document NUL device backups","user":{"login":"Stuart-Moore","id":5613670,"node_id":"MDQ6VXNlcjU2MTM2NzA=","avatar_url":"https://avatars0.githubusercontent.com/u/5613670?v=4","gravatar_id":"","url":"https://api.github.com/users/Stuart-Moore","html_url":"https://github.com/Stuart-Moore","followers_url":"https://api.github.com/users/Stuart-Moore/followers","following_url":"https://api.github.com/users/Stuart-Moore/following{/other_user}","gists_url":"https://api.github.com/users/Stuart-Moore/gists{/gist_id}","starred_url":"https://api.github.com/users/Stuart-Moore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Stuart-Moore/subscriptions","organizations_url":"https://api.github.com/users/Stuart-Moore/orgs","repos_url":"https://api.github.com/users/Stuart-Moore/repos","events_url":"https://api.github.com/users/Stuart-Moore/events{/privacy}","received_events_url":"https://api.github.com/users/Stuart-Moore/received_events","type":"User","site_admin":false},"body":"<!-- Below information IS REQUIRED with every PR -->\r\n## Type of Change\r\n<!-- What type of change does your code introduce -->\r\n - [ ] Bug fix (non-breaking change, fixes #<enter issue number>)\r\n - [x] New feature (non-breaking change, adds functionality)\r\n - [ ] Breaking change (effects multiple commands or functionality)\r\n - [x] Ran manual Pester test and has passed (`.\\tests\\manual.pester.ps1)\r\n - [ ] Adding code coverage to existing functionality\r\n - [x] Pester test is included\r\n - [ ] Nunit test is included\r\n - [ ] Documentation\r\n - [ ] Build system\r\n \r\n<!-- Below this line you can erase anything that is not applicable -->\r\n### Purpose\r\nPeople can now pass in a custom timestamp format using the standard .Net options\r\n\r\nCan now also pass in a templated path and backup name\r\n\r\nDocument backup to NUL, which has been in there for a while just no one knew 🙄 \r\n\r\n### Approach\r\n<!-- How does this change solve that purpose -->\r\n\r\n### Commands to test\r\nCustom Timestamp:\r\n```\r\nBackup-DbaDatabase -SqlInstance server1 -TimeStampFormat yyyyMMdd-hhmmss\r\n```\r\n\r\nParamterised backups:\r\n```\r\nBackup-DbaDatabase -SqlInstance server1\\inst1 -Database master -BackupDirectory c:\\backups\\instancename\\dbname\\backuptype\\  -BackupFileName dbname-timestamp-backuptype.bak -ReplaceInName -BuildPath\r\n```\r\nwill backup to c:\\backups\\inst1\\master\\Full\\master-201810141552.bak\r\n\r\n","created_at":"2018-10-14T14:53:21Z","updated_at":"2018-10-14T14:53:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":{"login":"Stuart-Moore","id":5613670,"node_id":"MDQ6VXNlcjU2MTM2NzA=","avatar_url":"https://avatars0.githubusercontent.com/u/5613670?v=4","gravatar_id":"","url":"https://api.github.com/users/Stuart-Moore","html_url":"https://github.com/Stuart-Moore","followers_url":"https://api.github.com/users/Stuart-Moore/followers","following_url":"https://api.github.com/users/Stuart-Moore/following{/other_user}","gists_url":"https://api.github.com/users/Stuart-Moore/gists{/gist_id}","starred_url":"https://api.github.com/users/Stuart-Moore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Stuart-Moore/subscriptions","organizations_url":"https://api.github.com/users/Stuart-Moore/orgs","repos_url":"https://api.github.com/users/Stuart-Moore/repos","events_url":"https://api.github.com/users/Stuart-Moore/events{/privacy}","received_events_url":"https://api.github.com/users/Stuart-Moore/received_events","type":"User","site_admin":false},"assignees":[{"login":"Stuart-Moore","id":5613670,"node_id":"MDQ6VXNlcjU2MTM2NzA=","avatar_url":"https://avatars0.githubusercontent.com/u/5613670?v=4","gravatar_id":"","url":"https://api.github.com/users/Stuart-Moore","html_url":"https://github.com/Stuart-Moore","followers_url":"https://api.github.com/users/Stuart-Moore/followers","following_url":"https://api.github.com/users/Stuart-Moore/following{/other_user}","gists_url":"https://api.github.com/users/Stuart-Moore/gists{/gist_id}","starred_url":"https://api.github.com/users/Stuart-Moore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Stuart-Moore/subscriptions","organizations_url":"https://api.github.com/users/Stuart-Moore/orgs","repos_url":"https://api.github.com/users/Stuart-Moore/repos","events_url":"https://api.github.com/users/Stuart-Moore/events{/privacy}","received_events_url":"https://api.github.com/users/Stuart-Moore/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":173004249,"node_id":"MDU6TGFiZWwxNzMwMDQyNDk=","url":"https://api.github.com/repos/sqlcollaborative/dbatools/labels/Feature","name":"Feature","color":"84b6eb","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/sqlcollaborative/dbatools/pulls/4202/commits","review_comments_url":"https://api.github.com/repos/sqlcollaborative/dbatools/pulls/4202/comments","review_comment_url":"https://api.github.com/repos/sqlcollaborative/dbatools/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sqlcollaborative/dbatools/issues/4202/comments","statuses_url":"https://api.github.com/repos/sqlcollaborative/dbatools/statuses/44587edfe1f69567353e5b308be7c85694799e47","head":{"label":"sqlcollaborative:backupname","ref":"backupname","sha":"44587edfe1f69567353e5b308be7c85694799e47","user":{"login":"sqlcollaborative","id":22203347,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyMjAzMzQ3","avatar_url":"https://avatars3.githubusercontent.com/u/22203347?v=4","gravatar_id":"","url":"https://api.github.com/users/sqlcollaborative","html_url":"https://github.com/sqlcollaborative","followers_url":"https://api.github.com/users/sqlcollaborative/followers","following_url":"https://api.github.com/users/sqlcollaborative/following{/other_user}","gists_url":"https://api.github.com/users/sqlcollaborative/gists{/gist_id}","starred_url":"https://api.github.com/users/sqlcollaborative/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sqlcollaborative/subscriptions","organizations_url":"https://api.github.com/users/sqlcollaborative/orgs","repos_url":"https://api.github.com/users/sqlcollaborative/repos","events_url":"https://api.github.com/users/sqlcollaborative/events{/privacy}","received_events_url":"https://api.github.com/users/sqlcollaborative/received_events","type":"Organization","site_admin":false},"repo":{"id":30215226,"node_id":"MDEwOlJlcG9zaXRvcnkzMDIxNTIyNg==","name":"dbatools","full_name":"sqlcollaborative/dbatools","private":false,"owner":{"login":"sqlcollaborative","id":22203347,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyMjAzMzQ3","avatar_url":"https://avatars3.githubusercontent.com/u/22203347?v=4","gravatar_id":"","url":"https://api.github.com/users/sqlcollaborative","html_url":"https://github.com/sqlcollaborative","followers_url":"https://api.github.com/users/sqlcollaborative/followers","following_url":"https://api.github.com/users/sqlcollaborative/following{/other_user}","gists_url":"https://api.github.com/users/sqlcollaborative/gists{/gist_id}","starred_url":"https://api.github.com/users/sqlcollaborative/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sqlcollaborative/subscriptions","organizations_url":"https://api.github.com/users/sqlcollaborative/orgs","repos_url":"https://api.github.com/users/sqlcollaborative/repos","events_url":"https://api.github.com/users/sqlcollaborative/events{/privacy}","received_events_url":"https://api.github.com/users/sqlcollaborative/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/sqlcollaborative/dbatools","description":"PowerShell module to help SQL Server Pros be more productive","fork":false,"url":"https://api.github.com/repos/sqlcollaborative/dbatools","forks_url":"https://api.github.com/repos/sqlcollaborative/dbatools/forks","keys_url":"https://api.github.com/repos/sqlcollaborative/dbatools/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sqlcollaborative/dbatools/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sqlcollaborative/dbatools/teams","hooks_url":"https://api.github.com/repos/sqlcollaborative/dbatools/hooks","issue_events_url":"https://api.github.com/repos/sqlcollaborative/dbatools/issues/events{/number}","events_url":"https://api.github.com/repos/sqlcollaborative/dbatools/events","assignees_url":"https://api.github.com/repos/sqlcollaborative/dbatools/assignees{/user}","branches_url":"https://api.github.com/repos/sqlcollaborative/dbatools/branches{/branch}","tags_url":"https://api.github.com/repos/sqlcollaborative/dbatools/tags","blobs_url":"https://api.github.com/repos/sqlcollaborative/dbatools/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sqlcollaborative/dbatools/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sqlcollaborative/dbatools/git/refs{/sha}","trees_url":"https://api.github.com/repos/sqlcollaborative/dbatools/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sqlcollaborative/dbatools/statuses/{sha}","languages_url":"https://api.github.com/repos/sqlcollaborative/dbatools/languages","stargazers_url":"https://api.github.com/repos/sqlcollaborative/dbatools/stargazers","contributors_url":"https://api.github.com/repos/sqlcollaborative/dbatools/contributors","subscribers_url":"https://api.github.com/repos/sqlcollaborative/dbatools/subscribers","subscription_url":"https://api.github.com/repos/sqlcollaborative/dbatools/subscription","commits_url":"https://api.github.com/repos/sqlcollaborative/dbatools/commits{/sha}","git_commits_url":"https://api.github.com/repos/sqlcollaborative/dbatools/git/commits{/sha}","comments_url":"https://api.github.com/repos/sqlcollaborative/dbatools/comments{/number}","issue_comment_url":"https://api.github.com/repos/sqlcollaborative/dbatools/issues/comments{/number}","contents_url":"https://api.github.com/repos/sqlcollaborative/dbatools/contents/{+path}","compare_url":"https://api.github.com/repos/sqlcollaborative/dbatools/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sqlcollaborative/dbatools/merges","archive_url":"https://api.github.com/repos/sqlcollaborative/dbatools/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sqlcollaborative/dbatools/downloads","issues_url":"https://api.github.com/repos/sqlcollaborative/dbatools/issues{/number}","pulls_url":"https://api.github.com/repos/sqlcollaborative/dbatools/pulls{/number}","milestones_url":"https://api.github.com/repos/sqlcollaborative/dbatools/milestones{/number}","notifications_url":"https://api.github.com/repos/sqlcollaborative/dbatools/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sqlcollaborative/dbatools/labels{/name}","releases_url":"https://api.github.com/repos/sqlcollaborative/dbatools/releases{/id}","deployments_url":"https://api.github.com/repos/sqlcollaborative/dbatools/deployments","created_at":"2015-02-02T23:50:31Z","updated_at":"2018-10-14T03:58:54Z","pushed_at":"2018-10-14T14:45:00Z","git_url":"git://github.com/sqlcollaborative/dbatools.git","ssh_url":"git@github.com:sqlcollaborative/dbatools.git","clone_url":"https://github.com/sqlcollaborative/dbatools.git","svn_url":"https://github.com/sqlcollaborative/dbatools","homepage":"https://dbatools.io","size":91622,"stargazers_count":688,"watchers_count":688,"language":"PowerShell","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":371,"mirror_url":null,"archived":false,"open_issues_count":327,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":371,"open_issues":327,"watchers":688,"default_branch":"development"}},"base":{"label":"sqlcollaborative:development","ref":"development","sha":"40d2e530ecc64c7d28e71cec493c2c23fd81d727","user":{"login":"sqlcollaborative","id":22203347,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyMjAzMzQ3","avatar_url":"https://avatars3.githubusercontent.com/u/22203347?v=4","gravatar_id":"","url":"https://api.github.com/users/sqlcollaborative","html_url":"https://github.com/sqlcollaborative","followers_url":"https://api.github.com/users/sqlcollaborative/followers","following_url":"https://api.github.com/users/sqlcollaborative/following{/other_user}","gists_url":"https://api.github.com/users/sqlcollaborative/gists{/gist_id}","starred_url":"https://api.github.com/users/sqlcollaborative/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sqlcollaborative/subscriptions","organizations_url":"https://api.github.com/users/sqlcollaborative/orgs","repos_url":"https://api.github.com/users/sqlcollaborative/repos","events_url":"https://api.github.com/users/sqlcollaborative/events{/privacy}","received_events_url":"https://api.github.com/users/sqlcollaborative/received_events","type":"Organization","site_admin":false},"repo":{"id":30215226,"node_id":"MDEwOlJlcG9zaXRvcnkzMDIxNTIyNg==","name":"dbatools","full_name":"sqlcollaborative/dbatools","private":false,"owner":{"login":"sqlcollaborative","id":22203347,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyMjAzMzQ3","avatar_url":"https://avatars3.githubusercontent.com/u/22203347?v=4","gravatar_id":"","url":"https://api.github.com/users/sqlcollaborative","html_url":"https://github.com/sqlcollaborative","followers_url":"https://api.github.com/users/sqlcollaborative/followers","following_url":"https://api.github.com/users/sqlcollaborative/following{/other_user}","gists_url":"https://api.github.com/users/sqlcollaborative/gists{/gist_id}","starred_url":"https://api.github.com/users/sqlcollaborative/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sqlcollaborative/subscriptions","organizations_url":"https://api.github.com/users/sqlcollaborative/orgs","repos_url":"https://api.github.com/users/sqlcollaborative/repos","events_url":"https://api.github.com/users/sqlcollaborative/events{/privacy}","received_events_url":"https://api.github.com/users/sqlcollaborative/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/sqlcollaborative/dbatools","description":"PowerShell module to help SQL Server Pros be more productive","fork":false,"url":"https://api.github.com/repos/sqlcollaborative/dbatools","forks_url":"https://api.github.com/repos/sqlcollaborative/dbatools/forks","keys_url":"https://api.github.com/repos/sqlcollaborative/dbatools/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sqlcollaborative/dbatools/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sqlcollaborative/dbatools/teams","hooks_url":"https://api.github.com/repos/sqlcollaborative/dbatools/hooks","issue_events_url":"https://api.github.com/repos/sqlcollaborative/dbatools/issues/events{/number}","events_url":"https://api.github.com/repos/sqlcollaborative/dbatools/events","assignees_url":"https://api.github.com/repos/sqlcollaborative/dbatools/assignees{/user}","branches_url":"https://api.github.com/repos/sqlcollaborative/dbatools/branches{/branch}","tags_url":"https://api.github.com/repos/sqlcollaborative/dbatools/tags","blobs_url":"https://api.github.com/repos/sqlcollaborative/dbatools/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sqlcollaborative/dbatools/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sqlcollaborative/dbatools/git/refs{/sha}","trees_url":"https://api.github.com/repos/sqlcollaborative/dbatools/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sqlcollaborative/dbatools/statuses/{sha}","languages_url":"https://api.github.com/repos/sqlcollaborative/dbatools/languages","stargazers_url":"https://api.github.com/repos/sqlcollaborative/dbatools/stargazers","contributors_url":"https://api.github.com/repos/sqlcollaborative/dbatools/contributors","subscribers_url":"https://api.github.com/repos/sqlcollaborative/dbatools/subscribers","subscription_url":"https://api.github.com/repos/sqlcollaborative/dbatools/subscription","commits_url":"https://api.github.com/repos/sqlcollaborative/dbatools/commits{/sha}","git_commits_url":"https://api.github.com/repos/sqlcollaborative/dbatools/git/commits{/sha}","comments_url":"https://api.github.com/repos/sqlcollaborative/dbatools/comments{/number}","issue_comment_url":"https://api.github.com/repos/sqlcollaborative/dbatools/issues/comments{/number}","contents_url":"https://api.github.com/repos/sqlcollaborative/dbatools/contents/{+path}","compare_url":"https://api.github.com/repos/sqlcollaborative/dbatools/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sqlcollaborative/dbatools/merges","archive_url":"https://api.github.com/repos/sqlcollaborative/dbatools/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sqlcollaborative/dbatools/downloads","issues_url":"https://api.github.com/repos/sqlcollaborative/dbatools/issues{/number}","pulls_url":"https://api.github.com/repos/sqlcollaborative/dbatools/pulls{/number}","milestones_url":"https://api.github.com/repos/sqlcollaborative/dbatools/milestones{/number}","notifications_url":"https://api.github.com/repos/sqlcollaborative/dbatools/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sqlcollaborative/dbatools/labels{/name}","releases_url":"https://api.github.com/repos/sqlcollaborative/dbatools/releases{/id}","deployments_url":"https://api.github.com/repos/sqlcollaborative/dbatools/deployments","created_at":"2015-02-02T23:50:31Z","updated_at":"2018-10-14T03:58:54Z","pushed_at":"2018-10-14T14:45:00Z","git_url":"git://github.com/sqlcollaborative/dbatools.git","ssh_url":"git@github.com:sqlcollaborative/dbatools.git","clone_url":"https://github.com/sqlcollaborative/dbatools.git","svn_url":"https://github.com/sqlcollaborative/dbatools","homepage":"https://dbatools.io","size":91622,"stargazers_count":688,"watchers_count":688,"language":"PowerShell","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":371,"mirror_url":null,"archived":false,"open_issues_count":327,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":371,"open_issues":327,"watchers":688,"default_branch":"development"}},"_links":{"self":{"href":"https://api.github.com/repos/sqlcollaborative/dbatools/pulls/4202"},"html":{"href":"https://github.com/sqlcollaborative/dbatools/pull/4202"},"issue":{"href":"https://api.github.com/repos/sqlcollaborative/dbatools/issues/4202"},"comments":{"href":"https://api.github.com/repos/sqlcollaborative/dbatools/issues/4202/comments"},"review_comments":{"href":"https://api.github.com/repos/sqlcollaborative/dbatools/pulls/4202/comments"},"review_comment":{"href":"https://api.github.com/repos/sqlcollaborative/dbatools/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sqlcollaborative/dbatools/pulls/4202/commits"},"statuses":{"href":"https://api.github.com/repos/sqlcollaborative/dbatools/statuses/44587edfe1f69567353e5b308be7c85694799e47"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":8,"additions":63,"deletions":3,"changed_files":2}}
{"actor":{"display_login":"Stuart-Moore"}}