add mirror-gogs

This commit is contained in:
Jeff Carr 2018-06-07 19:18:38 -07:00
parent f591d8e2f1
commit 4c0e45ce64
3 changed files with 18 additions and 1 deletions

17
mirror-gogs/Makefile Normal file
View File

@ -0,0 +1,17 @@
none:
./update.pl --dry-run manifest
all:
./update.pl rsync
./update.pl gogs
./update.pl manifest
# backs up everything
rsync:
./update.pl rsync
gogs:
./update.pl gogs
manifest:
./update.pl manifest

View File

@ -51,7 +51,7 @@ $basedir = `pwd`;
chomp $basedir;
if ($ARGV[0] eq "rsync") {
my_system("tar -c --use-compress-program=pigz -f archive.gogs.$STAMP.tgz mirrored-gogs/git/gogs-repositories/");
my_system("tar -c --use-compress-program=pigz -f archive.$STAMP.gogs.tgz mirrored-gogs/git/gogs-repositories/");
my_system("rsync -av --progress --delete vm10:/var/lib/kubelet/plugins/kubernetes.io/rbd/mounts/kube-pool-image-kubernetes-dynamic-pvc-7a6428c8-376e-11e8-85ad-0a580af40662/ mirrored-gogs/");
my_system("rsync -av --progress --delete mirrored-gogs/git/gogs-repositories/ gitweb:/var/lib/git/gogs/");