]> gitweb.fluxo.info Git - hydra.git/commitdiff
Log support for sync-{home,tpc}
authorSilvio Rhatto <rhatto@riseup.net>
Mon, 20 Nov 2017 17:36:30 +0000 (15:36 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Mon, 20 Nov 2017 17:36:30 +0000 (15:36 -0200)
share/hydractl/sync-home
share/hydractl/sync-tpc

index 7be90eaa227e4b804b53cc3d02b9885425656415..a0460e98ea0545c5517b95abb4b15dcb903e0b45 100755 (executable)
@@ -34,3 +34,7 @@ done
 
 # Sync files
 $SUDO $RSYNC /home/ $DEST/home/
+
+# Record log
+$SUDO mkdir -p $DEST/var/log/hydra
+echo "`date +%Y%m%d` $BASENAME with data from `cat /etc/hostname`" | $SUDO tee -a $DEST/var/log/hydra/sync-tpc > /dev/null
index a785fb9c61259e3bec3b6a69d6c1117afcaebb41..971ab53d17f75ad0efcf2d61cae89f784ecc3c82 100755 (executable)
@@ -78,3 +78,7 @@ fi
 
 # Sync media remotes
 hydractl sync-media-remotes $MEDIA
+
+# Record log
+$SUDO mkdir -p $DEST/var/log/hydra
+echo "`date +%Y%m%d` $BASENAME with data from `cat /etc/hostname`" | $SUDO tee -a $DEST/var/log/hydra/sync-tpc > /dev/null