This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$codeList = [ | |
"BE", "BG", "CZ", "DK", "DE", "EE", "IE", "EL", "ES", "FR", "HR", "IT", "CY", | |
"LV", "LT", "LU", "HU", "MT", "NL", "AT", "PL", "PT", "RO", "SI", "SK", "FI", | |
"SE", "UK" | |
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// This script will back up all your GitLab repositories to a specified location. | |
// I recommend creating a seperate GitLab user for backups. | |
// You'll need to generate a personal access token for that user with API access (in GitLab). | |
// Next, generate a SSH keypair for the NAS user and attach it to the GitLab user. | |
// Finally, create a scheduled task in your NAS config to run this script: "php /some/location/git2nas.php" | |
// Config -- start |
NewerOlder