DrTrigon has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/89419


Change subject: protect backup as well
......................................................................

protect backup as well

Change-Id: Ic1556796192fd5e0ef9adad7a81b86bc7e12ee7a
---
M fabfile.py
1 file changed, 5 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/pywikibot/bots/drtrigonbot 
refs/changes/19/89419/1

diff --git a/fabfile.py b/fabfile.py
index e045a16..1477c07 100644
--- a/fabfile.py
+++ b/fabfile.py
@@ -255,8 +255,7 @@
     #   make at least that dir "not readable" for anyone but "owner". --Pyr0.
 
     # init backup (trash old one)
-    print "init/reset backup on"
-    print "  * productive"
+    print "init/reset backup"
     local('rm -rf ~/BAK_DIR/')
     local('mkdir ~/BAK_DIR')
     local('mkdir ~/BAK_DIR/compat')
@@ -311,6 +310,10 @@
     else:
         local('tar -jcvf ~/BAK_DIR/DrTrigonBot_logs.tar.bz2 
~/public_html/DrTrigonBot/*/*')
 
+    # finally protect backup as well
+    print "protect backup"
+    local('chmod -R go-rwx ~/BAK_DIR')
+
 def list_large_files():
     """ L.A) List all files exceeding 5 and 10MB  (all L.# steps) """
     # List all files exceeding an size of 10MB. Use this to find e.g.

-- 
To view, visit https://gerrit.wikimedia.org/r/89419
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic1556796192fd5e0ef9adad7a81b86bc7e12ee7a
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/bots/drtrigonbot
Gerrit-Branch: master
Gerrit-Owner: DrTrigon <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to