scm-backup | Makes offline backups of your cloud hosted source code | Continuous Backup library
kandi X-RAY | scm-backup Summary
kandi X-RAY | scm-backup Summary
SCM Backup is a tool which makes offline backups of your cloud hosted source code repositories, by cloning them. It supports backing up from multiple source code hosters and backing up multiple users/teams per source code hoster. At the moment, the following hosters are supported:. And it's written in .NET Core, which means that it's supposed to run on Windows, Linux and MacOS.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of scm-backup
scm-backup Key Features
scm-backup Examples and Code Snippets
Community Discussions
Trending Discussions on scm-backup
QUESTION
I recently tried to take a backup of my BitBucket repositories using SCM Backup. Here is what I did:
Installed dot net on my MacOS
Installed SCM Backup
I created an App Password for SCM Backup in BitBucket.
I made the following changes in the settings.yml file:
...ANSWER
Answered 2019-Aug-05 at 21:10Glad to hear that SCM Backup works on MacOS, but please note this in the System Requirements:
So far, SCM Backup has been written and tested on Windows only. Technically, it should run on Linux and MacOS as well, but this has not been tested yet.
I'm on Windows, and c:\scm-backup
is a valid folder/directory on Windows, but will probably not work on a Mac.
(c:
is the system drive on Windows)
I don't have access to a Mac, so I can't test anything...but according to what I just googled, you should use a path like /Users/your_user/Documents/scm-backup
.
The path should already exist, and the user which is running SCM Backup should have write access to it.
If you can confirm that this works, I'll add it to the docs.
You probably read the documentation about restoring. The technical steps how to do the actual restore are described there, but what's missing right now is the description how the content of the local folder.
I'll add that to the documentation, but here's the short version:
After changing localFolder
from c:\scm-backup
to whatever works on MacOS, run SCM Backup and the folder should contain one subfolder per source defined in the config. So in your case, it should be named bitbucket_bkp
.
Inside, there's one subfolder for each repository, and inside that, there's at least one subfolder repo
(and maybe another named wiki
, if that repo has a wiki).
This repo
folder contains a full clone of your repository from Bitbucket, and this is the "local repository" that the documentation about restoring refers to.
Please see the docs about sources in the configuration:
Each source must have at least those four properties:
[...]
type
Either
user
ororg
, depending if you want to backup an user or a organization.
name
The name of the user/organization you want to backup.
So it's either:
QUESTION
I'm writing an offline backup tool (in C# / .NET Core, if that matters) for multiple source code hosters, e.g. GitHub and Bitbucket.
There will be class for each hoster (GithubHoster
, BitbucketHoster
and so on) implementing the same interface.
I want the tool to be extensible, so it's easily possible to add more hosters just by creating some classes that are automatically picked up by IoC auto-registration.
For each hoster, the tool has to:
- validate the settings for that hoster in the tool's config file
- connect to the hoster's API and get a list of repository URLs
- execute the proper source control tool to clone/pull all repositories to the local computer
This is obviously too much to put into one single class, so I used composition (or what I think composition means) to split it into subparts:
...ANSWER
Answered 2017-Feb-10 at 13:56You can use a Attribute to help you figure out which implementation are from where. This would avoid you having to create a lot of new interfaces.
Define this attribute
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install scm-backup
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page