How to backup a local Git repository?

The other official way would be using git bundle That will create a file that supports git fetch and git pull to update your second repo. Useful for incremental backup and restore. But if you need to backup everything (because you do not have a second repo with some older content already in place), the … Read more

Cannot open backup device. Operating System error 5

Yeah I just scored this one. Look in Windows Services. Start > Administration > Services Find the Service in the list called: SQL Server (MSSQLSERVER) look for the “Log On As” column (need to add it if it doesn’t exist in the list). This is the account you need to give permissions to the directory, … Read more

When restoring a backup, how do I disconnect all active connections?

You want to set your db to single user mode, do the restore, then set it back to multiuser: ALTER DATABASE YourDB SET SINGLE_USER WITH ROLLBACK AFTER 60 –this will give your current connections 60 seconds to complete –Do Actual Restore RESTORE DATABASE YourDB FROM DISK = ‘D:\BackUp\YourBaackUpFile.bak’ WITH MOVE ‘YourMDFLogicalName’ TO ‘D:\Data\YourMDFFile.mdf’, MOVE ‘YourLDFLogicalName’ … Read more

Fully backup a git repo?

git bundle I like that method, as it results in only one file, easier to copy around. See ProGit: little bundle of joy. See also “How can I email someone a git repository?”, where the command git bundle create /tmp/foo-all –all is detailed: git bundle will only package references that are shown by git show-ref: … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)