diff --git a/MANIFEST b/mirror-gogs/MANIFEST similarity index 100% rename from MANIFEST rename to mirror-gogs/MANIFEST diff --git a/mirror-gogs/Makefile b/mirror-gogs/Makefile new file mode 100644 index 0000000..d6544f4 --- /dev/null +++ b/mirror-gogs/Makefile @@ -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 diff --git a/update.pl b/mirror-gogs/update.pl similarity index 95% rename from update.pl rename to mirror-gogs/update.pl index 4f9c50d..b2e895a 100755 --- a/update.pl +++ b/mirror-gogs/update.pl @@ -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/");