diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2017-11-20 15:36:30 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2017-11-20 15:36:30 -0200 |
commit | afb99b7bf4ca9a30189fc2ba4bffdca23848db6b (patch) | |
tree | ca1db7e4f06f6ca71752536b9ba19fd75389a8b1 /share | |
parent | a628ce8d831edf9181e8f71b88426e968cfb90cf (diff) | |
download | hydra-afb99b7bf4ca9a30189fc2ba4bffdca23848db6b.tar.gz hydra-afb99b7bf4ca9a30189fc2ba4bffdca23848db6b.tar.bz2 |
Log support for sync-{home,tpc}
Diffstat (limited to 'share')
-rwxr-xr-x | share/hydractl/sync-home | 4 | ||||
-rwxr-xr-x | share/hydractl/sync-tpc | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/share/hydractl/sync-home b/share/hydractl/sync-home index 7be90ea..a0460e9 100755 --- a/share/hydractl/sync-home +++ b/share/hydractl/sync-home @@ -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 diff --git a/share/hydractl/sync-tpc b/share/hydractl/sync-tpc index a785fb9..971ab53 100755 --- a/share/hydractl/sync-tpc +++ b/share/hydractl/sync-tpc @@ -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 |